Skip to content

proposal: fix proxy cache auth for registries with URL path prefixes#278

Merged
wy65701436 merged 3 commits into
goharbor:mainfrom
mco69:proposal/fix-proxy-cache-auth-path-prefix
Jun 3, 2026
Merged

proposal: fix proxy cache auth for registries with URL path prefixes#278
wy65701436 merged 3 commits into
goharbor:mainfrom
mco69:proposal/fix-proxy-cache-auth-path-prefix

Conversation

@mco69

@mco69 mco69 commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Signed-off-by: Mathieu C. 210950950+mco69@users.noreply.github.com

@mco69 mco69 requested review from a team as code owners March 16, 2026 17:39
@mco69 mco69 force-pushed the proposal/fix-proxy-cache-auth-path-prefix branch from e43f519 to 7c11bd3 Compare March 16, 2026 17:58
Signed-off-by: mcolombet <210950950+mco69@users.noreply.github.com>
@reasonerjt

Copy link
Copy Markdown
Contributor

Thanks @mco69, but as we discussed offline, this approach is preferred:
goharbor/harbor#22891

Let's keep this open unless we agree #22891 doesn't solve your problem.

@mco69

mco69 commented Mar 17, 2026

Copy link
Copy Markdown
Contributor Author

@reasonerjt IMHO this is a better solution.

  1. this is a very simple change, definitively much simpler than injecting headers
  2. another way to look at this, this is just a bug fix to properly support Artifactory repository path model (when not fronted by a reverse proxy)
  3. since this is already partially working, I'm not sure what is the upside in not completing the work? It's not like prefix support can be removed completely since it's already working (outside of the authentication issue)

Signed-off-by: mco69 <210950950+mco69@users.noreply.github.com>

@wy65701436 wy65701436 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@wy65701436

Copy link
Copy Markdown
Contributor

cc @bupd

@bupd

bupd commented Jun 2, 2026

Copy link
Copy Markdown
Member

Looks like the implementation proposed in goharbor/harbor/pull/22989 was already merged back in April.

This is the second time I am seeing something similar happen. Could we add some process enforcement here to prevent proposals from being bypassed or rendered moot after implementation has already landed? It makes the proposal process feel somewhat disconnected from what's actually happening in the repository.

Process is only as strong as its enforcement. Otherwise it becomes guidance rather than governance.

Also, should fixes even require proposals, or are proposals only intended for new features and larger architectural changes?

cc. @OrlinVasilev / @Vad1mo

@chlins chlins 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.

lgtm

@wy65701436

Copy link
Copy Markdown
Contributor

Looks like the implementation proposed in goharbor/harbor/pull/22989 was already merged back in April.

This is the second time I am seeing something similar happen. Could we add some process enforcement here to prevent proposals from being bypassed or rendered moot after implementation has already landed? It makes the proposal process feel somewhat disconnected from what's actually happening in the repository.

Process is only as strong as its enforcement. Otherwise it becomes guidance rather than governance.

Also, should fixes even require proposals, or are proposals only intended for new features and larger architectural changes?

cc. @OrlinVasilev / @Vad1mo

Agreed @bupd , we should definitely follow the right process here.

Although the changes are relatively minor and the author already did a live demo in the community meeting, we asked for a written proposal to give everyone better context and keep our process aligned.

While the changes look good to me, I won't merge this without your review and approval. Please share your thoughts on the proposal. If there are any concerns, we can address them before the author submits any further MRs.

@bupd bupd 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.

/lgtm

@wy65701436 wy65701436 merged commit 21e1197 into goharbor:main Jun 3, 2026
4 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.

8 participants