Skip to content

fix(v2): store registry credentials without nerdctl login#14

Merged
lingdie merged 1 commit into
mainfrom
fix/v2-registry-auth
May 21, 2026
Merged

fix(v2): store registry credentials without nerdctl login#14
lingdie merged 1 commit into
mainfrom
fix/v2-registry-auth

Conversation

@lingdie
Copy link
Copy Markdown
Collaborator

@lingdie lingdie commented May 21, 2026

Summary

  • Replace nerdctl login in the v2 committer with direct credential storage via dockerconfigresolver.
  • Add registerRegistryCredentials that also stores credentials for the host without :443 when using standard HTTPS, matching nerdctl login behavior and avoiding WWW-Authenticate host/port mismatches on port 443.

Test plan

  • go build ./internal/commit/... in v2/controller
  • Push/commit flow against an HTTPS registry on port 443 that omits the port in WWW-Authenticate
  • Verify credentials are written to the nerdctl/docker config store and image push still succeeds

Made with Cursor

Replace nerdctl login with direct docker config credential storage to avoid
HTTPS registry auth failures when WWW-Authenticate omits :443 on port 443.

Co-authored-by: Cursor <cursoragent@cursor.com>
@lingdie lingdie merged commit 7b02111 into main May 21, 2026
18 checks passed
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