Security hardening guide¶
This document provides an overview of security features and guidance for hardening the security of Charmed etcd deployments, including setting up and managing a secure environment.
Environment¶
The environment where Charmed etcd operates can be divided into two components:
Cloud
Juju
Cloud¶
Charmed etcd can be deployed on top of several clouds and virtualisation layers:
Cloud |
Security guides |
---|---|
OpenStack |
|
AWS |
Best Practices for Security, Identity and Compliance, AWS security credentials |
Azure |
Azure security best practices and patterns, Managed identities for Azure resource |
GCP |
Juju¶
Juju is the component responsible for orchestrating the entire life cycle, from deployment to Day 2 operations. For more information on Juju security hardening, see the Juju security page and the How to harden your deployment guide.
Cloud credentials¶
When configuring cloud credentials to be used with Juju, ensure that users have the correct permissions to operate at the required level. Juju superusers responsible for bootstrapping and managing controllers require elevated permissions to manage several kinds of resources, such as virtual machines, networks, storage, etc. Please refer to the links below for more information on the policies required to be used depending on the cloud.
Cloud |
Cloud user policies |
---|---|
OpenStack |
|
AWS |
|
Azure |
|
GCP |
Juju users¶
It is very important that Juju users are set up with minimal permissions depending on the scope of their operations. Please refer to the User access levels documentation for more information on the access levels and corresponding abilities.
Juju user credentials must be stored securely and rotated regularly to limit the chances of unauthorised access due to credentials leakage.
Applications¶
In the following, we provide guidance on how to harden your deployment using:
Operating system
Security upgrades
Encryption
Authentication
Authorisation
Monitoring and auditing
Operating system¶
Charmed etcd runs on top of Ubuntu 24.04. Deploy a Landscape Client Charm to connect the underlying VM to a Landscape User Account to manage security upgrades and integrate Ubuntu Pro subscriptions.
Security upgrades¶
charmed-etcd-operator
uses the charmed-etcd-snap
, where each revision of the charm pins a revision of the snap to provide reproducible environments.
Currently, the charm is available on the edge
track, the snap is patched and updated regularly to ensure that the latest security fixes from the upstream etcd project are applied.
Encryption¶
By default, encryption is optional for both external connections and internal communication between cluster members. To enforce encryption in transit, integrate Charmed etcd with a TLS certificate provider. Please refer to the Charming Security page for more information on how to select the right certificate provider for your use case.
Encryption in transit for backups is provided by the storage (Charmed etcd is a client for the S3 storage).
For more information on encryption, see the Cryptography explanation page and How to enable TLS guide.
Authentication¶
etcd saves and checks a configured password and a given password using Go’s bcrypt
package.
For client authentication, Charmed etcd relies on TLS client certificate authentication.
Monitoring and auditing¶
Charmed etcd provides native integration with the Canonical Observability Stack (COS). To reduce the blast radius of infrastructure disruptions, the general recommendation is to deploy COS and the observed application into separate environments, isolated from one another. Refer to the COS production deployments best practices for more information.
For instructions, see the How to enable monitoring guide.
Logging is enabled by default. The logs are stored in the /var/snap/charmed-etcd/common/var/log/etcd
directory of the etcd container. Log rotation is enabled by default. It’s recommended to integrate the charm with COS, from where the logs can be easily persisted and queried using Loki/Grafana.
Additional Resources¶
Charmed etcd also implements all CIS hardening checks for etcd as defined in the Aqua Security
For details on the cryptography used by Charmed etcd, see the Cryptography explanation page.