Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions tests/templates/kuttl/opa/31-opa-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down