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

GenerateToken should call CreateToken not UpsertToken #29342

Merged
merged 3 commits into from Jul 20, 2023

Conversation

strideynet
Copy link
Contributor

@strideynet strideynet commented Jul 20, 2023

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.

Copy link
Contributor

@rosstimothy rosstimothy left a 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?

@strideynet
Copy link
Contributor Author

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.

@strideynet
Copy link
Contributor Author

@rosstimothy test added :)

Copy link
Contributor

@codingllama codingllama left a 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.

lib/auth/tls_test.go Outdated Show resolved Hide resolved
Co-authored-by: Alan Parra <alan.parra@goteleport.com>
Copy link
Contributor

@rosstimothy rosstimothy left a comment

Choose a reason for hiding this comment

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

Thanks @strideynet !!!

@strideynet strideynet added this pull request to the merge queue Jul 20, 2023
Merged via the queue into master with commit 3300839 Jul 20, 2023
21 checks passed
@strideynet strideynet deleted the strideynet/patch-generate-token branch July 20, 2023 22:20
@public-teleport-github-review-bot

@strideynet See the table below for backport results.

Branch Result
branch/v13 Create PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants