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

[Cherry] Supply option to set the authz-webhook-config-file (#18) #19

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

addyess
Copy link
Member

@addyess addyess commented Jun 13, 2024

Cherry-pick to release 1.30 from #18

Overview

In order to allow keystone authorization (or any external authorizing agent), the api-server must allow the configuration of the authorization-webhook-config-file.

Details

These changes allow for the caller to provide independent args for both authorization-webhook-config-file and authorization_modes, but the two will be reconciled against one another:

the authorization_modes can contain Webhook iff authorization-webhook-config-file is a valid non-empty file.
the authorization-webhook-config-file will be ignored if Webhook isn't present in authorization_modes

This is done to protect the api-server from not starting up in invalid configuration situations.

* Supply option to set the authz-webhook-config-file

* prevent authorization-webhook-config-file if Webhook not enabled
@addyess addyess merged commit 4016084 into release_1.30 Jun 14, 2024
6 checks passed
@addyess addyess deleted the cherry/18/release_1.30 branch June 14, 2024 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants