Skip to content

Make it possible to authenticate a Bootstrap Token in different groups #49306

@luxas

Description

@luxas

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 the system:bootstrappers: prefix so that it is easily distinguishable from other groups. (And to avoid having someone assigning its bootstrap token system: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

Metadata

Metadata

Assignees

Labels

kind/featureCategorizes issue or PR as related to a new feature.sig/authCategorizes an issue or PR as relevant to SIG Auth.sig/cluster-lifecycleCategorizes an issue or PR as relevant to SIG Cluster Lifecycle.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions