How LiteLLM connects to CyberArk Conjur for secrets
Platform teams that want provider keys and virtual keys out of environment variables can hold them in CyberArk Conjur instead. LiteLLM's documented CyberArk Conjur integration reads secrets from Conjur and writes virtual keys back to it, and it authenticates with an API key (recommended) or a client certificate. The feature requires an LiteLLM Enterprise license, so the license decision comes before any design work. Read the LiteLLM CyberArk docs alongside your Conjur version and policy model before you commit to an authentication method.
Choose the authentication method early because it sets how the gateway's Conjur identity is created, rotated and scoped. An API key is the documented recommendation and is the simpler path to start with. A client certificate fits teams that already issue workload certificates and want the gateway's identity tied to that trust chain. In either case, give the gateway's Conjur identity read access only to the variables that hold provider keys, and give it write access only to the path where virtual keys are stored. Confirm the exact variable paths, host or workload identity format and any certificate requirements with LiteLLM and your Conjur administrators, since these depend on your deployment.
The most important operational limit is that LiteLLM cannot delete secrets in Conjur. Removing a revoked virtual key or a retired provider key is a Conjur policy change, not a gateway action, so your runbook must include who edits the policy and how that change is reviewed. Plan the revocation path before go-live: a key removed from LiteLLM's database still exists in Conjur until the policy or secret is changed there. Test this end to end in a non-production Conjur instance, and confirm with your Conjur team how audit records of reads and writes by the gateway identity will be retained.
What you need before connecting LiteLLM to Conjur
Connecting LiteLLM to Conjur depends on a short list of prerequisites: a licensed gateway, a Conjur instance you operate, a database for virtual keys, a supported LiteLLM release and a network path that works in both directions. Confirm each item before you change any configuration, because the license and the version decide which secret manager features you can use at all.
Enterprise license for the integration
The CyberArk Conjur integration requires an LiteLLM Enterprise license. Open source LiteLLM does not include it, so the license decision comes before design work. Ask your LiteLLM contact to confirm the license covers the secret manager feature in your deployment, and confirm the license terms in enterprise/LICENSE before you rely on them in a security review.
Conjur docsSelf-hosted Conjur you operate
This integration assumes a Conjur instance that your team runs in infrastructure you control. Confirm the exact Conjur version, the account name LiteLLM will authenticate against, and the policy branches that hold provider keys and virtual keys with your CyberArk team. Those names become part of the authentication and policy design, so changing them later means reworking both.
PostgreSQL for virtual keys
Virtual keys need a PostgreSQL database. Conjur stores the secret values, but LiteLLM still keeps key records, budgets and spend in its own database, so this database must be in place and backed up before you enable Conjur writes. Plan it as a separate dependency with its own recovery process.
Virtual keys docsSupported LiteLLM release line
Check the version you run against the supported release lines in the enterprise documentation, which maintain the four most recent stable minor versions. Compare it with the current release on the GitHub releases page, which lists v1.105.1 published October 14, 2026. Confirm with LiteLLM that your Enterprise build contains the CyberArk integration before you schedule the rollout.
Releases pageNetwork path from proxy to Conjur
Every proxy pod must reach the Conjur endpoint over the port and hostname your team publishes, and Conjur must accept the proxy's source addresses. Check DNS resolution from inside the cluster, egress policies, and any network segmentation between the gateway and the vault zone. Test the path with the same pod identity the proxy will use, not from a jump host.
Trust chain for client certificates
If you choose certificate authentication over an API key, the proxy must trust the Conjur server certificate and present a client certificate that Conjur accepts. Confirm the issuing certificate authority, the chain each proxy pod receives, certificate expiry dates and the rotation owner. An expired or untrusted chain fails at startup, so verify the full chain before the first production restart.
API key or client certificate: choosing the Conjur authentication method
API key authentication is the method the LiteLLM CyberArk documentation recommends. The proxy authenticates to Conjur as a host and holds that host's API key, which lets it read provider keys and write virtual keys. Because the key is a bootstrap credential, it should be delivered to the proxy from a protected location at startup and never written into a configuration file or container image.
- What the proxy holds: the host identity and its Conjur API key, supplied through the environment or a secret store that the proxy process can read at startup.
- Rotation: rotating the host API key invalidates the previous value. Confirm with your Conjur administrator how the key is rotated, whether the proxy must restart or re-authenticate, and which change window applies.
- Policy: the host needs read access to the paths that hold provider keys and create or update access where virtual keys are written. The integration cannot delete secrets, so the policy should not depend on the proxy deleting anything.
- Trade-offs: the method is simple to issue and matches the documented path. The key is a long-lived bearer credential, so anyone who copies it can authenticate until it is rotated.
Before relying on this method, confirm the rotation procedure and the audit trail for host API key use with your Conjur team.
Client certificate authentication lets the proxy prove its identity with an X.509 certificate and private key instead of a shared API key. It suits organizations that already issue and renew machine certificates through a PKI and want Conjur access tied to that lifecycle. The private key is the sensitive element, so the files holding it need restricted ownership and permissions.
- What the proxy holds: a client certificate, its private key and the certificate chain that Conjur trusts, mounted as files or secrets with restricted read access.
- Rotation: issuance, renewal and revocation follow your PKI policy. Confirm the certificate lifetime and renewal interval with your PKI owner, because this integration does not set them. A renewed certificate must be loaded by the proxy, so plan a reload step.
- Policy: Conjur must be configured to accept the certificate identity for the host, and the host's permissions should match those used for the API key method. Confirm the authenticator setup against the LiteLLM CyberArk documentation and your Conjur version.
- Trade-offs: no long-lived shared secret needs to live in environment variables, and revocation can follow existing PKI processes. The cost is more moving parts, including certificate mounts, expiry monitoring and a harder failure to diagnose when renewal falls behind.
Before choosing this method, check that expiry alerting exists and that a named team owns certificate renewal for the gateway.
The choice usually depends on who operates Conjur and the PKI, and whether certificate renewal is already automated for workloads. Start from the documented recommendation and move to certificates only when the PKI owner can name a clear operational reason. Either method requires an Enterprise license for the CyberArk integration, so that cost applies in both cases.
- Start from the default: API key authentication is the documented recommendation, so treat it as the baseline unless your PKI or security standards require otherwise.
- Ask the PKI owner: certificate lifetime, renewal method, revocation process and which CA the Conjur instance trusts.
- Ask the Conjur administrator: how host API keys are rotated, whether certificate authentication is enabled in your Conjur version, and which audit records show host activity.
- Confirm the license: verify that your organization holds the LiteLLM Enterprise license needed for the CyberArk integration before design work starts.
- Test rotation first: run a rotation in a non-production environment and observe how the proxy reconnects, reads secrets and reports errors.
Record the chosen method, its owner and the rotation procedure in the design document before the build starts.
Configuring LiteLLM with a Conjur identity, in order
This sequence connects the LiteLLM proxy to a self-hosted Conjur instance with a dedicated, least-privilege identity, so provider keys are read from policy-controlled paths and virtual keys are written to a location your security team can review. Each step closes with a check that proves the previous step worked before the next one begins.
Confirm the Enterprise license and Conjur prerequisites
Before any configuration, the platform owner confirms that the LiteLLM deployment holds an Enterprise license, because the Conjur integration is an Enterprise feature. The Conjur administrator confirms that the Conjur instance is reachable from the proxy network, that its TLS certificate chain is trusted by the proxy, and that the account and policy branches to be used are identified. Done means both teams have written confirmation of the license entitlement and the network path, and a basic connectivity test from the proxy host to the Conjur endpoint succeeds.
Create a dedicated Conjur host for the proxy
The Conjur administrator creates a new host identity used only by the LiteLLM proxy, rather than reusing a human user or a shared host. Keep it separate from hosts used by other applications so that its activity and any revocation are isolated. Done means the host exists in the policy tree, and the administrator can list it and see its owner and annotations in Conjur.
Write a least-privilege policy for provider and virtual key paths
Write a Conjur policy that grants the LiteLLM host read access only to the variables that hold provider API keys, and create or update access only to the path where virtual keys will be stored. Do not grant the host rights to other branches, to policy edits, or to host administration. Test the policy with a dry run in a non-production Conjur account if one exists. Done means a read of a permitted provider secret succeeds under the host identity, while a read of a secret outside its policy returns a permission error.
Store the authentication material outside the proxy configuration
Generate the API key for the host, or prepare the client certificate if your Conjur policy uses certificate authentication, and place it in the secret store or orchestrator secret mechanism your team already uses. Do not write it into the LiteLLM configuration file, the container image or a version-controlled repository. Confirm the proxy process receives the credential at runtime through the environment or mounted file. Done means a search of the configuration repository and image layers finds no copy of the credential, and the proxy starts with the credential supplied from outside the config.
Set the Conjur connection values and secret paths
Add the Conjur endpoint, account, host identity and the variable paths for provider keys to the LiteLLM configuration, using the key names given in the LiteLLM CyberArk documentation for your release line. Reference the credential by pointer, not by value. Confirm each path matches the policy written in the earlier step. Done means the proxy starts without errors about the secret manager, and its startup log or admin health view shows the Conjur integration as active.
Confirm read access to a test provider secret
Point one non-critical model route at a test provider key stored in Conjur, then send a request through that route. The request should succeed, which proves the proxy read the key from Conjur at runtime. Then change the path to a secret that the host policy does not permit, restart or reload as your release requires, and confirm the read fails and the error appears in the proxy logs. Done means the successful read and the expected failed read are both recorded, and the test route is restored to its intended configuration.
Enable virtual key writes and confirm the stored path
Enable writing of virtual keys to Conjur, which is only possible if the host policy grants create or update rights on the designated path. Generate a test virtual key with a low budget and a single allowed model, then check in Conjur that the key appears at the expected path, owned by the policy branch you defined. Confirm that the key value stored matches what the test client uses. Done means the test key is visible in Conjur at the expected path, and the team understands that deletion must be done through policy changes, since LiteLLM cannot delete secrets.
How the proxy, Conjur and the database exchange secrets
The diagram starts at the LiteLLM proxy, which sits in its own network and authenticates to Conjur with an API key or a client certificate. Conjur returns the provider keys the proxy needs, and the proxy writes newly issued virtual keys back into Conjur. Key metadata and spend stay in PostgreSQL on the proxy side of the boundary. The only deletion route is the administrator's policy update in Conjur, because LiteLLM cannot delete secrets itself. Confirm that the Conjur network accepts traffic only from the proxy's identity.
Secret flow between the proxy, Conjur and PostgreSQL across the trust boundary.
What LiteLLM can and cannot delete in Conjur
LiteLLM reads provider secrets from Conjur and writes virtual keys to it, but it cannot delete secrets. Treat that boundary as a design constraint. Any removal of a provider key or a virtual key from Conjur has to happen through Conjur policy changes made by your Conjur administrators, not through the gateway. Plan the retirement path before go-live, because the gateway will not clean up Conjur for you when a key is no longer wanted.
Revoking or retiring a key therefore runs in two places. In Conjur, the policy that grants the gateway's identity access to a secret is changed or removed, which stops LiteLLM from reading the provider key it depends on. In the gateway database, the virtual key record still exists until it is disabled, expired or deleted through LiteLLM's own key management, so an administrator must act there too. Decide which system is the source of truth for each key's state, and document the order of operations: typically revoke access in Conjur first, then disable the virtual key in LiteLLM, then confirm no traffic is still succeeding with it. Confirm with your Conjur and LiteLLM teams exactly how the integration handles a secret that has been removed from policy but still exists in the store, since this determines whether a stale value can keep working.
Test revocation end to end before go-live. Create a non-production provider key and a virtual key bound to it, confirm a request succeeds, then remove the Conjur policy grant and disable the virtual key. Send requests through the gateway and check that they fail, that the attempt appears in your logs, and that the spend and budget records look as you expect. Repeat the test for a virtual key that was written to Conjur by the gateway, since that is the path where residual secrets are most likely to remain. Record the results and the exact steps as your runbook. Confirm the current deletion and policy behavior with LiteLLM's CyberArk Conjur documentation and your Conjur version before you rely on it.
Mapping LiteLLM objects to Conjur paths and policies
This table maps each LiteLLM object that touches Conjur to its resource, the permission the proxy needs, and the team that should own it. Read it as a design checklist: the path names are choices your team must set, while the read and write behavior and the no-delete limit come from LiteLLM's CyberArk documentation. Use it before you write any Conjur policy.
| Object | Conjur resource and path | Permission the proxy needs | Owner and notes |
|---|---|---|---|
| Provider API keys | Variable resource holding each upstream key; path naming is a team choice, for example one path per provider and environment | Read (LiteLLM reads these secrets) | Platform team owns values; rotate in Conjur, not in the proxy config |
| Virtual keys | Variable resource where LiteLLM writes issued virtual keys; path naming is a team choice, for example one path per team | Read and write (LiteLLM writes new keys here) | Gateway admins own; plan for old keys to remain because deletion is not supported |
| Proxy host identity | Host or workload identity authenticated by API key (recommended) or client certificate | Authenticate and read or write only the paths above | Security team owns; keep the identity separate from human users |
| LITELLM_MASTER_KEY | Variable resource holding the master key, which must start with sk- | Read only, and only at proxy startup | Security team owns; restrict to the proxy identity and to no human role by default |
| Enterprise license | Confirm where the license key is supplied to the proxy and whether it is stored in Conjur; this is a configuration decision to confirm with LiteLLM | Not a Conjur permission unless your design stores it there | Procurement and platform team own; the CyberArk integration requires an Enterprise license |
| Deletions and cleanup | No LiteLLM delete operation for secrets | Not supported by LiteLLM; removal must be done through Conjur policy updates | Security team owns; document the removal procedure and who performs it |
Security controls for the Conjur integration
The Conjur integration gives the gateway read access to provider keys and write access to virtual keys, so its identity and paths deserve the most scrutiny. The cards below cover the controls that decide how much damage a leaked credential or misconfigured policy can cause.
Least-privilege Conjur policy
Give the proxy identity only the read permissions on provider key variables and the write permissions on the paths where it stores virtual keys. Confirm exactly which actions the proxy needs against the CyberArk Conjur policy language before you grant anything. Review the policy after every LiteLLM upgrade, because new features can require new permissions.
CyberArk docsProtect the master key
LITELLM_MASTER_KEY must start with sk- and grants administrative control of the gateway, so keep it in a secret manager rather than in a Kubernetes manifest or a config file in version control. Decide who can read it, rotate it on a schedule you can name, and confirm how the proxy receives it at startup.
Restrict network paths to Conjur
Allow traffic from the proxy pods or hosts to the Conjur endpoint and deny everything else. Confirm which network segments can reach Conjur, whether the connection uses TLS with certificate validation, and how the path behaves during a Conjur outage, since the gateway depends on it for keys.
Audit reads and writes in Conjur
Turn on Conjur audit records for the proxy identity so every secret read and virtual key write is traceable to a specific host and time. Send those records to your SIEM and set alerts for reads from unexpected sources. Confirm the audit fields your Conjur version produces before you write detection rules against them.
Protect the Enterprise license key
The Conjur integration requires an Enterprise license, so the license key is a sensitive value. Store it in the same secret manager as other gateway secrets, limit who can view it, and do not paste it into tickets or chat. Confirm with LiteLLM how the license is validated and what happens when it expires.
Separate dev and production accounts
Use distinct Conjur accounts or policy branches for development and production, with different identities, hosts and secret values. A test gateway should never hold production provider keys. Confirm that your Conjur layout can enforce this boundary, and record which team owns each account.
Why the Conjur connection fails and how to fix it
This table lists the failures teams most often hit when LiteLLM reads provider keys from or writes virtual keys to CyberArk Conjur, with the likely cause and the fix for each. Work down the rows in order, since the license and authentication checks rule out the most common causes first.
| Symptom or failure | Likely cause | Fix |
|---|---|---|
| Integration not active | No Enterprise license on the LiteLLM instance, since the Conjur integration requires one | Confirm the license is installed and loaded on the proxy, then restart and recheck the secret manager settings |
| Authentication rejected | API key is wrong, rotated, or belongs to a different Conjur host identity than the one configured | Reissue the host API key, update the stored credential, and confirm the identity matches the policy that grants access |
| Client certificate not accepted | Certificate has expired, is not trusted by Conjur, or does not match the configured identity | Renew or reissue the client certificate, confirm the trust chain, and test with the same identity Conjur expects |
| Reads or writes denied | Conjur policy does not grant the host read access to provider key variables or write access to the virtual key path | Update the Conjur policy to grant the specific read and create or update permissions, then load the policy and retest |
| Secret not found | Variable path in the LiteLLM configuration does not match the Conjur policy and variable ID exactly | Compare the configured path with the loaded policy, correct the mismatch, and confirm the account and branch names |
| Deleted virtual key still exists in Conjur | LiteLLM does not delete secrets in Conjur, so removing a key in the gateway does not remove the stored value | Remove or disable the secret through a Conjur policy update, as the integration requires, and verify the value is gone |
| Virtual key creation fails | Database write failure in PostgreSQL, since virtual keys need a database, so the key cannot be recorded even when Conjur is reachable | Check database connectivity, permissions and free storage, then retry key creation and review the proxy logs |
| Calls fail intermittently after changes | Network path to Conjur blocked by firewall, proxy or DNS changes in the restricted network | Test reachability from the proxy pod or host to the Conjur endpoint, then fix routing, DNS or egress rules |
Questions buyers ask before connecting LiteLLM to Conjur
Does connecting LiteLLM to Conjur require an Enterprise license?
Yes. The CyberArk Conjur integration is an Enterprise feature, so the gateway needs an Enterprise license before LiteLLM can read provider keys from Conjur or write virtual keys to it. Open-source LiteLLM does not include this integration. Confirm the license terms and scope with LiteLLM directly, since the Enterprise edition also includes SSO beyond the free user limit, audit logs and other secret manager integrations. Your licensing cost is set by LiteLLM, not by DeployOpen, and the integration work is quoted separately from the license.
What drives the cost and effort of a Conjur integration?
The main cost drivers are the Enterprise license, Conjur policy design, network and certificate work, and testing. Policy design depends on how many teams, keys and environments need separate access. Network work covers reachability from the gateway to Conjur across your segments. Certificate work applies if you choose client certificate authentication instead of an API key. Testing covers reading existing provider keys, writing virtual keys and confirming behavior when keys are retired. Ask any quote to break these into one-time build work and any recurring support or retainer work, and to show which items depend on your existing Conjur setup.
How long does a Conjur integration take, and what sets that timing?
Duration depends mainly on how mature your Conjur deployment already is and how many policies must change. A team with an existing Conjur instance, documented policies and an approved authentication method can move faster than one that must design policies and certificates from scratch. Other timing factors include change windows, security review of the policy model, and the number of environments that need testing before production. No general duration applies, so ask for a timeline in the written scope that lists each phase and the inputs that must be ready before it starts.
What must our team provide before the work starts?
Plan to provide administrative access to Conjur with enough rights to create policies, identities and variables in a test environment first. You will also need PKI contacts who can issue or approve client certificates if certificate authentication is chosen. The gateway side needs the PostgreSQL details that store virtual keys, including version, hosting and backup arrangements, and the Redis details used once more than one proxy instance runs. Confirm the network paths between the gateway, Conjur and the database. Ask the provider to list every input and who owns it, so that delays do not sit with the wrong team.
Can an internal platform team build this integration without a partner?
A capable internal team can build it, provided it has Conjur policy experience, PostgreSQL and Redis operations skills, and time to test secret handling end to end. The harder parts are usually policy design that limits access by team and key, and the security review of how the gateway authenticates. Many organizations split the work: internal staff own Conjur and the gateway environment, while an outside team designs the policy model and tests it. Decide this by checking whether your staff have already run Conjur in production and whether they can staff a test cycle alongside their normal duties.
What happens to secrets in Conjur when a virtual key is retired?
LiteLLM cannot delete secrets from Conjur. Retiring a key must be done through policy updates, which remove the access that the gateway has to that secret, rather than by deleting the stored value. This means your process must also decide when and how the stored value is removed by your Conjur administrators, and who signs off. Plan the retirement procedure before go-live, test it in a non-production environment, and record it in your key lifecycle runbook so that revoked keys do not remain reachable.
Should we use an API key or a client certificate to authenticate LiteLLM to Conjur?
LiteLLM recommends an API key for authentication to Conjur, with a client certificate as the alternative. An API key is simpler to set up and rotate. A client certificate requires PKI work to issue, renew and revoke certificates, and it adds a dependency on your certificate authority team. Choose certificate authentication if your security policy requires it or if your PKI already manages workload identities well. In either case, confirm the rotation and revocation process with your security team before the integration is built.
How to test the Conjur integration before go-live
Test the integration against the access model you intend to run, not against a single administrator account. The first test is a provider key read under the intended identity: the LiteLLM proxy should fetch a provider API key from Conjur using the identity you configured, with the authentication method you chose, and the request should succeed end to end through a model call. Then run the negative case. Authenticate as a restricted identity that lacks read permission on the provider key's variable, and confirm the read fails and the gateway returns an error rather than a cached or fallback key. Record the policy role and the variable path for each identity so an auditor can trace which principal could read what.
The write path needs its own tests. Create a virtual key through the gateway and confirm the key is written to the path you expect in Conjur, and that the stored value matches what the gateway issued. Next, test revocation. Revoke the virtual key in LiteLLM, then confirm the key is rejected by the gateway and that the stored secret no longer grants access. Because LiteLLM does not delete secrets in Conjur, the removal of access depends on your policy updates, so confirm with your Conjur administrator exactly which policy change removes the identity's permission and whether the stale variable value remains readable to anyone else. Document that residual state as a known condition.
Test failover while Conjur is unreachable. Block network access from the proxy to the Conjur endpoint in a test environment and observe whether requests that need a provider key fail closed, return a clear error, or use a previously loaded value. Confirm this behavior with the LiteLLM documentation for your release, since the settings that govern caching and retry differ by version. Record the results in a test log with the LiteLLM version, Conjur version, identity used and expected outcome, and rerun the full set after every LiteLLM upgrade, because authentication and secret handling code change between releases.
How DeployOpen scopes and supports LiteLLM and Conjur work
DeployOpen plans, builds, documents and supports LiteLLM secret manager integration with CyberArk Conjur inside infrastructure you control. Work starts from a written scope that names the Conjur policies, authentication method and Enterprise license requirement before any configuration changes are made.
How we scope
- Engagements are fixed-scope, with scope and deliverables agreed in writing before work starts.
- The written scope names which provider keys and virtual keys live in Conjur and which stay elsewhere.
- We confirm whether API key or client certificate authentication fits your Conjur identity model and certificate lifecycle.
- The scope records the Enterprise license requirement and who in your organization holds that license decision.
How we build
- We design Conjur policies so LiteLLM can read provider keys and write virtual keys within defined paths only.
- Deletion is handled through policy updates, so we plan that removal process with your Conjur administrators.
- We configure the proxy against a non-production Conjur instance, then test key reads, key writes and access denials.
- Build outputs include configuration files, policy definitions and a test record your security team can review.
How we hand over
- We deliver written documentation covering authentication setup, policy structure, rotation steps and rollback.
- Your operators receive a runbook for diagnosing failed Conjur reads and virtual key writes at the gateway.
- We walk your platform and security teams through the configuration so they can review the access model themselves.
- Handover includes a list of open items you should confirm with CyberArk or within your own environment.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retainers can cover re-testing of Conjur policies when LiteLLM releases move to a newer supported minor version.
- We can repeat access and secret-handling tests after policy changes so your team sees current evidence.
- Support scope, response expectations and fees are set in the written agreement, not in this page.

