concept keystore credential in category microservice

appears as: keystore credentials, keystore credentials
Microservices Security in Action

This is an excerpt from Manning's book Microservices Security in Action.

11.2.4 Defining a ConfigMap for keystore credentials

First, don’t do this in a production deployment! Kubernetes stores anything that you store in a ConfigMap in cleartext. To store credentials in a Kubernetes deployment, we use a Kubernetes object called Secret instead of a ConfigMap. We talk about Secrets later in section 11.3. Until then, we’ll define keystore credentials in a ConfigMap.

Listing 11.7 shows the definition of the sts-keystore-credentials ConfigMap. There we pass the password to access the keystore.jks file under the KEYSTORE _PASSWORD key, and the password to access the jwt.jks file under the JWT_KEYSTORE _PASSWORD key, both under the data element. You can find the complete ConfigMap definition of keystore credentials in the chapter11/sample01/sts.configuration.yaml file.

Listing 11.7 The definition of keystore credentials