gnodet commented on PR #14173: URL: https://github.com/apache/maven/pull/14173#issuecomment-7276917189
Good points, and I think we're closer to agreement than it appears. On decryption — you're right, that's doable in Maven 3 as well, happy to concede that. On origin-scoping, though, I'd push back a little. `<token>` is scoped to the repository origin (scheme + host + port) at the resolver level, while `httpHeaders` is currently keyed only by server `<id>`. If a POM from a third party declares a repository with the same `<id>` pointing to a different host, it receives the header — which is the credential leak case. Fixing that for `httpHeaders` would require the same resolver-level changes this PR builds on, so it's not really "free" either way. That said, I do agree that we should also improve `httpHeaders` for users who are already using it — nobody should be forced to migrate. I'd just frame it as a follow-up rather than a blocker: this PR adds the right path for new users, and a follow-up secures the existing one. Both are worth doing. Would you be open to that framing? Happy to help with the `httpHeaders` improvement as a follow-up if it moves things forward. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
