Skip to content

Verify existence of TLDs and registrars for tokens#2837

Merged
gbrodman merged 1 commit into
google:masterfrom
gbrodman:verifyClientIds
Oct 2, 2025
Merged

Verify existence of TLDs and registrars for tokens#2837
gbrodman merged 1 commit into
google:masterfrom
gbrodman:verifyClientIds

Conversation

@gbrodman

@gbrodman gbrodman commented Oct 2, 2025

Copy link
Copy Markdown
Collaborator

Just in case someone makes a typo when running the commands


This change is Reviewable

@gbrodman
gbrodman requested a review from jicelhay October 2, 2025 18:38

@jicelhay jicelhay left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewable status: 0 of 5 files reviewed, 2 unresolved discussions


core/src/main/java/google/registry/tools/GenerateAllocationTokensCommand.java line 336 at r1 (raw file):

  static void verifyAllRegistrarIdsExist(@Nullable List<String> allowedClientIds) {
    if (isNullOrEmpty(allowedClientIds)) {

I think it's worth adding a comment mentioning that null/empty here translates to token valid for all clients.


core/src/main/java/google/registry/tools/GenerateAllocationTokensCommand.java line 352 at r1 (raw file):

  static void verifyAllTldsExist(@Nullable List<String> allowedTlds) {
    if (isNullOrEmpty(allowedTlds)) {

Same type of comment here.

@gbrodman gbrodman left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewable status: 0 of 5 files reviewed, 2 unresolved discussions (waiting on @jicelhay)


core/src/main/java/google/registry/tools/GenerateAllocationTokensCommand.java line 336 at r1 (raw file):

Previously, jicelhay (Juan Celhay) wrote…

I think it's worth adding a comment mentioning that null/empty here translates to token valid for all clients.

sure


core/src/main/java/google/registry/tools/GenerateAllocationTokensCommand.java line 352 at r1 (raw file):

Previously, jicelhay (Juan Celhay) wrote…

Same type of comment here.

sure

Just in case someone makes a typo when running the commands

@jicelhay jicelhay left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@jicelhay reviewed 1 of 5 files at r1, 4 of 4 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @gbrodman)

@gbrodman
gbrodman enabled auto-merge October 2, 2025 19:24
@gbrodman
gbrodman added this pull request to the merge queue Oct 2, 2025
Merged via the queue into google:master with commit 84884de Oct 2, 2025
9 checks passed
@gbrodman
gbrodman deleted the verifyClientIds branch October 2, 2025 21:15
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