Skip to content

Cleartext Credential stored locally in Airflow DAG Bundles Git Configuration #64099

Closed

Description

@carlos54

Description

Hello Apache Airflow Team,

When configuring a Git-based DAG bundle in Airflow using git bundle connexions, the underlying synchronization mechanism constructs the repository URL by embedding the username and token/password directly into the connection string (e.g., https://:@/.git).

So Dag Author can see these tokens during the DAG parsing phase (DagProcessor pod).

File with git credential:

sh-5.1$ cat   /dags/sandbox/bare/config
...
[remote "origin"]
        url = https://airflow_cen:<CLEARTEXT_TOKEN>@gitlab.ctie.etat.lu/pibi/airflow-projects/sandbox-dags.git

Use case/motivation

To prevent access to plaintext passwords, even if DAG authors can access all databases without going through DAG processing scans, the passwords are normally encrypted in DB (note this only prevents access to DB backups in rest - Dag Author can access the credentials anyway).

Related issues

Rejected vulnerability report: https://github.com/apache/airflow/security/advisories/GHSA-qhqv-64px-4339

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:feature
    needs-triage
    on Mar 23, 2026
  2. added
    kind:bug
    security
    on Mar 23, 2026
  3. potiuk commented on Mar 23, 2026

    @potiuk
    Member

    Just to be very clear to bystanding users - this isnot a security vulnerability - it's just security improvement to be added.

  4. changed the title [-][SECURITY] Cleartext Credential Leakage in Airflow DAG Bundles Git Configuration[/-] [+]Cleartext Credential stored locally in Airflow DAG Bundles Git Configuration[/+] on Mar 23, 2026
  5. potiuk commented on Mar 23, 2026

    @potiuk
    Member

    I updated description and title accordingly

  6. potiuk commented on Mar 23, 2026

    @potiuk
    Member

    We should avoid scaring people unnecessarily :)

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:dag-bundleskind:bugkind:featureneeds-triageprovider:gitsecurity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions