Skip to content

[fix] Personal access token name fix#4628

Merged
bruntib merged 1 commit intoEricsson:masterfrom
bruntib:access_token_fix
Jul 10, 2025
Merged

[fix] Personal access token name fix#4628
bruntib merged 1 commit intoEricsson:masterfrom
bruntib:access_token_fix

Conversation

@bruntib
Copy link
Copy Markdown
Contributor

@bruntib bruntib commented Jul 10, 2025

Until now a random string was generated as a personal access token name in the schema upgrade script that copies auth session tokens to the personal_access_tokens table. In rare cases the random generator could return the same random string twice. For this reason in PostgreSQL an incremental integer is used instead of the random name.

Until now all auth session tokens became a personal access token. From now only the "can_expire = false" tokens become personal access tokens.

Until now a random string was generated as a personal access token name
in the schema upgrade script that copies auth session tokens to the
personal_access_tokens table. In rare cases the random generator could
return the same random string twice. For this reason in PostgreSQL an
incremental integer is used instead of the random name.

Until now all auth session tokens became a personal access token. From
now only the "can_expire = false" tokens become personal access tokens.
@bruntib bruntib added this to the release 6.26.1 milestone Jul 10, 2025
@bruntib bruntib requested a review from barnabasdomozi July 10, 2025 17:10
@bruntib bruntib requested a review from vodorok as a code owner July 10, 2025 17:10
Copy link
Copy Markdown
Contributor

@Szelethus Szelethus left a comment

Choose a reason for hiding this comment

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

An exquisite execution of software enginnering.

@bruntib bruntib merged commit 09f27e7 into Ericsson:master Jul 10, 2025
8 of 9 checks passed
@bruntib bruntib deleted the access_token_fix branch July 10, 2025 17:41
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