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

   @rmannibucau's point about enhancing `httpHeaders` instead is worth pursuing 
— but as a *complement*, not a replacement.
   
   The `<token>` path in this PR and the `httpHeaders` workaround are genuinely 
not equivalent: the two key security properties missing from `httpHeaders` are 
encryption (the token is plaintext in `settings.xml`) and origin-scoping (the 
header is sent to any repository matching the server `<id>`, regardless of 
host). Those aren't minor gaps for a credential.
   
   That said, I think you're both right about one thing: if we were to retrofit 
`httpHeaders` with decryption + origin-scoping, we'd fix the CVE for everyone 
who's already using that workaround, with zero migration required. That's 
genuinely valuable, and it's separate from this PR.
   
   My view: merge this PR — it's the semantically correct place for token 
credentials, it's well-implemented, and it unblocks users who want first-class 
support. Then open a follow-up to give `httpHeaders` the same security 
treatment (decryption, origin scoping). The two don't conflict: `<token>` for 
auth credentials, `httpHeaders` for non-auth headers — with both being secure.
   
   The alternative (block this PR and retrofit `httpHeaders` first) means 
shipping nothing while the workaround stays broken.


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