Raquel Campuzano and Juan Ariza co-wrote this blog post
As more organizations adopt Kubernetes as the preferred infrastructure for running their IT resources, enterprise SRE teams tend to adopt a GitOps mindset.
The GitOps approach consists of embracing different practices that manage infrastructure configuration as a code. This means that Git becomes the single source of truth and as such, all operations are tracked via commits and pull requests. Thus, every action performed on the infrastructure will leave a trace and can be reverted if needed.
This practice brings a lot of benefits to IT admins, since automation and ease of managing Kubernetes configurations are extremely important to them.
Despite this, there’s a high probability of discovering security risks when managing access to the applications running in a Kubernetes cluster. This is where Sealed Secrets comes in. Sealed Secrets is a Kubernetes controller and a tool for one-way encrypted Secrets.
Why should every cluster controller use Sealed Secrets to protect their deployments?
When cluster operators and administrators follow the GitOps approach, they usually find that they can manage all Kubernetes configurations through Git except secrets. Sealed Secrets solves this problem by encrypting the secret into a new Kubernetes object called “SealedSecret” which is safe to store even in public repositories.
Sealed Secrets is a popular Open-Source project led by Bitnami that helps Kubernetes operators and administrators keep their deployments safe and under control. Sealed Secrets can only be decrypted by those who have access to the sealing private key — usually the cluster administrator — ensuring that nobody else, even the original author, is able to obtain the secret given in a Sealed Secret manifest file.
Sealed Secrets is now available as a Helm chart in VMware Application Catalog! VMware Application Catalog is a customizable selection of trusted, pre-packaged open-source application components that are continuously maintained and verifiably tested for use in enterprise production environments – the ideal option to procure secure application building blocks.
Depending on your requirements, you can either navigate to the ongoing Open-Source project located in the Bitnami GitHub repository and download the tool and test it out, or if your organization requires a more stable, secure, and compliant image, you can deploy Sealed Secrets on your cluster through VMware Application Catalog.
Deploy Sealed Secrets on Kubernetes through VMware Application Catalog
- Sealed Secrets and MariaDB added to your VMware Application Catalog
- Kubeseal was previously installed on your computer.
Now, you can deploy the MariaDB Helm chart retrieving the credentials from the existing “mariadb-secret” secret.
To do so, back to the VMware Application Catalog and search for the MariaDB details page. Then, execute the command you will find in the “Consume your Helm Chart” by appending the following flag:
--set auth.existingSecret=mariadb-secret
Once the chart is installed, you can start to operate your MariaDB database as described in its installation notes.
The last step is to obtain the chart installation values and save them in a file using the command below:
helm get values MARIADB_RELEASE > mariadb-values.yaml
Note: Remember to replace the MARIADB_RELEASE placeholder with the name you used for your MariaDB release.
You can now add this mariadb-values.yaml to your Git repository.
By committing both this and the mariadb-sealedsecret.yaml file in your repository you can record the status of your infrastructure in a reproducible manner – allowing you to again embrace the GitOps mindset. Thanks to Sealed Secrets, now you can also publish your changes in any public repository without exposing your database credentials.
Deploy Applications with Confidence and Control
As shown in this blog post, the combination of Sealed Secrets and VMware Application Catalog allows you to deploy applications in your cluster with complete confidence. Apart from keeping your applications automatically updated and monitored thanks to VMware Application Catalog, now you can rely on the efficiency of Sealed Secrets for keeping your deployments locked and safe against misuse.
Learn more about VMware Application Catalog by checking its product page on vmware.com. You can also check out technical documentation for VMware Application catalog here. You can also contact the VMware Application Catalog team directly at vac@vmware.com.
If you are interested in contributing to the Sealed Secrets Open Source project, check out the GitHub repository and do not hesitate to send us a pull request. The BItnami engineering team will check it and guide you in the process for a successful merge.