CLI-3700: Provide Workload Identity OIDC as Login Method

Open
#3,147 3 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet

Research direction

Start at the confluent login entry point and review the linked Workload Identity REST API documentation alongside the Terraform provider OAuth configuration shown in the issue. Determine whether the external token and identity pool belong on login, individual commands, or both; done means the CLI can use those values for keyless pipeline authentication.

Written by the indexing model from the issue text.

Description

enhancement

When using the Confluent Cloud REST API, I can use Identity Tokens by my IdP to "impersonate" an Identity Pool configured in the Confluent Cloud:

https://docs.confluent.io/cloud/current/security/authenticate/workload-identities/identity-providers/oauth/access-rest-apis.html

This also works with the Confluent Terraform Provider:

provider "confluent" {
  oauth {
    oauth_external_access_token = var.oidc_token
    oauth_identity_pool_id = var.my_identity_pool_id
  }
}

I would love to have this also available somehow in the Confluent CLI, so I could use it completely keyless in pipelines where Terraform is not applicable.

One potential form of using it could be:

confluent login --oauth-external-access-token=$MY_IDP_TOKEN --oauth-identity-pool-id=pool-abc123

Or, if it is technically only usable for some commands, as global flags available on these commands:

confluent kafka topics list --oauth-external-access-token=$MY_IDP_TOKEN --oauth-identity-pool-id=pool-abc123
Dominant language
Go
Stars
82
Forks
37
Avg merge
1d 13h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from confluentinc/cli

All issues in confluentinc/cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.