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

auth: nil check AuthInfo when checking admin permissions #7479

Merged
merged 1 commit into from
Mar 12, 2017

Conversation

heyitsanthony
Copy link
Contributor

If the context does not include auth information, get authinfo will
return a nil auth info and a nil error. This is then passed to
IsAdminPermitted, which would dereference the nil auth info.

via #7471

/cc @mitake

If the context does not include auth information, get authinfo will
return a nil auth info and a nil error. This is then passed to
IsAdminPermitted, which would dereference the nil auth info.
@mitake
Copy link
Contributor

mitake commented Mar 11, 2017

@heyitsanthony lgtm, thanks! CI failures seem to be unrelated to this change. I agree with merging this PR.

@xiang90 xiang90 merged commit 76aa7f6 into etcd-io:master Mar 12, 2017
@heyitsanthony heyitsanthony deleted the auth-admin-nilcheck branch March 21, 2017 16:35
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.

4 participants