Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

证书的 CommonName 存储 uid 信息 #9

Open
pineking opened this issue May 25, 2017 · 2 comments
Open

证书的 CommonName 存储 uid 信息 #9

pineking opened this issue May 25, 2017 · 2 comments
Assignees

Comments

@pineking
Copy link
Contributor

目的:
在 atlasctl 提交任务时,通过读取证书中的 CommonName 存储的 uid 信息,写入提交任务的 YAML 中,实现 Pod 的 RunAsUser 的逻辑

在创建证书的格式增加一个 uid 参数,类似这种:

curl -X POST http://kube-master:<port>/users -d '[
{"uid":"1001","username":"admin","namespace":"admin","email":"admin@domain.com"},
{"uid":"1002","username":"test","namespace":"test","email":"test@domain.com"}
]'
@zh794390558
Copy link

@pineking
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants