Make it possible to authenticate a Bootstrap Token in different groups #49306
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
sig/auth
Categorizes an issue or PR as relevant to SIG Auth.
sig/cluster-lifecycle
Categorizes an issue or PR as relevant to SIG Cluster Lifecycle.
Milestone
Is this a BUG REPORT or FEATURE REQUEST?:
/kind feature
It should be possible to set
auth-groups
or a similar key on a Bootstrap Token Secret to get the BootstrapTokenAuthenticator add those group(s) when authenticating.This has many benefits, but primarily that it's possible to give different Bootstrap Tokens different identities.
For example, you may want to have one Bootstrap Token only for adding normal nodes to the cluster, but have some Bootstrap Tokens to be able to add masters to the cluster, etc.
This mechanism will also imply that the "default" BT (where
auth-groups
isn't set) has no specific privileges in the cluster. The sysadmin must explicitely assign the BT some groups in order give it privileges.auth-groups
takes a comma-separated list of groups to use for authentication. The group must have thesystem:bootstrappers:
prefix so that it is easily distinguishable from other groups. (And to avoid having someone assigning its bootstrap tokensystem:masters
for instance)This is part of getting Bootstrap Tokens to beta in v1.8
@kubernetes/sig-auth-feature-requests @kubernetes/sig-cluster-lifecycle-feature-requests
The text was updated successfully, but these errors were encountered: