pierrejeambrun opened a new pull request, #76453:
URL: https://github.com/apache/airflow/pull/76453

   Testing an existing connection reuses its stored password and extra, so a 
saved connection can be tested without typing its secrets again. Since #69957 
that reuse stops when the request changes the host or port: testing another 
destination has to bring its own credentials.
   
   Host and port are not the only fields that decide how and where a hook 
connects. The connection type picks the hook, an HTTP `schema` can carry a full 
URL, and `extra` can set endpoints, proxies or TLS options, all provider 
specific. The stored secrets are now reused only when the connection to test is 
the stored one, compared field by field as the connections API returns it 
(secrets masked). Otherwise the test uses exactly what the request supplied, 
and is rejected when it would still need the stored secrets.
   
   The UI flow keeps working: testing a saved connection from its edit form 
sends back the masked values and reuses the stored secrets. Editing another 
field before testing now requires re-entering the secrets.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 5.5)
   
   Generated-by: Claude Code (Opus 5.5) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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