The GitHub Actions job "Tests (AMD)" on 
airflow.git/tighten-connections-test-existing-connection-authz has failed.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
e13ddd27d6a4aaec393594aeb2374f2c02f77616 / Jarek Potiuk <[email protected]>
Require existing-connection read access when testing an existing connection

The `POST /api/v2/connections/test` route was authorizing the caller only as a 
connection POST operation (i.e. "can create a connection"). When the request 
body referenced an existing `connection_id`, the route then loaded that 
connection from the configured secrets backend and merged its hidden fields 
(`login`, `password`, parts of `extra`) into the test object. The route did not 
check whether the caller was authorized to read that existing connection — so a 
caller authorized to create connections but not to read a given connection 
could effectively borrow that connection's secrets.

This change adds a `GET` authorization check on the existing connection before 
its secrets are merged into the test object. A caller authorized to create 
connections but not to read the existing `connection_id` now gets a 403.

Reference: airflow-s/airflow-s#444

Generated-by: Claude Opus 4.7 (1M context) following the guidelines at 
https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

Report URL: https://github.com/apache/airflow/actions/runs/26540374000

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to