The frightening headlines surrounding PHP2Shell, a pair of critical vulnerabilities affecting nearly a decade of PHP releases, highlight the compounding risks of unmanaged server secrets in
Keeper supports OAuth and OIDC federated authentication for workloads accessing secrets. Applications and automated workflows that can obtain a signed token from an OAuth 2.0 or OIDC provider can present it to authenticate to Keeper and retrieve authorized secrets.
This approach reduces reliance on long-lived authentication credentials that teams would otherwise need to distribute and maintain for their workloads.
What are OAuth and OIDC?
OAuth 2.0 is an authorization framework that lets an application obtain limited access to a service. OpenID Connect (OIDC) adds a standardized identity layer on top of OAuth 2.0.
In workload identity federation, a service accepts identity information issued by a trusted platform. A pipeline or application presents a signed token, and the receiving service validates it against the configured trust requirements.
Why stored authentication credentials create risk
Moving database passwords and API keys out of source code and into a secrets manager is an important step toward securing applications. However, a workload will still need credentials to connect to the secrets manager itself, and those credentials must also be protected and managed.
OWASP’s secrets management guidance recommends using short-lived OIDC tokens and workload identity federation for pipeline authentication where supported. It also emphasizes that authenticating a workload and authorizing access to secrets are separate decisions.
Federated authentication addresses how a workload proves its identity. Teams still control which application secrets that workload can retrieve.
How federated authentication works with Keeper
Keeper Secrets Manager (KSM) uses applications to define access to records and shared folders. A client is a machine, service or runtime instance that authenticates to an application.
At a high level, federated access involves four steps:
- Configure access and trust: Assign the required secrets to a KSM application and add a federated client in Keeper Commander bound to the workload token’s issuer and subject.
- Obtain a platform-issued token: The workload obtains a short-lived signed token from its provider, with the Keeper host for its region as the audience.
- Authenticate to Keeper: The client sends the token with each request, and Keeper checks its signature, issuer, subject, audience and expiration.
- Retrieve authorized secrets: After authentication, access remains limited to the secrets assigned to the KSM application.
A federated client’s configuration still contains the KSM application key, which decrypts the secrets shared with the application. Store it securely, such as in a GitHub encrypted secret or Kubernetes Secret. Without a valid token for the bound identity, the configuration alone can’t access Keeper. For setup requirements and available integration support, see Keeper’s OAuth and OIDC federation documentation.
Federated authentication isn’t limited to Keeper Secrets Manager. Customers can also choose to use OAuth and OIDC to authenticate Keeper Commander Service Mode sessions. When creating the client device, they choose whether it will be used for Secrets Manager or for full Keeper Vault sessions.
Where teams can use federated authentication with Keeper
CI/CD pipelines and Kubernetes workloads are two use cases for workload identity federation. Any workload that can obtain a signed token from an OAuth 2.0 or OIDC provider can use this approach, including GitLab CI/CD pipelines, cloud workload identity and identity providers such as Okta, Microsoft Entra ID, Auth0 and Keycloak.
Secure access to secrets in CI/CD pipelines
CI/CD pipelines need credentials to deploy applications, access databases and connect to other services. Retrieving those credentials from Keeper helps keep them out of repositories and reduces secrets sprawl in DevOps environments.
GitHub Actions can issue an OIDC token identifying a workflow job. With the required Keeper federation configuration in place, that identity can authenticate and retrieve the secrets assigned to the KSM application.
The workflow may still need database passwords or API keys for its deployment tasks. Federation changes how it authenticates to Keeper to retrieve those secrets.
Authenticate Kubernetes workloads
Kubernetes workloads can use service account identities to authenticate to external services. Projected service account tokens have defined lifetimes and intended audiences, unlike manually created service account token secrets that can hold long-lived credentials.
A pod can use its Kubernetes service account token to authenticate to Keeper and request the secrets assigned to its KSM application. Follow Keeper’s documentation to bind the client to the cluster’s token issuer and the service account’s subject.
How Keeper controls access to secrets
Administrators assign records and shared folders to a KSM application, which defines the secrets its clients can access. Give each workload access only to the secrets it needs, using separate applications for production and development where appropriate.
Federated authentication verifies the workload’s identity. Access to secrets remains limited by the permissions configured for its Secrets Manager application. Locking or removing a client stops its access on its next request. Clients created for Keeper Commander Service Mode instead authenticate full Keeper Vault sessions, rather than being limited to a KSM application.
Keeper’s zero-knowledge architecture protects those secrets with client-side encryption. Encryption and decryption occur on the client, keeping the contents inaccessible to Keeper.
Get started with federated authentication in Keeper
Identify the workloads that need access and the secrets they require. Check Keeper’s documentation for the required client or integration, then configure its trusted identity and KSM application access. The token issuer must use an HTTPS URL, and its public signing keys must be reachable by Keeper.
Test that the intended workload can retrieve its required secrets and that an unauthorized identity cannot authenticate. When replacing an existing authentication method, validate the new workflow before removing credentials it previously depended on.
See how to configure OAuth and OIDC federated authentication in Keeper.
Frequently asked questions
Does Keeper support OAuth and OIDC?
Yes, Keeper supports OAuth/OIDC federated authentication for any workload that can obtain a signed token from an OAuth 2.0 or OIDC provider.
Can GitHub Actions use OIDC to access Keeper?
Yes, with the required Keeper federation configuration. A workflow uses a GitHub-issued OIDC token to authenticate, while its KSM application determines which secrets it can retrieve.
Can OAuth and OIDC be used with Keeper Commander?
Yes, OAuth and OIDC can also authenticate Keeper Commander Service Mode sessions. When creating the client device, customers choose whether it will be used for Keeper Secrets Manager or for full Keeper Vault sessions.
Can Kubernetes workloads authenticate to Keeper using service accounts?
Yes, a pod uses its Kubernetes service account token to authenticate, while its KSM application determines which secrets it can retrieve.
Does OAuth/OIDC replace every secret an application needs?
No, federation changes how the workload authenticates to Keeper. The application may still need secrets such as database passwords and API keys to complete its tasks. Its Keeper configuration, which contains the application key, also needs to be stored securely.
Is this the same as signing employees in to Keeper with SSO?
No, this feature authenticates applications and automated workloads accessing secrets. Employee SSO signs people in to Keeper using their organization’s identity provider.