OpenBao for NIS2 cryptography and key management

OpenBao can carry much of the key management lifecycle that NIS2 Article 21(2)(h) and Implementing Regulation 2024/2690 point 9.2 describe, but policy, ownership and review remain your responsibility. This page maps each requirement to configuration and evidence.

On this page

How OpenBao helps with NIS2 cryptography and key management

An essential or important entity under NIS2 needs a cryptography policy and a key management lifecycle that it can show to its national competent authority. OpenBao covers the technical key lifecycle controls well, but the policy, the risk decisions and the organizational procedures stay with the entity. Article 21(2)(h) of Directive (EU) 2022/2555 asks for policies and procedures on the use of cryptography and, where appropriate, encryption. Implementing Regulation (EU) 2024/2690 then sets the detail: the policy must define approved protocols, algorithms, cipher strength and usage practices, and the key management must cover generation, distribution, storage, changing, compromise, revocation, recovery, backup, destruction, logging and activation and deactivation dates. OpenBao can carry out many of these steps in software, such as Transit keys with versioning and rotation, PKI issuance and revocation, leasing with automatic revocation, and audit logging of key use.

NIS2 creates no certificate of compliance. National competent authorities oversee compliance through inspections, security audits, security scans, information requests and administrative fines. There is no DeployOpen or OpenBao badge that satisfies that review. What DeployOpen does is configure the OpenBao deployment in the client's own infrastructure, document how each lifecycle stage is handled, and prepare the evidence an authority or independent auditor would ask to see, such as configuration exports, audit log samples and access reviews. DeployOpen does not issue audit reports, attestations or certifications, and it does not decide which algorithms the entity approves.

Before scoping the work, the entity should confirm which Implementing Regulation 2024/2690 obligations apply to its sector, since that regulation covers specific service types such as cloud, data center and managed service providers. The entity should also confirm its own cryptography policy owner and the approval path for algorithm changes, because OpenBao will enforce whatever policy the organization writes but cannot write it. Reading the NIS2 Technical Implementation Guidance from ENISA alongside the regulation text is a practical first step for mapping each lifecycle stage to an owner, a tool and a record.

Mapping each key management requirement to OpenBao capabilities

This table maps each key management item in point 9.2(c) of Implementing Regulation 2024/2690 to the OpenBao capability that supports it and the configuration to set. Each row states what the platform covers and what you must confirm against the documentation for your version. The main takeaway is that OpenBao supplies technical controls, while the policy, ownership and key dates stay in records your organization maintains.

RequirementPlatform capabilityConfiguration
Cryptography policy (point 9.2(b))OpenBao does not write the policy. It can enforce parts of it through ACL policies and restricted Transit key types.Record approved algorithms, key sizes and usage rules in your policy. Restrict Transit and PKI paths to match. Confirm supported algorithms for your version.
Generation and certificates (point 9.2(c))Transit creates named encryption keys. The PKI secrets engine generates CA keys and issues certificates from an internal hierarchy.Create keys with fixed names per use. Set PKI roles with allowed domains and maximum TTLs. Confirm key types and any HSM-backed generation.
Distribution (point 9.2(c))Auth methods and policies decide which workloads can request keys or certificates. Leases limit how long they hold them.Use AppRole or Kubernetes auth with least-privilege policies. Document who may request each key and certificate path.
Storage (point 9.2(c))Secret and Transit data are encrypted before they reach the storage backend. The seal protects the root key.Choose Raft or PostgreSQL for HA and confirm the choice against the storage documentation. Keep seal and recovery material in a separate custody record.
Changing and destruction (point 9.2(c))Transit rotation creates new key versions. PKI roles reissue certificates on renewal. Key deletion is governed by Transit settings.Set a rotation schedule per key class. Restrict deletion permissions. Confirm how old versions decrypt data and how deletion behaves in your version.
Compromise and revocation (point 9.2(c))Leases revoke automatically. Bulk revocation removes access in one operation. Tokens and certificates can be revoked.Write a compromise runbook with named roles. Test bulk revocation and certificate revocation in a non-production cluster before relying on them.
Recovery and backup (point 9.2(c))Backups of the storage backend and unseal material are needed to restore the cluster. Procedures differ by backend.Define snapshot schedules for Raft or PostgreSQL. Test restoration, record the result and confirm each step against the backend documentation.
Logging (point 9.2(c))Audit devices record requests to key and secret paths, including the identity that made each request.Enable at least one audit device and forward logs to a store you control. Confirm which event fields your version records.
Activation and deactivation dates (point 9.2(c))Confirm whether your OpenBao version records key validity dates. Plan to keep these dates in a register you control.Maintain a key register with activation, deactivation and destruction dates, each linked to its Transit or PKI path and owner.

Which OpenBao features cover each stage of the key lifecycle

Generation and storage cover how keys are created, where their protected form lives and what protects the root key at startup. OpenBao encrypts key/value data before it is written to the storage backend, and Transit can generate and hold keys so that applications send data to OpenBao for encryption. The regulation asks you to define these choices in policy, and OpenBao carries out the choices you configure.

  • Encrypted storage: Secrets are encrypted before they reach integrated storage (Raft), PostgreSQL or another documented backend, so the storage layer does not hold readable secret values.
  • Seal choice: The seal determines how the root key is protected when the server starts. Confirm whether you use Shamir key shares or an external seal, and record who holds each share.
  • Transit key generation: Applications request encryption operations from Transit, so key bytes stay inside OpenBao instead of being copied into application code.
  • Algorithm and strength policy: Confirm which key types and sizes your OpenBao version offers, and match them to the approved algorithms in your cryptography policy.

Check that your cryptography policy names the approved algorithms, and that every key type OpenBao generates for you appears on that list.

What evidence OpenBao produces and how to keep it

Most of the proof an assessor will ask for already exists as OpenBao output: audit logs, policy files, auth configuration, cluster records and recovery procedures. The work is deciding where each artifact lives, how long it is kept and who can change it. Whether the set is sufficient for NIS2 is decided by competent authorities and the auditors they rely on, not by the software.

Audit device logs of key use

The audit device records requests and responses to OpenBao, including Transit encrypt, decrypt, sign and key rotation operations. Ship these logs to write-once storage outside the cluster so an administrator cannot alter them. Check that sensitive values are HMAC-hashed in the log, that every key operation maps to a named identity, and that gaps are alerted on. Confirm your retention period with your competent authority and your auditor.

HA docs

Policy files as versioned configuration

ACL policy files define which identities may create, rotate, read or destroy each key. Store them in Git with reviewed merge requests, so every change has an author, an approver and a date. Compare the deployed policy with the repository on a schedule to catch drift. Record who approved each change to a cryptography policy, since the Article 21(2)(h) policy must be maintained and not only written once.

Auth method and role configuration exports

Exports of auth methods, roles, groups and token settings show who can obtain access to keys and how. Capture them regularly with the API or your configuration tooling and keep dated copies. Check that machine logins use AppRole or equivalent with bounded lifetimes, that human logins use the identity provider with MFA, and that no unexpected root or admin paths exist. These exports answer the access questions an assessor asks first.

Auth methods docs

HA and backup records

Records of the storage backend, cluster membership, snapshot schedules and restore tests show that key material survives failure. Keep dated backup logs, the results of periodic restore tests into an isolated environment and the storage version in use. Confirm which backend you run, Raft or PostgreSQL, since each has its own backup method. Ask whether backups are encrypted and who holds the keys to them, because a backup without its unseal path is not recovery.

Storage backends docs

Unseal and recovery procedure records

Unseal ceremonies, recovery key custody and any rekey or root token generation are high-risk events that need signed procedures. Record the date, the participants, the custodians named for each share or key, and the outcome of each step. Store the procedure documents and the custody register separately from the cluster. Review them after any change to seal configuration or personnel, since compromise and recovery both depend on them.

Key lifecycle register

A register links each key to its purpose, owner, algorithm, creation, activation and deactivation dates, rotation history, and destruction or revocation. Build it from Transit key metadata and your change tickets, then reconcile it with the audit log each quarter. Missing activation or deactivation dates are the most common gap, so make them required fields. This register is the single document that maps the lifecycle points listed in Implementing Regulation 2024/2690 to real keys.

Regulation 2024/2690 text

Configuring OpenBao for a NIS2 key management record

This sequence turns the NIS2 cryptography and key management requirements into an ordered OpenBao build, so each control has a configured mechanism, a documented procedure and an evidence record that a competent authority can inspect.

  1. Set the cryptography policy first

    Before any OpenBao configuration, the organization writes its cryptography policy. Article 21(2)(h) of NIS2 requires policies and procedures on the use of cryptography, and Implementing Regulation 2024/2690 (Annex, point 9.2(b)) expects the policy to set approved protocols, algorithms, cipher strength and usage practices, with a cryptographic agility approach where appropriate. Security architects, the CISO and the system owners sign it off. The step is done when the approved algorithms and key types are listed, so every Transit key, PKI role and TLS setting in later steps can be checked against that list.

  2. Deploy an HA cluster on a documented backend

    Build the OpenBao cluster on a storage backend the project documents, either integrated storage (Raft) or PostgreSQL, which are the officially supported HA backends. Choose the backend with your operations team in mind, since the project describes PostgreSQL as easier to operate safely than Raft. The unseal method, node placement and failover tests are recorded here, because they support the availability and recovery claims made later. Done means a test failover completes and the cluster reports a healthy active node and standbys.

  3. Configure auth methods for people and machines

    Connect people to an identity provider over OIDC or another approved method, and give servers and workloads machine identities. The project recommends Userpass for developer machines and AppRole for servers, and it documents login MFA, which should be enabled for administrative and privileged access. Map each role to a named owner so that every key operation can be traced to an accountable identity. Done means each role has a policy, MFA is enforced where required, and a test login from each method produces an audit entry.

  4. Enable audit devices before any key use

    Enable at least one audit device before the first Transit key is created, so that generation, use and administrative changes are logged from the start. Logging is a stated element of the key management lifecycle in Implementing Regulation 2024/2690 (Annex, point 9.2(c)). Confirm the destination, retention period and access controls for the audit log with your compliance team, since the retention requirement comes from your own policy and national rules. Done means a test secret read and a test key operation both appear in the audit log.

  5. Define Transit keys and rotation practice

    Create Transit keys for the use cases approved in step one, with names, types and allowed operations recorded in a key register. Set a rotation practice for each key, using key versions so older ciphertext still decrypts while new data uses the current version. Assign activation and deactivation dates in the register, which the regulation expects in its key lifecycle list. Done means each key has an owner, a version history and a documented rotation procedure, and the register matches what the cluster reports.

  6. Configure PKI roles for certificate lifecycle

    Set up PKI secrets engine roles that issue certificates within the algorithms and validity periods defined in the cryptography policy. The regulation's key management list covers certificates, changing, revocation and destruction, so each role should document who may request certificates, how renewal happens and how revocation is triggered. Keep the certificate authority hierarchy and its root key custody documented in the register. Done means a test certificate is issued under the role, renewed, and revoked, and each action appears in the audit log.

  7. Document backup, recovery and a compromise drill

    Write the backup and recovery procedure for the cluster, the unseal material and the key register, and state who may invoke recovery. Then run a compromise drill: simulate a leaked token or key, revoke it through the OpenBao revocation mechanisms, rotate the affected Transit key, and confirm that dependent systems pick up the change. The regulation names compromise, revocation, recovery and backup as separate elements, so each one needs its own test record. Done means the drill report lists the timing observed, the systems affected and the gaps that were fixed.

  8. Export evidence for the key management register

    Collect the artifacts that a national competent authority or auditor would ask for: the signed cryptography policy, the cluster configuration without secret values, the auth method and policy list, audit log samples, the key register, the PKI role records, the backup test results and the drill report. Map each artifact to the lifecycle element it supports, such as generation, storage or logging. Note in the register where a control is still a documented procedure rather than a technical setting. Done means every lifecycle element in the regulation points to at least one dated artifact, and a reviewer can follow the trail without access to the cluster.

How the key lifecycle and evidence flow through OpenBao

The diagram starts with the cryptography policy, which sets the approved algorithms and key usage rules that become OpenBao configuration and policies. The OpenBao cluster then handles key generation, use and revocation inside the entity's trust boundary, while any external unseal or KMS sits outside it. Every operation writes to the audit log, which flows to a retained store that the entity reviews against its register of key dates. Check that the unseal path, the audit device and the retention settings are documented and tested, since those are the points an assessor will ask about.

Policy drives configuration, key events are logged, and the entity reviews the register.

Questions buyers ask about OpenBao and NIS2 key management

Does installing OpenBao make an organization NIS2 compliant?

No. NIS2 does not certify products or issue a certificate of compliance, and no software by itself satisfies Article 21. OpenBao can supply part of the technical evidence for the cryptography and key management measures in Article 21(2)(h), such as central key storage, transit encryption, access policies and audit logs. The organization still has to write the cryptography policy, assign owners, define key lifecycle procedures for generation, rotation, compromise, revocation, backup and destruction, and show that these operate in practice. National competent authorities judge the whole risk-management program through inspections, audits and information requests, not the tool alone. Treat OpenBao as one component within a documented control set.

What does a consultant charge for OpenBao key management work?

DeployOpen does not publish a price list. A quote follows from a written scope, and most engagements are fixed-scope with deliverables and timelines agreed before work starts. The main cost components are planning and gap analysis against the key lifecycle requirements, architecture and deployment in your infrastructure, integration with the applications that use keys, documentation of procedures and evidence, and testing. Costs rise with the number of key types and applications to migrate, the number of environments, the depth of HSM or cloud KMS work for unseal, the state of existing documentation, and whether the entity needs ongoing support or retesting. Ask any provider for a quote that separates one-time build work from recurring operations, and for the assumptions behind each line.

How long does a scoped OpenBao implementation for NIS2 take?

The duration depends on the scope agreed in writing, so no fixed figure applies to every organization. The schedule usually depends on how many key classes and systems are in scope, whether an HA storage design and unseal method must be chosen and approved, how many applications need their key use changed, how quickly internal approvals happen, and how much policy work is already done. Policy and procedure sign-off often takes longer than the technical build, and that work runs in parallel with it. Ask a provider for a milestone plan that lists dependencies on your change board, security reviews and access to infrastructure, and confirm which milestones your own teams must staff.

What must our organization provide for an OpenBao engagement?

The organization needs to provide decisions and access before the build can finish. Typical inputs include a named owner for the cryptography policy, owners for each key class, a technical lead who can approve architecture choices, and staff who know the applications that will consume secrets or transit keys. Infrastructure access is also required: the target cloud accounts, data centers or air-gapped networks, DNS and certificate paths, identity provider configuration, logging destinations and backup targets. Ask for a responsibility matrix in the statement of work that shows which tasks DeployOpen performs in your environment and which tasks your staff perform, along with review and approval steps.

Can our internal team implement OpenBao key management alone?

Many internal teams can, provided they have engineers who understand OpenBao's operating model and the cryptography requirements in the NIS2 implementing rules. The work splits into three parts: technical deployment, which includes storage backend and HA design, unseal and recovery, auth methods and policies; key lifecycle procedures; and evidence. Teams that have not run a secrets manager in production often underestimate the recovery, rekey and audit logging work. A practical test is whether your team can rehearse recovery, rotate a transit key without an outage, and produce logs that an assessor can follow. If any of these are uncertain, a fixed-scope review or partial engagement can cover the gap.

How does this page's mapping relate to ENISA's NIS2 guidance?

The mapping on this page follows the requirement text in Article 21(2)(h) and point 9.2 of Implementing Regulation (EU) 2024/2690. ENISA published non-binding technical implementation guidance for that regulation on 26 June 2025, with examples of evidence and mappings to ISO/IEC 27001:2022 and NIST CSF 2.0. Use ENISA's guidance to check which evidence an assessor is likely to expect, but treat it as guidance rather than law. Your national transposition law and the competent authority's expectations also apply. The Commission's January 2026 proposal to amend NIS2 (COM(2026) 13) is still a proposal, so confirm its status before relying on it in planning.

Which key lifecycle steps does an OpenBao deployment cover directly?

OpenBao covers several steps directly through its features. Secrets and transit keys can be created in managed engines, key versions support rotation, and encryption as a service keeps key material inside the server. Leases and bulk revocation support revocation of credentials, and audit logging records key use. Backup, destruction, and procedures for key compromise depend on your storage design, unseal method and written procedures. Activation and deactivation dates are typically managed through key version and policy design plus your own records. Ask the implementer to show, for each step in point 9.2(c), whether OpenBao performs it, whether a configuration performs it, or whether a documented procedure must cover it.

How DeployOpen scopes and delivers NIS2 key management work

DeployOpen deploys OpenBao inside your own infrastructure and starts with the cryptography policy and key lifecycle your NIS2 obligations require. The work is scoped in writing, built against that scope, tested, documented and handed to your team, with optional ongoing support.

How we scope

  • Map your in-scope services, key types and data flows before any OpenBao design decisions are made.
  • Confirm which lifecycle stages from generation to destruction your team already performs and which need new procedures.
  • Agree in writing which cryptography policy elements, owners and evidence records the engagement will produce.
  • Confirm hosting location, network isolation and sign-off roles so the written scope matches your governance model.

How we build

  • Deploy OpenBao in your cloud accounts, data centers or air-gapped network with the storage backend your team can operate.
  • Configure Transit, PKI and key/value engines with rotation, versioning and activation or deactivation dates recorded.
  • Set access policies and auth methods so key use is limited to named workloads and administrators, with audit logging enabled.

How we hand over

  • Document the key lifecycle procedures covering compromise response, recovery, backup and destruction for your staff.
  • Provide a control-to-evidence map showing where each lifecycle stage is configured, logged and reviewed in OpenBao.
  • Run a walkthrough and test restore, rotation and revocation with your operators before the engagement closes.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing upgrades, continuous testing and cryptography policy reviews are available as a retainer.
  • Ask in your quote which items are one-time work and which recur, and who owns each after handover.

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.