CyberArk Conjur is a secrets manager built around machine identity, so securing it is mostly about how you define hosts, which authenticators you switch on, how you lay out policy and how you place followers. Get those four things right and applications receive only the secrets they need, through credentials that are short-lived or tied to the platform they run on. Get them wrong and Conjur becomes a single place where one leaked API key unlocks far more than intended.
This guide is for platform engineers, secrets management owners and identity teams who run Conjur Open Source or the enterprise edition. It explains the identity and policy model, then works through hosts, authenticators, policy structure, the encryption key, leader and follower design, audit and day-two operations. The general CyberArk platform is covered separately in the CyberArk Security Hardening Guide; this page covers Conjur only and does not repeat that material.
This is an independent guide from NHI Mgmt Group, based on CyberArk's public documentation as of November 2026. It is not sponsored or reviewed by CyberArk. Product features change, so confirm settings against CyberArk's current documentation.
Key takeaways
- Conjur's README describes it as secrets management and application identity, made of a policy language, a REST web service and integrations. Policy is the security boundary, so treat policy files as production code.
- Every workload should have its own host identity. Shared hosts turn one compromise into many.
- Only the default
authnauthenticator is available unless others are allow-listed inCONJUR_AUTHENTICATORS. Enable only what you use, and consider removingauthnwhere platform authenticators cover every workload. - Prefer platform-attested authenticators such as JWT, cloud and directory authenticators over long-lived host API keys wherever the workload supports them.
CONJUR_DATA_KEYprotects every encrypted value. Losing it makes data unrecoverable and exposing it removes the protection, so manage it like a root key.- In the enterprise edition, followers are read-only replicas that serve secret retrieval and authentication. Place them close to workloads and keep the leader reachable only by the systems that need to write.
How identity and policy work in Conjur
Conjur's README describes three main parts: a policy language, a REST web service and integrations. The policy language, which the project calls Machine Authorization Markup Language (MAML), is a role-based access policy language for defining system components, their roles, privileges and metadata. The web service manages identity life cycles for humans and machines, authorises access to resources through its permission model, and stores secrets.
In practice, the objects you work with every day are:
- Hosts, which represent machine identities such as an application, a pipeline job or a container workload.
- Users, which represent people, typically administrators and operators.
- Groups, which collect hosts or users so privileges can be granted once.
- Variables, which hold secret values.
- Webservices, which represent services such as an authenticator that roles are allowed to use.
- Policies, which load these objects and their grants and act as namespaces.
Access is granted with privileges on resources. CyberArk's GitHub Actions integration shows the common pattern: a group is permitted read and execute on a set of variables, and a separate grant gives the group authenticate on the authenticator webservice. Hosts are then added to the group. Keeping this indirection, rather than permitting individual hosts directly on variables, makes reviews and revocation far simpler.
The README also notes that one Conjur database can hold several separate accounts, managed through the /accounts service and controlled by the built-in resource !:webservice:accounts. If you use multiple accounts for separation, restrict who holds privileges on that resource.
Designing host identities
Hosts are the non-human identities at the centre of Conjur. How you define them decides blast radius.
One host per workload
Create a distinct host for each application, service or pipeline, and where practical for each environment. A host named for a whole team or a whole cluster means every workload behind it can read every secret granted to it. When that host's credential leaks, you cannot tell which workload was abused, and you cannot revoke one without breaking the rest.
Bind hosts to attributes, not just keys
Authenticators such as the JWT authenticator let a host be matched to attributes of the calling workload. In CyberArk's GitHub Actions integration, a host carries annotations such as authn-jwt/github/repository and authn-jwt/github/workflow, so only a token from the named repository and workflow can authenticate as that host. This is the strongest pattern available: the workload proves who it is through its platform, and Conjur checks the claims against policy.
Treat host API keys as secrets of the highest class
Hosts can also authenticate with an API key. The integration documentation shows a host created with the annotation authn/api-key: true for API key use. The README notes that role API keys are stored encrypted in the database, and the authenticator design notes describe login as exchanging a password for a rotatable API key. An API key that sits in a pipeline variable, an environment file or an image is a standing credential. Where you must use one, store it only in a protected secret store of the calling platform, rotate it on a schedule, and alert on its use from unexpected sources. The Secrets Zero Problem Guide covers how to avoid bootstrapping with a static key at all.
Annotate for ownership
Use host annotations to record an owner, purpose and environment. NHI Mgmt Group recommends treating a host with no recorded owner as a finding in access reviews, because ownerless machine identities are the ones that outlive their applications.
Authenticators: choose, allow-list and scope
Authenticators decide how a host or user proves its identity before Conjur issues an access token. Conjur's authenticator design notes set out the rules.
- Allow-listing. Authenticators other than the default
authnmust be listed in theCONJUR_AUTHENTICATORSenvironment variable as a comma-separated list. If the variable is unset, onlyauthnis available. If it is set, only the listed authenticators are available, and leavingauthnout disables default Conjur authentication. - Declared as webservices. Each non-default authenticator must be declared in policy as a webservice under the
conjurnamespace, for exampleconjur/authn-ldap/sysadmins. - Service IDs. An optional service ID lets you run several instances of one authenticator type, for example one LDAP instance for administrators and another for developers.
- Explicit permission. Principals must be granted the
authenticateprivilege on the authenticator webservice before they can use it.
The design notes list LDAP, IAM, OIDC, Azure and GCP authenticators alongside the default. CyberArk's GitHub Actions integration documents the JWT authenticator. Use these rules to build a tight configuration:
- Allow-list only the authenticators you actually use. Each enabled authenticator is an entry point.
- Use a separate service ID per trust domain, such as one JWT authenticator per identity provider or per cluster, so a misconfiguration in one does not affect the others.
- Grant
authenticateto a consumer group, not to individual hosts, and add only the hosts that should use that authenticator. - Once every workload uses a platform authenticator, consider removing
authnfrom the allow-list for workloads, keeping a controlled path for administrators. - Use the authenticator status feature, which the design notes describe as returning the reason for a configuration problem, and restrict read access on the status webservice to an operators group as the integration example does.
Configuring the JWT authenticator safely
CyberArk's GitHub Actions integration shows the JWT authenticator settings held as variables under the authenticator policy. The ones that matter most for security are:
| Setting | What it does | Security note |
|---|---|---|
jwks-uri or provider-uri | Where Conjur fetches signing keys; one or the other is mandatory | Point only at the identity provider you trust for this service ID |
issuer | Expected token issuer | Set it, so tokens from another issuer are rejected |
audience | Expected audience claim | Set a value unique to your Conjur, so tokens minted for other services are rejected |
token-app-property and identity-path | Map a token claim to a host under a policy path; each requires the other | Keep the identity path narrow so a claim cannot map to hosts outside it |
enforced-claims | Claims every host must be annotated with | Enforce the claims that pin a workload, such as repository and workflow |
The integration documentation notes that a GitHub workflow using JWT needs the id-token: write permission and no API key. That removes the standing secret entirely, which is the main reason to prefer this route.
Policy branches and structure
Policies in Conjur are hierarchical. Authenticators live under the conjur branch, and the JWT example places its hosts under an application branch referenced by identity-path. A clear branch structure is what lets you delegate safely.
A structure that holds up
- Root policy holds only top-level branches and the administrators who own them. Keep it small and change it rarely.
- Authenticator branches under
conjurhold authenticator webservices, their configuration variables and consumer groups. Only the identity platform team should own these. - Application or team branches hold each team's hosts, variables and groups. Delegate ownership of each branch to that team's administrators group.
- Environment separation, either as separate branches or separate accounts, keeps production secrets out of reach of non-production hosts.
Rules for policy changes
- Keep policy in version control, require review for every change and load it through a pipeline with its own Conjur identity rather than from an administrator's laptop.
- Grant variables to groups, then add hosts to groups. Avoid direct host-to-variable permits except where a variable truly belongs to one workload.
- Grant
execute, which allows retrieving a secret value, only to consumers. Reserveupdate, which allows changing a value, for the rotation process or the owning team. - Review who owns each branch. Ownership grants broad control over everything below it.
- Remove hosts, variables and grants in policy when an application is retired, rather than leaving them dormant.
NHI Mgmt Group recommends a quarterly review that lists every host with execute on production variables and checks each against an owner and a current workload.
Protecting the data key and the database
The Conjur README sets out the core cryptography. Encryption uses Slosilo, which provides AES-256-GCM symmetric encryption and asymmetric signing. Tokens returned by authenticate are signed JSON tokens, the signing key is a 2048 bit RSA key stored encrypted, and each account has its own token-signing key.
All of that depends on CONJUR_DATA_KEY, the Base64 master data key Conjur needs at start-up. The README is explicit that losing the key makes all encrypted data unrecoverable. The converse also holds: anyone with the key and a copy of the database can decrypt it.
- Generate the key on a trusted system and store it in a hardware-backed or otherwise strongly protected key store, not in a container image, compose file or plain environment file in source control.
- Keep at least one offline, access-controlled backup of the key, held separately from database backups.
- Restrict access to the PostgreSQL database that
DATABASE_URLpoints to. The README notes it may be a local container or a managed service. Use TLS, network isolation and a dedicated database account. - Encrypt and access-control database backups, and test restores together with the key.
Leader, standby and follower design
CyberArk's engineering description of the enterprise architecture describes three roles. A single leader handles writes and replication. Standbys can take over if the leader fails. Followers are read replicas, each with its own embedded database, that serve secret retrieval and authentication and apply authorisation and auditing on every request. CyberArk describes cluster traffic as secured by verified TLS, and followers as the unit of scaling for read load, placed behind a load balancer that uses Conjur's health check.
Security choices that follow from that design:
- Send workloads to followers. Applications should authenticate and fetch secrets from followers near them, not from the leader. That keeps the leader's network exposure small.
- Restrict the leader. Allow network access to the leader only from followers, standbys, administrators and the policy pipeline.
- Connect followers through a load balancer to the leader. CyberArk advises this so failover needs no follower reconfiguration, which also avoids hurried changes during incidents.
- Treat each follower as sensitive. A follower holds a replica of the data it serves. Harden its host, limit administrative access and patch it on the same cycle as the leader.
- Segment by trust zone. Place followers per cluster, region or network zone so a workload only reaches a follower in its own zone.
- Use health checks. Route traffic only to healthy followers, so a degraded node cannot serve stale or failed responses.
Rotation, audit and detection
The README states that variables can be rotated on a schedule with built-in rotators, and that custom rotators can be written. Rotation reduces the value of any secret that leaks, so use it for every credential where the target system supports it, and record rotation failures as incidents rather than log noise. The Secrets Rotation Runbook Template helps define ownership and fallback.
For detection, CyberArk describes authorisation and auditing on every follower request. Forward audit records to your SIEM and build detections around identity behaviour, for example:
- A host authenticating through an authenticator or from a network location it has never used.
- A host fetching variables it is permitted to read but has never read before, especially in bulk.
- API key authentication by a host that normally uses a platform authenticator.
- Policy loads outside the pipeline, or changes to authenticator branches.
- Repeated authentication failures for one host, which can indicate a stolen but rotated credential.
Any such queries you build are environment-specific. Validate event formats against your own Conjur audit output before relying on them.
Common failure patterns
- Shared hosts. One host identity used by many applications, so a single leak exposes every secret granted to it.
- Static API keys in pipelines. Host API keys stored as plain pipeline variables or in images, never rotated.
- Every authenticator enabled. Authenticators allow-listed for convenience and left in place with no consumers.
- Loose JWT settings. No issuer or audience set, or a broad identity path, so tokens from other workloads can map to hosts.
- Flat policy. Everything loaded into root, with no delegated branches, so every policy author can affect everything.
- Direct permits everywhere. Hosts permitted on variables one by one, making reviews and revocation impractical.
- Exposed data key.
CONJUR_DATA_KEYkept in a compose file or repository next to the database it protects. - Workloads pointed at the leader. Applications reading from the leader, widening its exposure.
Practitioner checklist
- Create one host per workload and environment, with owner and purpose annotations.
- Allow-list only the authenticators in use in
CONJUR_AUTHENTICATORS, each with its own service ID. - Prefer JWT, cloud and directory authenticators to host API keys, and rotate any API keys that remain.
- Set issuer, audience and enforced claims on every JWT authenticator.
- Structure policy into root, authenticator and team branches, with delegated owners and pipeline-only loading.
- Grant variables to groups, reserve
updatefor rotation and owners, and review productionexecutegrants quarterly. - Store
CONJUR_DATA_KEYin a protected key store with an offline backup, separate from database backups. - Route workloads to followers, restrict the leader, and forward audit records to the SIEM.
Standards and references
- CyberArk: Conjur Open Source documentation
- CyberArk: Conjur README
- CyberArk: Conjur authenticators design notes
- CyberArk: Conjur GitHub Action
- CyberArk Developer: How we architected the Conjur service
- OWASP: Secrets Management Cheat Sheet
- OWASP: Non-Human Identities Top 10 2025
- NIST: SP 800-53 Rev. 5
Related NHI Mgmt Group resources: CyberArk Security Hardening Guide · Secrets Zero Problem Guide · CI/CD Pipeline Identity Security Guide · Secrets Rotation Runbook Template