Skip to content

Consistent approach for sensitive value masking in CLIs #59838

Open
9 of 9 issues completed
Open

Description

@potiuk

Body

We agreed via LAZY CONSENSUS that we will not espose sensitive information over the public API (exception is task-sdk API).

This is a meta-issue describing what needs to be done. Sub-issues are created to complete the work.

This means:

  1. we want to make it crystal clear that no APIs ever expose sensitive data

  2. we should remove export (import can stay) via UI - and leave a
    comment that export is only available via local CLI

  3. the "sensitive data not exposed over API" is also present in
    airflow-ctl - this means that airflow-ctl should never expose
    sensitive data (including connections, variables, config, export)

  4. the "expose config" [5] - will only accept "false" and
    "non-sensitive-only". The "true" will be rejected.

There is also an impact to local CLI, even if local CLI user has
access to all data anyway:

  1. local CLI * list (connections, variables, config) only by default
    returns "keys" - and it will only return values when --show-values
    is passed as command line option (with clear comment in help that this
    option might show sensitive data, also when we do * list command
    without --show-values we emit stderr output explaining that
    potentially sensitive data is hidden and you need to specify
    --show-values to see them

  2. the local CLI * get commands are unaffected (those are more likely
    already used as CLI API

  3. we remove connections list --conn-id as it is equivalent to connections get

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Sub-issues

Sub-issues

9 of 9 Issues completed
Loading 9 sub-issues

Activity

  1. added
    kind:meta
    on Dec 27, 2025
  2. added
    area:API
    on Dec 27, 2025
  3. added this to the Airflow 3.2.0 milestone on Dec 27, 2025
  4. abhijeets25012-tech commented on Jan 3, 2026

    @abhijeets25012-tech
    Contributor

    can i work on this as i work on your previous issue and you approved it

  5. potiuk commented on Jan 4, 2026

    @potiuk
    MemberAuthor

    can i work on this as i work on your previous issue and you approved it

    So dar all issues here are assigned - but you can review and comment on any of those - and if they get stale, you can take it over.

  6. vatsrahul1001 commented on Jun 18, 2026

    @vatsrahul1001
    Contributor

    @potiuk Are we planning this for 3.3.0 if not can be moved to 3.4.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:APIarea:CLIkind:meta

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions