Skip to content

Support for authentication via kubernetes bound service account tokens #65961

Open
@raffaelespazzoli

Description

@raffaelespazzoli

Support for authentication via kubernetes bound service account tokens, docs.
A workload running on kubernetes would be able to authenticated using an Oauth token provisioned by kubernetes and trusted by cockroachDB.
This feature depends on #65607

Describe the solution you'd like
There is some provisions in cockroach db to establish trust with an OIDC provider and accept authentication with an OAuth token.
There is a mutating web hook that simplifies setting up the pod configuration to use the bound service account token to be used to authenticate. This is a good example of how such mutating wbe hook could work:
https://github.com/aws/amazon-eks-pod-identity-webhook

Describe alternatives you've considered
For limited duration credentials representing a workload and not a person, alternative can be TLS certificates or Vault support for rotating credentials.

Jira issue: CRDB-7815

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-authenticationPertains to authn subsystemsC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)O-communityOriginated from the communityT-server-and-securityDB Server & SecurityX-blathers-triagedblathers was able to find an owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions