gnodet commented on PR #14173:
URL: https://github.com/apache/maven/pull/14173#issuecomment-7275651759

   `httpHeaders` cannot supersede `<token>` for two concrete reasons that 
matter for a CVE fix:
   
   1. It doesn't decrypt values — the secret sits in plaintext in 
`settings.xml`.
   2. It doesn't scope to the repository origin — the header is sent to any 
repo matching the server `<id>`, regardless of host.
   
   Those are exactly the properties that make `httpHeaders` a workaround rather 
than a solution. Fixing them in `httpHeaders` is a valid follow-up, but it's 
additive work — it doesn't make this PR redundant.
   
   On the list thread: I'm fine with that if there's a genuine design question 
open. But the question here seems settled: credentials belong in `<server>`, 
transport config belongs in `<configuration>`. That's not a new principle.


-- 
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]

Reply via email to