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

   @cstamas this is pure duplication for me, let me explain with your points:
   
   
   > Values aren't decrypted, so the token has to sit in settings.xml in 
plaintext. <token> is decrypted like <password>.
   
   Well it is supported in maven 4 and not the hardest part to port to maven 3
   
   > It's keyed only by repository id. <token> is sent preemptively and only to 
the repository origin.
   
   Same applies to headers (and the proxy behavior too) so worth making 
happening for httpheaders as well
   
   > It's a raw header bag. Maven can't validate it or warn about conflicts 
with username/password nor assume they are secrets or not.
   
   About conflicts it is the same for the new `token` so no difference there, 
also about secret you assume tokens are secret. While this is generally true, 
it is not always the case which is exactly the same as headers.
   Also note that you are breaking (compatibility wise) the schema so you can 
add a secret=true attribute, breaks as much.
   
   Overall the point is with as much efforts you do better since you enhance an 
existing and used features instead of creating a new one.
   Dont forget it is always trivial to do something new but maintaing what 
exists always requires some more effort but we are lucky it is low there.
   
   Side note: I think a neat compromise for the secret can be a config property 
- 90% of resolver configuration is not wired in maven except with properties 
anyway - which does list header names to hide and we set the dozen of well 
known values as default, will make it working for everyone for free when 
upgrading which is way better than making people having to maintain multiple 
settings (local and CI for ex) for some time and/or not having the feature at 
all.
   
   So with a bit more thought I think this is the opposite of where we want to 
go.
   
   
   


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