Skip to content

Use crates.io username in admin contexts - #14576

Merged
Turbo87 merged 1 commit into
rust-lang:mainfrom
carols10cents:crates-io-usernames-for-admins
Sep 2, 2026
Merged

Use crates.io username in admin contexts#14576
Turbo87 merged 1 commit into
rust-lang:mainfrom
carols10cents:crates-io-usernames-for-admins

Conversation

@carols10cents

Copy link
Copy Markdown
Member

As part of the transition to crates.io usernames, change admin commands and APIs to use users.username rather than users.gh_login.

End users of crates.io should not see any observable effects of this PR.

Admins will need to remember that:

  • Looking up a user by their token with the verify-token command will return the user's crates.io username, which currently always matches their GitHub username, but that will not necessarily be the case in the future.
  • Using the list_admin API will look up users by their crates.io username (I think I might be the only one who uses this)
  • Usernames in some log messages will now be crates.io usernames (I added "crates.io username" to the log messages as a clarification)

Extracted from #14575. Shouldn't conflict with #14213.

As part of the transition to crates.io usernames, change admin commands
and APIs to use `users.username` rather than `users.gh_login`.

End users of crates.io should not see any observable effects of this PR.

Admins will need to remember that:

- Looking up a user by their token with the `verify-token` command will
  return the user's crates.io username, which currently always matches
  their GitHub username, but that will not necessarily be the case in the
  future.
- Using the `list_admin` API will look up users by their crates.io
  username (I think I might be the only one who uses this)
- Usernames in some log messages will now be crates.io usernames
  (I added "crates.io username" to the log messages as a clarification)

@Turbo87 Turbo87 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Turbo87 Turbo87 added the C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear label Sep 2, 2026
@Turbo87
Turbo87 merged commit 2e1b870 into rust-lang:main Sep 2, 2026
12 checks passed
@carols10cents
carols10cents deleted the crates-io-usernames-for-admins branch September 2, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-backend ⚙️ C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants