-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Remove update
verb requirement when creating Tokens
#14506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was create
without update
on tokens completely useless until now?
No, there's another method which only requires the |
3633f76
to
29f7ee3
Compare
9d287fb
to
3494320
Compare
3494320
to
29f1b3c
Compare
The used method to create a token in the UI is UpsertToken. This method requires Create and Update verbs. It shouldn't be necessary to have the Update verb - we are only creating and not changing anything. This PR adds - a new method - CreateToken - which only requires the Create verb. - apiserver uses this method to issue a new token
Co-authored-by: Isaiah Becker-Mayer <[email protected]>
be7d016
to
c21edb6
Compare
@marcoandredinis See the table below for backport results.
|
@marcoandredinis See the table below for backport results.
|
The used method to create a token in the UI is UpsertToken. This method requires Create and Update verbs. It shouldn't be necessary to have the Update verb - we are only creating and not changing anything. This PR adds - a new method - CreateToken - which only requires the Create verb. - apiserver uses this method to issue a new token Co-authored-by: Isaiah Becker-Mayer <[email protected]>
…14624) Remove `update` verb requirement when creating Tokens (#14506) The used method to create a token in the UI is UpsertToken. This method requires Create and Update verbs. It shouldn't be necessary to have the Update verb - we are only creating and not changing anything. This PR adds - a new method - CreateToken - which only requires the Create verb. - apiserver uses this method to issue a new token
The used method to create a token in the UI is UpsertToken.
This method requires Create and Update verbs.
It shouldn't be necessary to have the Update verb - we are only creating
and not changing anything.
This PR adds
Demo
User with role that doesn't have
update
ontoken
s:Can successfully generate tokens:
Fixes #13218