Skip to content

DAG names should be filtered a little stronger #63295

Closed

Description

@ferruzzi

Apache Airflow version

3.1.7

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

No response

What happened?

In one of the PRs I was reviewing, Copilot pointed out a low-risk security issue. We allow dag_id and run_id to contain .. and use those values in log file paths which cold theoretically lead to an issue. validate_key() blocks slashes in dag_id and validate_run_id() blocks them in run_id, but both still allow the .. and maybe they should block that.

What you think should happen instead?

No response

How to reproduce

Original PR and discussion here: #62616 (comment)

Operating System

templeos

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Mar 10, 2026
  2. added a commit that references this issue on Mar 24, 2026
    4f2493d
  3. added a commit that references this issue on Mar 25, 2026
    153239d
  4. added a commit that references this issue on Apr 9, 2026
    4aec056
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:corekind:bugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions