Skip to content

AIRFLOW__API__EXPOSE_CONFIG when set to 'non-sensitive-only' is exposing some secrets #60668

@anavrotski

Description

@anavrotski

Apache Airflow version

3.1.6

If "Other Airflow 3 version" selected, which one?

3.1.0

What happened?

When the enivronment variable AIRFLOW__API__EXPOSE_CONFIG is set to non-sensitive-only some secrets are visible in menu Admin / Config:

Section								Key							Value
core								simple_auth_manager_users	admin:admin  <- USER:PASSWORD
core								sql_alchemy_conn			mysql+mysqldb://DB_USER:DB_PASSWORD_HERE@....rds.amazonaws.com:3306/airflow_db
kubernetes_environment_variables	client_id					some_uuid    <- probably shouldn't be exposed
kubernetes_environment_variables	client_secret				some_secret  <- probably shouldn't be exposed

What you think should happen instead?

Values from above should not be visible.

How to reproduce

Set AIRFLOW__API__EXPOSE_CONFIG env var to 'non-sensitive-only'.

Operating System

linux

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

Chart 1.18

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions