Home›Ubuntu Blog›Article

Automating encryption at rest with Canonical’s Charmed MongoDB

Neha Oudin · Nov 23, 2026

AI summary AI-generated, may contain mistakes

The article explains how Canonical's Charmed MongoDB implements data encryption at rest using a two-level key hierarchy, where a master key encrypts a key database containing per-database keys, and emphasizes that encryption must be enabled at initial deployment and cannot be toggled at runtime. It discusses secure master key storage options, recommending HashiCorp Vault or OpenBao over local files due to support for secret versioning and rotation, while warning that losing encryption keys means losing access to the data. Finally, it highlights how the Charmed MongoDB Operator automates encryption setup, master key rotation, high availability via Vault Agent, backups, and observability to provide a production-ready, end-to-end open source solution.

When stakes are high, and your data is worth gold, you want to keep it secure from your client to your storage. This usually means setting up in-transit security with transport layer security (TLS), proper user and group policies with an identity platform. Finally, you’ll want data encryption at rest, which ensures that it encrypts database storage on disk, and the encryption keys are themselves stored securely.

Without data encryption at rest, anyone with sufficient permissions can read the data from the files on the disk. If the disks are stolen, your data is not secured. With data encryption at rest properly implemented, no one will be able to recover the data without the encryption keys. Data encryption at rest can also be a matter of regulations and compliance on sensitive data.

Before diving into the details of data encryption at rest in MongoDB, a word of warning: losing the encryption keys means losing access to your data. Without the key, no one can recover the data on the disk, not even you. This article will provide ways to store the encryption keys securely so you don’t lose them.

Keep reading

Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.

More from Ubuntu Blog

Install Ubuntu on NVIDIA RTX Spark

AI summaryCanonical has released an Ubuntu concept image that lets developers run Linux on NVIDIA RTX Spark, a new Superchip combining a Grace CPU, an RTX Blackwell GPU, and up to 128 GB of unified memory for local AI workloads in laptops and compact desktops. The image, which is experimental rather than production-ready, offers a familiar Ubuntu development environment so developers using the Linux + CUDA stack can experiment with local AI and provide feedback as hardware enablement evolves. Alongside it, Canonical ships NVIDIA Nemotron Bolt as an inference snap optimized for RTX Spark, giving developers a practical starting point for running local AI agents on Ubuntu.

15 years of long term support for bare metal automation with MAAS

AI summaryCanonical has released MAAS 3.8, the first Long Term Support (LTS) version of its open source bare metal automation platform, offering up to 15 years of security maintenance and enterprise support in line with Ubuntu's LTS commitment. This extended lifecycle helps organizations with long-term infrastructure investments—such as AI clusters, 5G networks, and HPC data centers—avoid frequent support-driven upgrades and align support across Canonical's entire stack, from bare metal to Kubernetes. The release also adds OpenID Connect single sign-on, relationship-based access control, customizable deployment scripts, and FIPS readiness improvements.

Automating bare metal infrastructure in FIPS-regulated environments with MAAS

AI summaryCanonical's MAAS v3.7.4 introduces FIPS mode support, allowing organizations in regulated sectors such as government, defense, and financial services to enforce stricter cryptographic and security controls on their bare metal provisioning control plane. When FIPS mode is enabled, MAAS restricts TLS and SSH to approved algorithms, validates key types and sizes, requires trusted SSH host keys, and rejects insecure power management configurations, such as IPMI connections not using cipher suite 17. While fresh deployments are recommended for enabling FIPS mode on controllers, MAAS can also provision Ubuntu machines with FIPS-enabled kernels through its standard deployment workflow and cloud-init.

From desktop to cloud to road

AI summaryThe article discusses the integration bottleneck in automotive software development caused by inconsistent environments across desktop, cloud, and vehicle targets, leading to dependency conflicts and integration delays. It advocates for environmental parity—achieved through hardware and operating system abstraction—with Ubuntu serving as a consistent platform running across x86, ARM64, and RISC-V architectures. Canonical argues that standardizing on Ubuntu Pro offers long-term security support, API stability, and compliance with automotive standards, enabling teams to build, test, and deploy software-defined vehicle applications at cloud speed.

What if your Virtual Data Room (VDR) was Android™ based?

AI summaryDuring mergers and acquisitions, virtual data rooms must give lawyers, advisors, and buyers controlled access to confidential documents across many different devices, operating systems, and IT environments. The article proposes running the document-viewing application in the cloud with Anbox Cloud, which hosts isolated Android app instances and streams only their rendered pixels to any browser, so users never receive, store, or process the original files on their devices. This centralized execution model keeps providers in full control of information and reduces exposure risk, though protections like authentication, permissions, and watermarking are still recommended against screenshots or external recording.