From b15e7337e740ff2705283d78b0bcbb07cbce4da4 Mon Sep 17 00:00:00 2001 From: Siegfried Weber Date: Thu, 26 Nov 2026 07:11:25 +0000 Subject: [PATCH] fix(tests): Accept both spellings of the DAG id wildcard (#903) --- tests/templates/kuttl/opa/31-opa-rules.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/templates/kuttl/opa/31-opa-rules.yaml b/tests/templates/kuttl/opa/31-opa-rules.yaml index df731327..c9d25e6d 100644 --- a/tests/templates/kuttl/opa/31-opa-rules.yaml +++ b/tests/templates/kuttl/opa/31-opa-rules.yaml @@ -104,9 +104,11 @@ data: is_authorized_dag if { input.method == "GET" input.access_entity == "RUN" - # Airflow maps the `~` wildcard to `None` before it calls the auth - # manager, so the DAG id arrives here as null rather than as "~". - input.details.id == null + # Airflow 3.1.0+ maps the `~` wildcard to `None` before it calls the + # auth manager, so the DAG id arrives here as null, while 3.0.x passes + # `~` through unchanged. See + # https://github.com/apache/airflow/blob/3.1.0/airflow-core/src/airflow/api_fastapi/core_api/security.py#L122 + input.details.id in [null, "~"] input.user.name == "jane.doe" }