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

acl: make auth method default across all types #15869

Merged
merged 7 commits into from
Jan 26, 2023
Merged

Conversation

pkazmierczak
Copy link
Contributor

@pkazmierczak pkazmierczak commented Jan 25, 2023

As discussed with the team, we want to have default auth method across all types, for better UX.

Relates to #13120

Copy link
Member

@jrasell jrasell left a comment

Choose a reason for hiding this comment

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

Looking good, thanks! I have noted a couple of minor things I think are worth changing and a question I am curious of your thoughts on.

.changelog/15869.txt Outdated Show resolved Hide resolved
Comment on lines +143 to +145
if l.authMethodType == "" {
l.authMethodType = authMethod.Type
}
Copy link
Member

Choose a reason for hiding this comment

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

What happens if the user specifies the auth method type, but this does not match the default one found? I assume the login will fail further down the flow, and wonder if we either want to error on this, or overwrite the passed flag value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, it crossed my mind. I think it's fine to let it fail down the line, I don't think we should be overwriting things. Are you ok with this? or do you want to make a check here and fail quickly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok maybe it's best to fail quickly.
3e7dab8

nomad/state/state_store_acl_sso.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants