GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — Issue #13265: let a settings server declare the repository origins its credentials may be used with by slawekjaranowski · Pull Request #13268 · apache/maven Conversation
Member
ProblemCredentials of a Repositories declared inside a
This cannot be fixed automatically: the repository system session is created before any project is read, and profile activation is resolved later, per project, by the model builder. SolutionA <server> <id>internal</id> <username>u</username> <password>p</password> <repositoryOrigins> <repositoryOrigin>https://repo.example.org</repositoryOrigin> <repositoryOrigin>https://mirror.example.org:8443</repositoryOrigin> </repositoryOrigins> </server>
Project settings
🤖 Generated with Claude Code
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
gnodet-bot
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Solid feature addition. The validation logic is thorough, the compat/impl validators are properly symmetric (with the correct intentional asymmetry on placeholder handling: compat skips One note: this PR has no milestone set. Given it fixes #13265, it might warrant one (4.1.0?). This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. …ins its credentials may be used with
Server credentials are scoped to the origin (scheme, host and port) of the
repositories and mirrors declared with the same server id. Repositories
declared inside a settings profile only reach that set when the profile id is
listed in <activeProfiles>; a profile activated through <activation> or -P
contributes no origin, so its credentials are warned about under the default
origin scope and refused under strict, with nothing the operator can do about
it. The session is built before any project exists, so profile activation
cannot be evaluated there.
A <server> can now declare those origins explicitly:
<server>
<id>internal</id>
<username>u</username>
<password>p</password>
<repositoryOrigins>
<repositoryOrigin>https://repo.example.org>
<repositoryOrigin>https://mirror.example.org:8443>
</repositoryOrigins>
</server>
The declared origins are added to the ones Maven derives on its own; nothing
is replaced. Values are bare origins, not repository URLs, and are validated:
a value no origin can be derived from is an error, while a full repository URL
is accepted with a warning naming the origin actually used. The deprecated V3
validator skips values with a property placeholder, as it runs before
interpolation.
The element is dropped from project settings, like credentials are. This is a
security requirement rather than tidiness: settings list fields merge by union
and a project-settings <server> of the same id survives as a separate entry, so
without it a project could widen the origins its user's credentials are sent
to.
The warnings of the origin binding now name <repositoryOrigins> as the way to
declare a missing origin.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
slawekjaranowski
force-pushed
the
issue-13265-server-repository-origins
branch
from
024e0f0 to
17bc761
Compare
gnodet-bot
approved these changes
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-reviewed after force-push ( This review was generated by an AI agent, Hermès on behalf of @gnodet.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
slachiewicz
approved these changes
Uh oh!
There was an error while loading. Please reload this page.
This was referenced
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers+1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesLabels
bug
ProjectsDevelopmentSuccessfully merging this pull request may close these issues. Sort out credentials scope handlingUh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |