Skip to content

Conversation

sudo-bmitch
Copy link
Contributor

Fixes issue

Warnings for changing registry configurations are still returned in some scenarios.

Describe the change

The previous fix only validated registry names in the auths section of the docker config. This also validates names listed in the credential helper or returned from the credential store.

How to verify it

Run regctl commands with a ~/.docker/config.json that lists non-registry entries in the credential helpers or are returned from the credential store. Warnings for those entries should no longer be displayed.

Changelog text

  • Fix: Validate registry names.

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

The previous fix only validated registry names in the auths section of the docker config.
This also validates names listed in the credential helper or returned from the credential store.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
@sudo-bmitch sudo-bmitch merged commit e76dd64 into regclient:main Feb 19, 2025
5 checks passed
@sudo-bmitch sudo-bmitch deleted the pr-validate-registry branch February 19, 2025 16:18
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.

1 participant