What is TLS?
Transport Layer Security, known as TLS, is a means of maintaining data integrity between two applications that must communicate with each other. Service accounts help you define user/cluster specific roles which give you customizability over who gets to do what to your data. When used together, these technologies greatly improve the security and flexibility of whatever application you choose to run on your cluster with IBM Cloud Data Shield. This will all take place inside a custom namespace you define within your cluster, which will further help you organize your users and their permissions.
You may want to integrate this technology with Data Shield as an added layer of security to protect your data, so let’s go over how exactly it’s done.
Creating a custom namespace
First, create the new namespace:
Next, copy over all relevant secrets from the default namespace to the new one (all secrets starting with bluemix*). You can view all secrets in the default namespace using:
Copy them over one at a time:
Confirm the secrets have been copied over:
Creating a service account
Next, we will create a service account and define permissions for it.
Create a service account:
Using certificates to authenticate
Next, we must generate certs that we need to enable a TLS connection between Helm and Tiller. These certificates help Helm and Tiller make sure they are taking instructions from the authoritative sources only. The idea is to have a Tiller instance under our custom namespace that will only accept incoming connections from SSL authenticated clients.
From this point on, make sure to add a
--tiller-namespace option to any helm command you run and specify the kubectl namespace you created. Proceed with Data Shield Installation.
That’s it! You’ve successfully enabled TLS and set up a service account inside a custom namespace, and you can now enjoy the benefits of added security and flexibility within your already secure Data Shield application.