Ceph security hardening

Ceph security hardening sets the controls that decide who can reach your data, daemons and admin interfaces. This page covers the decisions, build order, effort drivers and checks for a self-hosted cluster.

On this page

Why Ceph security hardening takes more than default settings

If you are deploying a Ceph cluster or inheriting one, a security review will expect proof, not assurances: that monitor and OSD traffic is protected, that client keys are scoped tightly, that storage and management networks are separated, and that administrative access is controlled and logged. Default settings rarely answer those questions on their own. Each exposed surface needs its own decision, and the decisions must be written down so an assessor can trace them to a setting and a test result.

The surfaces differ. Monitor and OSD daemons talk to each other and to clients over the messenger, where the msgr2 secure mode choice determines whether post-authentication traffic is encrypted. Clients authenticate through cephx, and the key capabilities you grant decide what each application can touch. The Ceph Dashboard, the Object Gateway (RGW) endpoints and the cephadm-managed containers each add their own exposure, from web sessions and S3 or Swift listeners to the host-level processes that run the cluster. Encryption at rest for OSDs is a separate question again, and it affects key handling as much as disk configuration.

Hardening is also tied to the release you run. Feature availability and default behavior vary between Ceph releases, so before you write a standard, confirm which settings the release in use supports, and check the Ceph releases page for the maintained branches. Ask your vendor or implementation partner to map each control to a documented option in that release, not to a remembered one.

The work also spans teams. Storage engineers own pools, OSDs and keys, network engineers own the separation and switch configuration, and identity and security teams own administrative access and audit trails. This page does not cover SSO configuration, upgrade sequencing, or pool and CRUSH design, which have their own pages. Assign an owner for each surface before the hardening work starts, so the evidence you collect can be reviewed end to end.

Which Ceph components carry the security controls

Ceph security hardening is spread across six components, each with its own configuration and its own failure mode. The cards below cover the wire protocol, authentication keys, data at rest, the management plane, the object gateway and the orchestrator that places every daemon.

Messenger v2 secure mode

The messenger v2 protocol listens on port 3300 and, in secure mode, encrypts all traffic after authentication with AES-GCM and adds integrity checks. Without it, daemon and client traffic on the cluster network can be read or altered by anyone with a path to it. Confirm in the release docs which setting enables secure mode on your release and whether any older clients in your environment cannot negotiate it.

Messenger v2 docs

cephx keys and capabilities

cephx issues each client and daemon a key with capabilities that limit which pools, namespaces and operations it may use. Overly broad capabilities, such as a client with full access to every pool, turn one leaked key into cluster-wide access. Review every key with ceph auth ls and confirm, for each one, which pools and operations it genuinely needs.

OSD data devices and encryption

OSDs store the data, so a stolen or decommissioned drive exposes everything on it unless the device is encrypted. Decide whether encryption is applied at the OSD level through cephadm, and confirm how keys are stored and escrowed, since losing them makes the data unrecoverable. Also confirm how a failed drive is wiped before it leaves the data center.

Dashboard and SSO options

The Ceph Dashboard is a web management plane with administrative power over the whole cluster, so its exposure is a security decision. It supports single sign-on through SAML 2.0, and through OAuth2 when cephadm runs the Management Gateway and OAuth2 Proxy services. Confirm which option your release supports, restrict who can reach the Dashboard network, and review which accounts hold administrator roles.

Dashboard docs

RGW authentication and API exposure

The Ceph Object Gateway (RGW) serves S3 and Swift APIs and can authenticate users through options such as LDAP, Keystone, STS and multi-factor authentication. Each option changes who can create buckets, read objects and issue temporary credentials. Confirm which authentication path your buckets depend on, which endpoints are reachable from outside the internal network and how access policies are reviewed.

Object Gateway docs

cephadm daemon placement

cephadm runs Ceph as containers, places daemons on hosts and restarts them when they fail. Its configuration determines where monitors, managers and gateways run, and so which hosts hold cluster credentials and which networks they can reach. Confirm which hosts are admitted to the cluster, how the orchestrator's SSH access is restricted and how container images are pinned and updated.

cephadm docs

Which hardening options to choose and what each costs to run

This table compares six Ceph hardening decisions by when each fits and what it adds to daily operations. Read each row as a trade-off: the security gain is usually clear, and the operational cost (rotation, benchmarking, extra components) is what your team must staff and budget for.

OptionWhen it fitsWhat it costs operationally
msgr2 secure mode for all trafficClusters where all daemons and clients support msgr2 and you want traffic encrypted and integrity-checked after authenticationBenchmark CPU overhead on your hardware before enforcing it. Confirm every client library and gateway in your estate speaks msgr2 before cutover.
msgr2 compatibility mode during transitionMixed-version clusters or legacy clients that cannot yet negotiate secure modePlaintext paths remain until you remove them. Track which clients still connect unencrypted and set a dated end to the exception.
OSD encryption with keys held in the clusterSimpler operations where the cluster's own key store is acceptable to your data protection policyKey backup and access control become your duty. Confirm the key handling supported in your target release and document who can read the key store.
OSD encryption with keys in an external key managerRegulated environments that require key custody outside the storage clusterAdds a key manager to monitor, back up and patch, plus an availability dependency at OSD boot. Confirm the supported integration for your release before design.
Flat network versus separate public and cluster networksFlat network suits small test clusters. Separate public and cluster networks suit production traffic isolationSeparate networks double the interfaces, addressing and firewall rules to maintain. Bonded links across two switches are advised by the hardware recommendations, which adds switch configuration to track.
Dashboard exposed directly versus behind a management gateway with SSODirect access fits a closed admin network with few operators. A gateway with SSO fits teams needing central identity and auditGateway mode adds the Management Gateway and OAuth2 Proxy services to patch and monitor. SAML 2.0 SSO also needs IdP certificate and metadata renewal on a schedule.
RGW exposed directly versus behind a reverse proxy or load balancerDirect exposure fits internal workloads. A reverse proxy fits TLS termination, rate limiting and centralized logging for internet or partner accessThe proxy needs certificate lifecycle management, its own logs and health checks, and capacity planning for TLS overhead. Test large object uploads through it.
Broad versus narrow cephx capabilities per clientNarrow caps fit every production client. Broad caps are acceptable only for short-lived administrative tasksNarrow caps mean more keys to inventory, rotate and review. Expect recurring effort to map each application to pools, namespaces and capabilities and to retire unused keys.

How to sequence the hardening work on a new or existing cluster

This sequence moves a Ceph cluster from its current state to one where encrypted daemon traffic, scoped client keys, separated networks, controlled front ends and logged administrative access are each verified before the next layer is added. Each step closes with a check you can rerun, so the team can show what changed and when.

  1. Inventory daemons, clients, admin paths and networks

    Before changing anything, the cluster owner and the implementation team list every Monitor, Manager, OSD host, RGW instance and Dashboard endpoint, along with each client that authenticates to the cluster and each admin route, such as SSH, the cephadm orchestrator and the Dashboard. Record which networks carry client, replication and management traffic, and which hosts sit outside the storage network. Done means you hold a written inventory that a second engineer has reviewed and that matches the output of ceph orch ps and ceph auth ls.

  2. Confirm the release and its maintenance status

    Record the running Ceph release and compare it with the Ceph releases page. The page lists Tentacle (20.2.x) and Squid (19.2.x) as actively maintained, with Squid's estimated end of life on October 31, 2026, and states that maintained releases receive periodic security fixes. If the cluster runs an older release, plan the upgrade before hardening, because later steps depend on features and fixes in maintained versions. Done means ceph versions shows one release across all daemons and the team has a dated plan for any release that is out of maintenance.

  3. Enable msgr2 secure mode and verify negotiation

    Set the messenger v2 modes for the cluster, public and client traffic to secure mode, using the msgr2 settings in the Ceph documentation for your release. Secure mode encrypts all traffic after authentication with AES-GCM and adds integrity checks, and the Monitors listen on port 3300. Restart daemons in the order the upgrade guidance recommends, then confirm that a client connection shows a secure session. Done means ceph mon dump lists v2 addresses and a test client connection negotiates secure mode, while a client forced to plaintext is refused.

  4. Separate public, cluster and firewall paths

    Assign the public network to client and monitor traffic and a separate cluster network to OSD replication and recovery, then restrict which hosts can reach each. Bond the network links across two switches, as the hardware recommendations advise, so that the separation does not add a single point of failure. Write firewall rules that allow monitor, OSD and RGW ports only from their intended sources and block the cluster network from user subnets. Done means a host outside the cluster network cannot open a connection to an OSD port, and the same test from an approved client succeeds.

  5. Scope cephx keys to each client

    Create one cephx user per application, host or service, granting only the pool, namespace and operation capabilities that client needs. Review each key from the inventory, remove keys for retired clients and rotate any key that was shared between several systems or stored in a file with broad permissions. Keep the admin key for break-glass use only. Done means ceph auth ls shows no unused entries, each remaining client can complete its read and write tests, and a test using one client's key to reach another pool is denied.

  6. Configure and test OSD encryption at rest

    Decide whether the threat model requires encryption at rest for OSD devices, considering who can physically remove drives and what your data classification demands. If it does, deploy dm-crypt encrypted OSDs through cephadm or ceph-volume for new devices, and plan a staged replacement for existing ones, keeping key management aligned with your key custody policy. Then restart an encrypted OSD host and confirm the OSDs return to up and in without manual key entry or data loss. Done means the restart test passes, ceph health detail reports no new warnings, and the team has documented where the encryption keys are held.

  7. Expose Dashboard and RGW through chosen front ends

    Publish the Dashboard and RGW only through the reverse proxy or load balancer your architecture chose, with TLS terminated at that layer and direct access to the Dashboard and RGW ports blocked from user networks. Enable single sign-on for the Dashboard using SAML 2.0, or OAuth2 when cephadm runs the Management Gateway and OAuth2 Proxy services, and configure authentication for RGW against your identity source. Done means a direct request to the Dashboard or RGW port from a user network fails, an unauthenticated request through the front end is refused, and a valid SSO login succeeds.

  8. Enable audit logging and review admin accounts

    Confirm that the cluster audit channel records administrative commands and that its log is shipped to a store the storage team cannot edit. Then review every account with administrative rights on the Dashboard, the orchestrator and the cluster, removing accounts that are no longer needed and assigning named owners to the rest. Test the audit trail by making a harmless configuration change and confirming the change appears with the user who made it. Done means the audit entry is visible in the central log, the admin list has a named owner for each account, and the review record is signed by the cluster owner.

Where the trust boundaries sit in a hardened Ceph cluster

The diagram starts with client traffic and admin workstations on the outside, which reach the cluster only through a bastion and a reverse proxy. Requests then pass into the Ceph public network, where RGW, monitors and managers authenticate with cephx and the Dashboard accepts logins through SSO when the management gateway is in place. The isolated cluster network carries OSD replication traffic and should be reachable only from other Ceph nodes. Check that every hand-off has a firewall rule, that msgr2 secure mode is enforced on the public path, and that no admin or client route reaches the cluster network directly.

Trust zones in a Ceph cluster, with the isolated cluster network carrying only OSD replication.

Hardening controls that protect access and keys

Most Ceph incidents that reach production trace back to a few access paths: a client key with more rights than it needs, an admin keyring copied to a laptop, or a web interface reachable from networks it should never see. The five controls below cover those paths, and each one should be tested with a specific attempt, not only documented.

cephx key scope

Create one cephx key per client, with capabilities limited to the pools, namespaces and operations that client uses. A key that can read and write every pool turns one compromised application into a cluster-wide problem. Record an owner for every key, and test that a key cannot read a pool it was not granted, for example by running a read with the key against a neighboring pool and confirming the denial.

Cephadm docs

Admin access

Decide who may run cephadm and ceph commands with admin rights, and give each person a separate account instead of a shared admin keyring. Keep the admin keyring off engineer workstations and out of shared automation. Test by listing every holder of admin rights, confirming each one maps to a named person, and checking that a removed engineer loses access to the orchestrator and the CLI.

Dashboard exposure

Keep the Ceph Dashboard off any direct internet path, and reach it through a bastion, VPN or internal network only. Where your environment supports it, connect single sign-on over SAML 2.0 or OAuth2, and set session timeouts and password rules from your own security standard. Test from outside the management network to confirm the port does not answer, and test that an expired session is refused.

Dashboard docs

RGW exposure

Terminate TLS in front of the Object Gateway, choose an authentication method your identity team can operate, and review bucket policies before they reach production. Disable anonymous access unless a public bucket has a written reason. Test with an unauthenticated request to each bucket and confirm it is denied, and check that a policy granting public read is caught by review.

Object Gateway docs

Secrets handling

Inventory where keyrings, OSD encryption keys and SSO client secrets are stored, and who can read each one. Keyrings and encryption keys should sit in a restricted location with read access limited to the roles that need them, not in shared configuration files or tickets. Test by reading each secret store with a standard user account and confirming access is refused, and confirm the rotation owner for each secret.

What drives hardening effort and how to keep it down

This table lists the factors that most change how much work a Ceph hardening project involves, why each one adds effort, and what to settle in a written scope. Read it before asking for a quote, since most of the difference between two quotes usually comes from these drivers rather than from the hardening steps themselves.

DriverWhy it raises effortHow to keep it down
Number of clients and cephx keysEvery client user holds a cephx key with caps on pools, namespaces or RBD images. Each key must be inventoried, scoped and rotated, and applications that share a broad key are slow to split.Ask for an inventory of existing keys and their caps before scoping. Agree on a per-application key model up front so changes are not repeated per client.
Number of hosts and daemons to reconfiguremsgr2 secure mode, network binding, Dashboard and RGW settings are applied across monitors, managers, OSDs and gateways. More hosts means more restarts, more verification and a longer change window.Confirm the host and daemon count and the orchestration method (cephadm or Rook). Ask for the change sequence to be written as a rolling procedure with health checks between steps.
Number of environments (lab, staging, production)Each environment needs its own settings, test runs and evidence. Changes validated in lab often need adjustment in staging and again in production.Limit the number of environments in scope or agree that staging is the rehearsal for production. Ask whether lab work is included or billed separately.
OSD encryption and key management decisionEncryption at rest for OSDs needs a key management choice, key custody rules and a tested recovery path. Keys lost or misplaced make data unrecoverable, so the decision takes time with the client's security team.Decide the key management approach before the engagement starts. Ask whether the scope covers only enabling encryption or also key rotation, escrow and restore testing.
SSO for Dashboard or RGW needing an identity teamDashboard SSO over SAML 2.0 or OAuth2, and RGW authentication through LDAP or Keystone, depend on identity provider configuration owned by another team. Scheduling, test accounts and group mapping can stall the work.Name the identity owner and their availability in the scope. Ask for test accounts and group mappings to be provided before configuration starts.
Existing data and running clients to check during changesHardening changes such as cephx cap tightening, network moves or msgr2 enforcement can break running clients. Each client and pool must be checked before and after the change.Ask for a client inventory and a list of critical workloads. Agree on a validation checklist per client type (RBD, CephFS, RGW) and a rollback point for each step.
Compliance evidence requirementsAssessors often expect configuration records, change logs, access reviews and proof of encryption settings. Collecting this evidence in a usable form adds documentation work on top of the configuration itself.Ask which control frameworks and evidence formats the client needs. DeployOpen prepares systems, controls and evidence, but independent auditors issue any audit report or attestation.
Custom network or firewall designsSeparating public, cluster and management networks, and restricting Dashboard and RGW ports, depends on the client's switching, VLAN and firewall rules. Each exception needs its own review and testing.Provide the existing network diagram and firewall policy before scoping. Ask for a written list of required flows so the design is tested once rather than per rule.

How hardening differs for cephadm, Rook and air-gapped clusters

On a cephadm-managed cluster, daemons run as containers that cephadm deploys, restarts and reconfigures, so hardening changes are made through cephadm and the Ceph configuration database instead of editing files on each host. Cephadm does not support releases older than v15.2.0, so confirm your release before you plan any change that depends on orchestrator behavior. Most of the work is a short list of changes applied once and then verified on every host.

  • Configuration changes: Set msgr2 modes and Dashboard options with ceph config set, then review the stored values with ceph config dump so settings do not drift between hosts.
  • Service placement: Use service specifications to control where the Dashboard, RGW and monitors run and which hosts expose them, and review those specifications after every change.
  • Daemon restarts: Identify which changes need a daemon restart or redeploy, and schedule them in a defined change window, because some settings take effect only after a restart.
  • Orchestrator access: Restrict SSH access for the cephadm user and record who can run orchestrator commands, since those commands can redeploy daemons.

Before you close a change, confirm the running configuration on each daemon as well as the stored value, and attach that output to your change record.

How to test that the controls work and fail safely

Test each hardening control in two directions: the attack or mistake it should block must fail, and the normal operation it must preserve must still work. Run the negative tests first, because a control that has never been seen to refuse something has not been shown to work. Build a test client with a reduced cephx capability set and confirm that a request against an out-of-scope pool is denied. Attempt a connection that offers a downgrade from msgr2 secure mode and confirm the cluster refuses it. Attempt traffic from the client segment directly to the cluster network and confirm the firewall or routing blocks it. Send anonymous requests to the Object Gateway and confirm they are rejected, and reach the Dashboard login path without SSO to confirm that local fallback is disabled as your design intends. Record the exact command, response and time for each result.

Then run the positive tests that prove the controls do not break service. Restart one OSD on an encrypted device and confirm it rejoins the cluster and returns to a healthy state without operator intervention about its key. Rotate a client key, then confirm the client reconnects with the new key and the old key no longer authenticates. Perform an administrative action, such as creating a pool or changing a user capability, and confirm the audit log records the actor, the action and the time. Confirm with your own operations team which log destination and retention apply, because the log must be searchable by the people who investigate incidents.

Run these tests on the same Ceph release that runs in production, since behavior of security settings can differ between releases, and repeat the full set after every upgrade or configuration change, including changes made by cephadm. Keep the results with the configuration under version control so that a later reviewer can match each control to its evidence. These checks help prepare evidence for a compliance assessment, but they do not replace an independent auditor, and a passing test run does not amount to an attestation or certification. Ask your assessor early which evidence format they expect.

What to monitor, rotate and document after hardening

Hardening is a state that drifts unless someone watches it, rotates the secrets behind it, keeps the release current and writes down what was done. The four areas below connect because each one produces the evidence or the signal that shows the controls still work.

Monitor health and access signals

Track cluster health status, failed cephx and Dashboard authentication attempts, admin logins outside the expected administrators and change windows, and traffic on the cluster network that should only carry OSD replication and heartbeats. Route these into your existing logging and alerting platform so that a monitor or manager change is seen by someone other than the person who made it. Confirm alert thresholds and log retention periods against your own security policy before you rely on them.

Dashboard docs

Rotate keys and credentials

Create a rotation schedule for cephx keys, SSO client secrets for the Dashboard, RGW user access keys and TLS certificates. For each item, record the procedure, the owner who performs it and the owner who approves it, and test the procedure on a non-production cluster first. Rotating a cephx key used by an automation account can stop that workflow, so list every consumer before changing it.

Keep the release maintained

Confirm on each review that the cluster runs a release still receiving backports and security fixes. Squid's estimated end of life is October 31, 2026, and Tentacle's is June 1, 2027, so plan the move to Tentacle well before Squid reaches end of life. Schedule the upgrade through cephadm and rehearse it, because a cluster that falls out of maintenance also falls out of security fixes.

Ceph releases page

Document the baseline and evidence

Keep a configuration baseline that records msgr2 secure mode, OSD encryption settings, cephx capability scopes, network separation and Dashboard and RGW exposure. Maintain a network diagram, a key register listing every key and its owner, and an audit evidence list that names each log source and where it is stored. Review the baseline after every upgrade or topology change, since an undocumented change is hard to explain to an auditor or incident responder.

How much work Ceph security hardening takes and what it needs from your team

Can an in-house team harden a Ceph cluster without a partner?

Yes, a team with working Ceph and network experience can do most of this in-house, and many do. Whether it should depends on three things: how many cephx keys and client identities need reviewing, how many environments (lab, staging, production, disaster recovery) must be kept consistent, and which compliance scope the cluster falls under. Hardening touches the messenger configuration, OSD encryption, key capabilities, network layout, the Dashboard and RGW endpoints, and admin audit trails, so the team needs to test each change against a running cluster. Teams without that recent hands-on experience usually benefit from an outside review of the baseline before changes are made. Confirm internally who owns each area before deciding.

What drives the cost of Ceph security hardening?

The cost follows the amount of work in each area, not a fixed package. The main effort drivers are: the number of cephx keys and clients to scope; the number of clusters and environments; whether OSD encryption at rest must be introduced into an existing cluster or planned for new hosts; how many network segments and bonded links need separation; how many Dashboard and RGW endpoints are exposed and how they are fronted; whether single sign-on is in scope; and how much evidence the compliance team expects. One-time costs include the baseline review, configuration changes, testing and handover documents. Recurring costs include key rotation, reviews of admin access and retesting after upgrades. Ask any provider for a quote that lists each area separately, with the environments and the test plan it assumes.

How long does Ceph security hardening take?

The duration depends on the number of environments, the size of the key inventory, the network changes needed, and how many change windows the production cluster allows. There is no fixed duration that applies to every cluster, so the timeline should be set in the written plan that comes out of the baseline review. A sound plan separates work that can be done in a lab from changes that need a maintenance window, and it allows time for retesting after each production change. Ask for the phases, the change windows assumed, and which items depend on a release upgrade.

What does the work need from our team?

Plan to give the work access and decisions, not only time. You will need access to the Ceph hosts and the cluster through an account that can read configuration and make approved changes, plus scheduled change windows for production. The identity owner must supply the user directory and SSO details if the Dashboard or RGW will use them. The network owner must confirm VLAN and firewall plans for the public and cluster networks. A named approver must sign off every administrative change, including key capability changes and changes to the Dashboard or RGW exposure. Someone on your side should also own the audit log review after the work ends.

Can msgr2 secure mode be enabled on a running Ceph cluster?

Secure mode is a setting of the msgr2 messenger, which listens on port 3300 and encrypts all traffic after authentication with AES-GCM and adds integrity checks. Whether a running cluster can switch to it without disruption depends on the release and on how clients connect, so the exact transition steps must be confirmed for the release you run. Check which clients and older components still use the legacy v1 protocol, confirm that every daemon and client supports the chosen mode, and plan a rollback path. Test the change on a non-production cluster first and confirm the procedure in the Ceph msgr2 documentation for your release before scheduling it.

What does the handover include at the end of the work?

A complete handover should let your team operate and audit the cluster without the implementer. The usual package includes a configuration baseline that records the messenger mode, OSD encryption settings, network layout, Dashboard and RGW exposure and admin access settings; a key register listing every cephx key, its owner, its capabilities and its rotation process; test results showing what was checked and what passed or failed; and runbooks for key rotation, admin access review, adding hosts and responding to a suspected key exposure. Ask for the exact list of documents and confirm that each one matches the release and environment you run.

How DeployOpen scopes, hardens and hands over Ceph security work

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including Ceph security hardening. Work starts from a written, fixed scope that names the cluster, interfaces and controls to be reviewed, and it ends with documentation and evidence your own team can operate and audit.

How we scope

  • Inventory the cluster release, deployment method and which interfaces are exposed to users, admins and applications
  • Agree in writing which controls are in scope: msgr2 secure mode, OSD encryption, cephx capabilities, network separation, Dashboard and RGW exposure
  • Confirm access to test environments, change windows and the administrative accounts needed for the review

How we build

  • Configure msgr2 secure mode and verify that daemons negotiate encrypted connections before enforcing it cluster-wide
  • Scope cephx keys to the pools, namespaces and gateways each client actually needs, then test that unauthorized access fails
  • Separate public, cluster and management traffic, restrict Dashboard and RGW endpoints, and check the results with hands-on tests

How we hand over

  • Deliver a written configuration record covering each hardened control, its setting, owner and the test that proves it
  • Provide a findings report with fixes applied, open risks and the retest results for each finding
  • Document how administrative access is logged and reviewed so your team can repeat the audit after handover

How we support

  • Review hardening settings again when you move to a new maintained release, such as Squid or Tentacle, before upgrades go live
  • Offer ongoing support, upgrades and continuous testing as a retainer, priced from the written scope
  • Confirm with your auditor which evidence they need, since DeployOpen prepares evidence but does not issue audit reports or certifications

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.