CEK Cryptography, encryption and key management

CEK sets out how a cloud provider governs encryption, algorithms and key lifecycles for customer data. Assessors look for a written policy, a key inventory, rotation records and proof that the controls run in practice.

On this page

What the CEK domain asks cloud providers to prove about encryption and keys

When a STAR submission or a customer questionnaire asks how customer data is encrypted and who controls the keys, the Cryptography, Encryption and Key Management (CEK) domain of the Cloud Controls Matrix is the part of CCM that answers it. CEK covers encryption policy, algorithms, key lifecycle and the protection of customer data with cryptography. The introductory guidance counts 21 control specifications in the domain. The risk it addresses is simple to state: customer data that is readable when it should not be, either at rest on disks, backups and object stores or in transit between services, and keys that leak, are shared too widely or are never rotated, so that encryption protects nothing in practice.

The difficulty is rarely the cipher itself. Keys tend to be scattered across databases, application configuration, CI/CD variables, backup tools and vendor consoles, with no single inventory of who holds what. Algorithm and key-length choices are often made by individual teams and never written down, so an assessor asking why a particular mode was chosen gets no answer. Shared responsibility adds a further gap: the provider may manage the hardware security module or the key service, while the customer controls key policy, so each party needs a clear record of what it owns. The implementation guidance for CEK, written against CCM v4.0, also counts 21 control specifications. Confirm the v4.1 count directly in the matrix before you cite it in a submission, because the release notes describe changes to other domains and the count is the figure an assessor will check.

Which systems, data and third parties fall inside CEK scope

CEK controls apply wherever customer data is encrypted, decrypted or keyed, so scope starts with a map of where that happens. The cards below cover the parallel decisions that determine how much of the environment an assessor will test, and each one changes the evidence you need to produce.

Customer data stores

Start with every place customer data rests: relational databases, object storage buckets, file shares, search indexes, caches and backups. Each store needs a documented answer to whether it is encrypted, which key protects it and who can use that key. Backups and snapshots are the most often missed, because they are copied outside the primary system and may outlive the retention period of the source. Check that encryption at rest is applied to replicas and archives as well as the live copy.

Data in transit

Scope every network path that carries customer data, both internal service-to-service traffic and external endpoints such as APIs, administrative consoles, message queues and integrations with customer systems. Internal hops are often assumed to be safe and are frequently left out of the cryptography inventory. List each endpoint, the protocol and cipher configuration it accepts, and who owns the certificate. Gaps usually appear at legacy integrations and at load balancers that terminate TLS.

Key management systems and certificate authorities

Key stores, hardware security modules, secrets engines and any internal certificate authority are in scope because they hold the material that makes encryption meaningful. Document where root and intermediate keys live, how they are generated, rotated and retired, and which administrators can export them. If you run a private CA, such as one built on the Dogtag-based integrated authority in FreeIPA, its issuance policy and revocation process belong in the CEK evidence set alongside the keys it signs with.

FreeIPA project

Third-party and managed services holding keys or ciphertext

Any managed database, backup service, email gateway, logging platform or SaaS tool that stores ciphertext or holds keys extends your CEK scope into a supplier's environment. For each one, confirm whether the supplier holds the keys, whether customer-managed keys are supported, and what the contract says about key custody and destruction. Request the supplier's own cryptography evidence rather than assuming it, and record which controls you rely on them to perform.

Shared responsibility line with the customer

CSA's framework defines which security roles fall to the cloud provider and which fall to the customer, so the boundary must be written down for each encryption feature. A provider may own the platform's key infrastructure while the customer controls key policies or bring-your-own-key settings. Put this split in the customer-facing responsibility matrix and in your CAIQ answers so that an assessor can match each CEK control to the party that performs it.

CCM v4.1 artifacts

How an assessor tests the CEK controls

This table compares each CEK test area with what an assessor typically samples, the evidence they ask for and the gaps they most often find. Use it to prepare evidence before fieldwork, and confirm the current control specification wording in the CCM matrix and its auditing guidelines, since this page does not quote them.

Control areaTest approachEvidence requestedCommon findings
Encryption and key management policy and proceduresRead the approved policy and procedures, check the review date and owner, then compare them with how keys are actually created and rotated.Approved policy with version history, named owner, review records, and procedures tied to the systems in scope.Policy exists but does not match practice, or procedures omit key ownership and exception handling.
Algorithm and protocol selectionSample the encryption settings on storage, databases and TLS endpoints, then check them against the documented approved algorithms.Configuration exports, approved algorithm list, TLS scan output, and records of any deprecation decisions.Legacy ciphers or protocol versions still enabled, or the approved list is not updated after a change.
Key generation and storageTrace a sample of keys from creation to storage and confirm generation uses approved methods and protected storage such as an HSM or managed key service.Key inventory, generation logs, storage configuration, and access settings for key stores.Keys stored in configuration files or code repositories, or no complete inventory of keys in use.
Key rotation and retirementSelect keys and confirm rotation occurred on the documented schedule and that retired keys were disabled and destroyed.Rotation records, version history of keys, destruction or disablement logs, and the schedule in the procedure.Rotation schedule not followed, old keys still able to decrypt data without a documented reason.
Access to key materialReview who can use, export or administer keys, then test whether access follows least privilege and is logged.Access lists for key stores, approval records for privileged access, and audit logs of key operations.Administrators with broad key access, shared accounts, or key operations missing from audit logs.
Encryption of backups and data in transitSample backup sets and network paths to confirm encryption is on and that backup keys are managed separately from production keys.Backup encryption settings, restore test records, TLS configuration for internal and external links, and certificate inventory.Backups unencrypted or restorable only with production keys, and internal services accepting plaintext connections.

How to implement CEK in sequence, with the output of each step

This sequence turns the CEK domain into a working cryptography program, where each step produces an artifact the engineering team builds on and the compliance lead can present as evidence. Confirm every setting against your own environment and data classification before you rely on it.

  1. Inventory data stores and keys

    Engineering and data owners list every system that stores or transmits customer data, including databases, object storage, backups, logs, message queues and file shares. For each store, record whether encryption is applied at rest, in transit or both, which key or certificate protects it, who administers that key, and where the key material physically sits. Done is a key inventory that names every key, certificate and secret store, with an owner for each entry and no unexplained gaps. Confirm the list against cloud account exports and infrastructure code so it reflects what is actually running.

  2. Set the encryption and key management policy

    The security or compliance lead drafts a written encryption and key management policy with supporting procedures, then obtains approval from the accountable executive. The policy should state which data classes must be encrypted, where encryption is mandatory versus risk-accepted, who may create or destroy keys, and how exceptions are requested and recorded. Done is a signed, version-controlled policy with a review date and a named owner. The CSA implementation guidance for CEK begins with this control, so assessors will expect it first.

  3. Choose approved algorithms and key sizes

    Security architects compare the inventory against the policy and select an approved list of cryptographic algorithms, modes, key lengths and protocol versions for each use case, such as data at rest, transport, signing and password storage. They also block deprecated options and document where legacy systems cannot yet comply, with a remediation owner and target. Done is an algorithm standard that engineers can check in configuration reviews, plus a register of exceptions. Confirm the chosen parameters against the current guidance your regulator or customers reference, since acceptable settings change over time.

  4. Centralize key custody and lifecycle

    Platform engineers move key generation, storage, issuance and destruction into a small number of controlled systems, such as a hardware-backed key manager or a secrets engine with audited access, instead of keeping keys in application code or scattered configuration files. They define lifecycle states for each key (creation, activation, use, rotation, retirement and destruction) and assign who may perform each transition. Done is a key custody design diagram, a lifecycle matrix, and a record showing that each key in the inventory now has a managed home. Confirm with your platform team whether the chosen system supports the key types and audit logging you need.

  5. Enforce rotation and access separation

    Operations teams write and test a rotation runbook for each key class, including how dependent services receive the new version, how old versions are retired, and how an emergency rotation after suspected compromise is triggered. In parallel, administrators separate duties so that people who manage keys cannot also use them to read protected data without oversight, and they restrict key access to the services that need it. Done is a rotation runbook per key class, a documented access matrix, and evidence of at least one rotation performed in a test or staging environment. Confirm rotation intervals with your policy and your contractual or regulatory obligations rather than adopting a default.

  6. Test and record the control

    An internal reviewer or independent tester checks that encryption is applied as the inventory states, that unapproved algorithms are rejected, that key access is logged, and that a rotation completes without service outage. Findings go into a tracked remediation list, and the results are stored as a dated test record. Done is a test report, closed or accepted findings, and an evidence folder that maps each policy statement to a configuration export, log sample or procedure. Independent auditors and certification bodies, not the implementation team, decide whether this evidence satisfies a given framework.

Which evidence passes a CEK test and how to keep it current

Assessors testing the CEK domain sample dated records, not policy statements alone. The six artifacts below cover the policy, the key inventory, the lifecycle trail, access to key material, the configuration state and proof that encrypted data can be recovered. Each one needs a named owner who refreshes it between audits, so the sample an assessor pulls reflects the current environment.

Encryption and key management policy

The approved policy and its supporting procedures set the rules for algorithms, key lengths, key ownership and exception handling. Assessors check that the document has a version, an approval date and a review date, and that the procedures match what engineers actually do. Review the policy at least once a year and after any material change to cryptographic services, such as a new storage backend or a move to a different key manager. Confirm who owns the review with the security lead, not only the platform team.

Key inventory with owners and algorithms

A current register lists every key, certificate and secret used for encryption, with its purpose, owning team, algorithm, key length, creation date and location. Gaps usually sit in keys created for a single service and never recorded, so reconcile the inventory against the key manager's own listing. For self-hosted stacks, this covers key material held by components such as an internal certificate authority. Refresh the register whenever a key is created or retired, and run a reconciliation at each review cycle.

Key rotation and destruction logs

Rotation and destruction records show that keys change on schedule and that retired keys are removed. Logs should show the key identifier, the operator or automation identity, the time, and the reason for the event. Check that versioned keys keep the earlier versions needed to decrypt older data, and that destruction is recorded only after that data is re-encrypted or deleted. Engineering or the key owner should review these logs monthly, and the audit trail should be exported to retained storage rather than left in the live system.

Access reviews for key material

Periodic reviews confirm that only approved people and service identities can read, use or administer keys. The review record should list each principal, the permitted operations, the approver and the date of the last change. Pay attention to break-glass accounts and to service accounts that can decrypt data outside their intended workflow. Ask the identity owner to run the review each quarter, with the security function signing off, and keep the signed review as the dated artifact.

Configuration exports for encryption

Configuration exports show encryption at rest and in transit as it is actually set, not as the design document describes it. Capture storage encryption settings, TLS versions and cipher suites on external endpoints and internal service links, and the key references each service uses. Store the export with a timestamp and the hash of the configuration file where practical. Regenerate exports after each change window and before each audit, and have the platform owner confirm that the export matches the running system.

Restore and key-recovery test results

Test results prove that encrypted data can be recovered when keys are lost, rotated or moved. A restore exercise should decrypt a sample of backed-up data using the documented key path, record the scope, the operator, the outcome and any failures. Assessors look for evidence that the test ran against real backups and that failures led to tracked fixes. Schedule the exercise at a set frequency set by the organization's own policy, and record it in the same evidence repository as the other artifacts.

What meeting CEK costs in money and effort

This table compares the main cost components of meeting the CEK domain, who is paid for each, whether it recurs, and what drives it up or down. Open-source platforms can remove license spend, but the engineering, policy and evidence work stays with the organization and its advisers, so ask each quote to price those items separately.

Cost componentOne-time or recurringWhat drives itHow to reduce it
Key management tooling or licensesRecurring if commercial; one-time for setupNumber of key stores, HSM or KMS dependencies, and whether vendor support is requiredConfirm whether a self-hosted option such as OpenBao removes the license line, and price its hosting and support separately
Engineering time to migrate and standardize encryptionOne-time, with ongoing maintenanceNumber of data stores and services, legacy algorithms, and how much encryption is already in placeInventory encryption use first, then migrate in phases tied to data classification
Policy and procedure writing for encryption and key managementOne-time, with periodic reviewNumber of policies, approval cycles, and how many teams must sign offReuse a single encryption and key management policy with standards beneath it, and ask the adviser to map it to CEK control specifications
Evidence upkeep (rotation logs, key inventories, access records)RecurringFrequency of key rotation, number of keys and tenants, and whether logs are collected automaticallyAutomate exports from the key manager and retain records in one place, and confirm retention periods with the auditor
External testing or review of the cryptographic designRecurring or per engagementScope of the design review, custom protocols, and number of applications that use cryptographyLimit scope to customer-facing and key-handling components, and ask for findings in a written report with retest
Auditor sampling timeRecurring per assessment cycleNumber of sampled keys, systems and changes the auditor selects, and how cleanly evidence is organizedPrepare a ready evidence set for sampled items and confirm the sampling approach with the auditor before fieldwork
Self-hosted open-source platform setup and hostingOne-time setup, recurring hosting and operationsInfrastructure location, high availability design, and internal staff available to operate itConfirm the platform's supported configurations and document ownership of upgrades and backups

Which open-source tools can produce CEK evidence

Four self-hosted open-source components cover different parts of CEK: encryption at rest, application-level cryptography, credential hygiene and certificate issuance. None of them makes a organization compliant on its own, and each produces evidence only when the team documents the policy, ownership and key procedures around it. Confirm license terms and feature fit in your own environment before you rely on any of them.

Nextcloud server-side encryption

Nextcloud's server-side encryption protects file contents at rest on local and external storage, with keys held on the server. It helps produce evidence for encryption at rest for stored customer files, such as configuration exports showing the encryption module is enabled and the storage backends it covers. The file names and folder structure are not encrypted, so document that metadata gap and decide whether it is acceptable for the data you hold. Confirm the AGPL-3.0-only license terms fit your distribution model.

Nextcloud encryption docs

OpenBao transit secrets engine

The OpenBao transit secrets engine encrypts and decrypts application data without storing that data in the engine, and it can sign and verify data. Its versioned encryption keys and key rotation produce evidence for key lifecycle controls, such as rotation records and the key versions in use at a given time. Your team still owns the decisions on which data is encrypted, who may call the engine and how rotation is scheduled. Confirm the MPL-2.0 license terms and whether the transit features meet your algorithm requirements.

OpenBao transit docs

GitLab pipeline secret detection

GitLab Community Edition runs pipeline secret detection in a CI/CD job, scanning files committed and pushed to the repository, and writes results to a gl-secret-detection-report.json artifact in every tier. The artifact is useful evidence of credential hygiene, showing that scans ran and what they flagged. It does not encrypt anything, so it supports key protection rather than replacing it. Your team must document how flagged secrets are rotated, revoked and tracked to closure. Confirm the MIT license terms and whether the scanners cover your languages and secret types.

GitLab secret detection docs

FreeIPA certificate authority

FreeIPA includes an integrated certificate authority based on Dogtag for issuing and managing certificates. It helps produce evidence for certificate lifecycle management, such as issuance records, revocation history and the list of certificates a service depends on. Your team must document the certificate policy, the key protection for the CA itself and the renewal and revocation procedures. Confirm the GPL-3.0-or-later license terms and check that the CA's capabilities meet your certificate profile requirements.

FreeIPA project site

Who does what for CEK: your team, a partner and the auditor

Your organization is accountable for the cryptographic controls, even when a partner builds the systems that run them. CEK asks for an encryption and key management policy and procedures, so the decisions about which algorithms are approved, how long keys live, who may hold key material and what happens when a key is compromised must come from your own governance process. Those decisions carry business and regulatory risk, and they cannot be delegated to a vendor or consultant.

  • Policy and standards: Approve the encryption and key management policy, the approved algorithms and key lengths, and the rules for customer-managed versus provider-managed keys.
  • Key ownership: Name the key custodians, define separation of duties between key administrators and application owners, and approve key rotation and destruction schedules.
  • Risk decisions: Accept or treat residual risk for data stored without encryption at a given layer, such as file names or metadata that some platforms do not encrypt.
  • Evidence ownership: Retain the approved policy, access reviews for key systems, rotation logs and exception records in a location your assessor can reach.
  • Operational sign-off: Review and approve runbooks before they are used in production.

Before engaging any partner, confirm internally who signs the policy and who answers for a key compromise.

Where cloud providers usually fall short on CEK

Most CEK findings are not missing algorithms. They are gaps between what a provider wrote down and what its systems, owners and logs show. The five gaps below are the ones assessors most often raise when a provider prepares a CAIQ or a third-party audit.

Policy that is not followed

An encryption and key management policy may exist, but teams configure storage and keys their own way. Assessors compare the written policy with running systems. Check that each rule in the policy maps to a configuration setting, a deployment template or a review record. Ask for a sample of recent changes to encrypted services and confirm each one followed the policy. A policy with no linked enforcement point is the first thing to rewrite.

CSA CEK implementation guide

Keys with no owner or inventory

Keys often exist in several places: application configuration, hardware modules, CI variables and old backups. When no inventory lists them, nobody can say who approves their use or when they must be retired. Build a key register that records each key's purpose, owner, location, algorithm and expiry date. Reconcile it against the key management service output each quarter. Any key without a named owner should be treated as a finding.

OpenBao transit docs

Rotation documented but not logged

Runbooks may say keys rotate on a schedule, yet no record proves the rotation happened. Assessors ask for evidence of each rotation event, not for the schedule alone. Confirm that the key manager logs version creation, the operator or service identity, and the time of each rotation. Forward those logs to a central store that the operations team cannot edit. Then sample a few keys and match each rotation to a log entry.

Backups and replicas left unencrypted

Encryption is often enabled on primary databases and object stores, while nightly backups, disaster recovery replicas and analytics copies use default settings. These copies usually contain the same customer data. Inventory every data store and snapshot target, then record its encryption state and key reference. Run a restore test that confirms the restored data is encrypted under the expected key. Any copy without a key reference is a gap to close before the next assessment.

Nextcloud encryption docs

Algorithm choices without a review trail

Cipher suites, key lengths and hash functions are often set once and never revisited. When a weakness is published, the provider cannot show who reviewed its exposure. Keep a short register of approved algorithms with the date each was approved, the reviewer and the next review date. Tie changes to a change ticket that cites the review. Ask engineering to show how a deprecated algorithm would be found in the code and in configuration files.

Questions buyers ask before bringing in outside help on CEK

How much effort does CEK take if we already run a key management system?

An existing key management system usually shortens the work but does not remove it, because CEK is judged on policy, process and evidence as much as on tooling. The effort depends on how much of the domain your current system already covers. Teams typically need to confirm the encryption and key management policy and procedures, map which data stores and services use which keys, check key rotation and retirement practices, and show that key access is logged and reviewed. Gaps tend to sit in documentation, inventory of key use across services, and evidence collection rather than in the cryptographic engine itself. Ask an assessor or partner to walk through your current coverage against the 21 control specifications in the CEK domain before estimating effort.

How long does CEK preparation usually take?

This page does not give a duration, because the supplied sources do not establish one and the answer depends on your environment. The main drivers are the number of services and data stores that encrypt customer data, how many key systems are in use, how mature your existing policies and procedures are, and how quickly your teams can produce evidence. Organizations with a single key system and documented procedures will move faster than those with keys spread across cloud accounts, application code and on-premises systems. Ask any partner to state the assumptions behind its timeline, including which systems are in scope and what your teams must provide, and to show the milestones in writing.

What does the work need from our team: owners, access and change windows?

CEK work needs named owners for each control area, read access to key systems and configuration, and a schedule for any change that touches live encryption or key material. Your organization owns the controls and the decisions about algorithms, key lifecycle and data protection. A partner prepares systems, configuration and evidence, but cannot approve its own changes to production keys. Plan for a security or platform owner who signs off policy, a key system administrator who grants access for testing, and a change approver who sets windows for key rotation or re-encryption. Changes to key handling can affect application availability, so agree rollback steps and maintenance periods before work begins.

Can our own team handle CEK in-house?

Many teams can handle CEK in-house if they have people who understand cryptography in their own stack and the time to document it. The work is manageable where key systems are already in use, the team can run a gap review against the domain, and someone owns the evidence. Outside help tends to add value where the inventory of encrypted data is incomplete, where keys are held in several systems, or where the team has never produced evidence for an assessment. Be realistic about staffing: CEK work competes with operational duties, and gaps found in review can take longer to close than expected. An internal gap review followed by a decision on specific help is a common way to test whether in-house effort is enough.

How do STAR Level 1 and Level 2 relate to CEK submissions?

CEK is part of the Cloud Controls Matrix, which underpins both STAR levels, so the same control work supports either path. STAR Level 1 is a self-assessment in which a provider submits the CAIQ to the public STAR Registry. STAR Level 2 is a third-party audit based on ISO/IEC 27001 certification, SOC 2 attestation, or a C-STAR assessment, combined with a CAIQ submission. For version timing, CSA states that STAR Level 1 and Level 2 accept submissions based on CCM v4.0 or v4.1 until December 2027, after which only v4.1-based submissions are accepted. CCM v4.0.x and CAIQ v4.0.x are withdrawn from maintenance in January 2028. If you plan a submission that will run past 2027, prepare CEK evidence against v4.1 and confirm the version requirements with CSA and your auditor.

What should we ask a partner for in a fixed-scope quote?

A fixed-scope quote should state the scope in writing: which systems, data stores and key systems are covered, which CEK control specifications are included, and what deliverables you will receive. Ask for the list of assumptions, the client responsibilities such as access and owner sign-off, and the milestones that trigger payment. Request a clear statement of what the partner will not do, including that an independent auditor or certification body issues any report or certificate. Ask how retesting or follow-up is handled and whether ongoing support is priced separately. DeployOpen works from a written scope and does not publish a price list, so the quote should follow directly from the scope you agree.

How encryption, key custody and evidence fit together

The diagram starts with customer data moving over transit paths into a cloud service, which encrypts it and writes ciphertext to the data store. The service calls a central key management service for keys, and that service handles key create, rotate and retire events. Each lifecycle event is written to an audit log. Where customers hold their own keys, the customer-managed boundary shows where custody sits with the customer. Policy, the key inventory and rotation logs then feed the assessor. For each arrow, check that a record exists that someone can produce on request.

Encryption, key lifecycle and evidence flow between provider and customer custody.

How DeployOpen scopes, implements and prepares CEK evidence

DeployOpen plans, implements and documents self-hosted open-source platforms that handle encryption and key management inside the client's own infrastructure. The organization keeps ownership of its CEK control decisions, and DeployOpen prepares the systems, configuration records and evidence that an independent auditor or assessor will review.

How we scope

  • Written scope lists which data stores, encryption modes and key hierarchies are in the engagement.
  • Scope records which CEK control specifications the client will evidence and which remain with the client.
  • Scope names the systems, environments and key custodians involved, with deliverables and timelines agreed before work starts.

How we build

  • Configure server-side encryption for file storage and confirm which metadata, such as file names, remains unencrypted.
  • Deploy a transit secrets engine so applications can encrypt data without holding long-lived key material.
  • Set key rotation schedules, versioned key policies and access roles so key use is limited and traceable.

How we hand over

  • Deliver configuration baselines and a key lifecycle runbook covering creation, rotation, revocation and destruction.
  • Provide test records showing encryption settings, key access permissions and audit log entries for assessor review.
  • Document the evidence map from each CEK control specification to the configuration, log or record that supports it.

How we support

  • Ongoing support, upgrades and continuous testing of cryptographic configurations are available as retainers.
  • Retesting of encryption and key management settings follows any remediation agreed in the written findings.
  • Confirm with your auditor which evidence format and sampling approach they expect before the assessment window opens.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.