CLI-3700: Provide Workload Identity OIDC as Login Method

未关闭
#3,147 3 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
55/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清

调研方向

从 confluent login 入口开始,结合 issue 中展示的 Terraform provider OAuth 配置,审查链接的 Workload Identity REST API 文档。确定 external token 和 identity pool 应归属于 login、单个命令,还是两者都属于;完成的标准是 CLI 可以使用这些值进行无密钥 pipeline 身份验证。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
Go
星标
82
派生
37
平均合并
1 天 13 小时
30 天内合并 PR
22

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

confluentinc/cli 的其他 Issue

查看 confluentinc/cli 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。