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

Rename config file name to authz config filename as it is specific to authz #349

Open
wants to merge 1 commit into
base: sig-auth-acceptance
Choose a base branch
from

Conversation

ShazaAldawamneh
Copy link

@ShazaAldawamneh ShazaAldawamneh marked this pull request as ready for review December 13, 2024 12:39
@@ -133,7 +133,7 @@ func (o *ProxyOptions) ApplyTo(krpInfo *server.KubeRBACProxyInfo, authInfo *serv
return fmt.Errorf("failed to setup transport for upstream: %w", err)
}

if configFileName := o.ConfigFileName; len(configFileName) > 0 {
if configFileName := o.AuthzConfigFileName; len(configFileName) > 0 {
krpInfo.Authorization, err = parseAuthorizationConfigFile(configFileName)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not necessarily part of the issue, but I don't think that this is necessary: configFileName := o.AuthzConfigFileName. Maybe we could drop configFileName and just use o.AuthzConfigFileName in parseAuthorizationConfigFile.

@ibihim ibihim added the sig-auth-acceptance issues created during review for sig-auth-acceptance label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig-auth-acceptance issues created during review for sig-auth-acceptance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants