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

   `airflow connections list` and `airflow variables list` only enumerate 
metadata-database rows, but connections/variables can also be defined via 
`AIRFLOW_CONN_*`/`AIRFLOW_VAR_*` environment variables or a configured secrets 
backend — sources that take precedence over the database at resolution time and 
can silently override a DB row with the same ID, yet never appeared in the list 
output.
   
   Adds `get_hidden_entries_warning()` 
(`airflow-core/src/airflow/cli/utils.py`), used by both `connections_list()` 
and `variables_list()`, printing a warning naming which source(s) — env-var 
prefix and/or secrets backend — may hold additional entries not visible in the 
listing. The warning goes to stderr via `AirflowConsole(stderr=True)`, so 
`--output json`/`yaml` piping is unaffected.
   
   Scoped to the CLI only in this PR — the Web UI listing mentioned in the 
issue would need new fields on the OpenAPI-generated REST API response models 
plus a TypeScript client regen, which is a materially larger, separate change. 
Happy to follow up with that as a second PR if useful.
   
   related: #10867
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Sonnet 5)
   
   Generated-by: Claude Code (Sonnet 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