cstamas commented on PR #14173: URL: https://github.com/apache/maven/pull/14173#issuecomment-7254451363
This isn't an alias nor duplication. `<configuration><httpHeaders>` differs in three ways that matter for a credential: 1. Values aren't decrypted, so the token has to sit in `settings.xml` in plaintext. `<token>` is decrypted like `<password>`. 2. It's keyed only by repository id. `<token>` is sent preemptively and only to the repository origin. 3. 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. Bearer tokens are credentials, and credentials belong in `<server>` auth, not in generic transport config. `httpHeaders` stays as is for non-auth headers. If there's a concrete case where the two conflict, I'm happy to document precedence. -- 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]
