Skip to content

fix(registry): match GitLab registries on exact host - #1407

Closed
scttbnsn wants to merge 1 commit into
dev/v1.8from
fix/v1.8-gitlab-registry-host-match
Closed

scttbnsn wants to merge 1 commit into
dev/v1.8from
fix/v1.8-gitlab-registry-host-match

Conversation

@scttbnsn

Copy link
Copy Markdown
Contributor

GitLab's match() used a substring check, so a configured registry's bearer credentials could go to an image registry whose host was just a substring of the configured URL (gitlab.example.com or example.com against registry.gitlab.example.com). It now compares parsed host and port, case-insensitive, ignoring scheme, path and trailing slash. Tests cover exact, substring (both directions), port mismatch, lookalike suffix and the default registry.

Held for 1.8.1 (image change; don't merge before the v1.8 GA).

@vercel

vercel Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
drydock-website Ready Ready Preview Oct 19, 2026 7:56pm UTC
drydockdemo-website Ready Ready Preview Oct 19, 2026 7:56pm UTC

@coderabbitai

coderabbitai Bot commented Oct 19, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

scttbnsn added a commit that referenced this pull request Oct 20, 2026
* fix(auth): make a recovery-code login review existing API keys (#1403)

* fix(registry): match GitLab registries on exact host (#1407)

* fix(agent): run batch triggers on the agent's own container records (#1413)

* feat(audit): record ignored image hook labels (#1416)

* feat(agent): warn when an agent still trusts image hook labels (#1415)

* fix(auth): only accept OIDC bearer tokens issued for this client (#1421)
@scttbnsn

Copy link
Copy Markdown
Contributor Author

Landed in #1432 as part of folding the reviewed 1.8 work into 1.8.0.

@scttbnsn scttbnsn closed this Oct 20, 2026
@scttbnsn
scttbnsn deleted the fix/v1.8-gitlab-registry-host-match branch October 20, 2026 12:35

This branch was successfully deployed

2 active deployments
Preview – drydock-website — 747ff177 Deployed Oct 19, 2026 by vercel[bot]
Preview – drydockdemo-website — 747ff177 Deployed Oct 19, 2026 by vercel[bot]
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