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
GenerateToken
should call CreateToken
not UpsertToken
#29342
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.
Do we have any tests which capture the issue this is fixing? If not can we add one to prevent regressions?
I can add a test, but this RPC is being removed on master in a PR I'll merge after this one - so it's only going into v13. |
@rosstimothy test added :) |
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.
LGTM. Thanks for the fix.
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
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.
Thanks @strideynet !!!
@strideynet See the table below for backport results.
|
Closes https://github.com/gravitational/teleport-private/issues/664
Change in behaviour to ensure that GenerateToken cannot be used to modify an existing token - needs further discussion before raising this as a PR. See the above ticket for more details of the discussion.