Skip to content

Cannot configure anonymous auth in --authentication-config file #12245

Description

@brandond

Environmental Info:
K3s Version: n/a

Node(s) CPU architecture, OS, and Version:
n/a

Cluster Configuration:
n/a

Describe the bug:
Follow up to

With the change from #12018 we can now set --authentication-config, however if the authentication config file contains an anonymous field the apiserver will exit with an error, as anonymous auth cannot be configured when the --anonymous-auth CLI flag is set.

Steps To Reproduce:
See RKE2 issue:

Expected behavior:
Can configure anonymous auth via config file

Actual behavior:
Cannot configure anonymous auth via config file

Additional context / logs:
Should probably make the flag conditional on authentication-config not being set, same as authorization-mode.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

Status
Done Issue

Relationships

None yet

Development

No branches or pull requests

Issue actions