Skip to content

fix(tests): Accept both spellings of the DAG id wildcard - #903

Merged
siegfriedweber merged 1 commit into
mainfrom
fix/opa-dag-id-wildcard
Nov 26, 2026
Merged

siegfriedweber merged 1 commit into
mainfrom
fix/opa-dag-id-wildcard

Conversation

@siegfriedweber

Copy link
Copy Markdown
Member

Description

The opa integration test fails on Airflow 3.0.6 in the GET /api/v2/dags/~/dagRuns check.

#900 wrote the rule condition as input.details.id == null, which only holds from Airflow 3.1.0 on, where requires_access_dag maps the ~ wildcard to None before calling the auth manager (security.py#L122). 3.0.6 passes ~ through unchanged, so the rule does not match and the request is denied.

The rule now accepts both spellings.

This change will be back-ported to release-26.11.

Part of stackabletech/issues#922

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Changes are OpenShift compatible
  • Integration tests passed:
    PASS: kuttl/harness/opa_airflow-3.0.6_opa-latest-1.20.2_openshift-false (201.01s)
    PASS: kuttl/harness/opa_airflow-3.2.2_opa-latest-1.20.2_openshift-false (233.02s)
    PASS: kuttl/harness/opa_airflow-3.3.2_opa-latest-1.20.2_openshift-false (186.28s)
    

Reviewer

  • Code contains useful comments
  • Code contains useful logging statements
  • (Integration-)Test cases added
  • Documentation added or updated. Follows the style guide.
  • Changelog updated
  • Cargo.toml only contains references to git tags (not specific commits or branches)

Acceptance

  • Feature Tracker has been updated
  • Proper release label has been added
  • Links to generated (nightly) docs added
  • Release note snippet added
  • Add type/deprecation label & add to the deprecation schedule
  • Add type/experimental label & add to the experimental features tracker

@siegfriedweber
siegfriedweber added this pull request to the merge queue Nov 26, 2026
@siegfriedweber siegfriedweber moved this from Development: Waiting for Review to Development: Done in Stackable Engineering Nov 26, 2026
Merged via the queue into main with commit 2b83fc5 Nov 26, 2026
11 checks passed
@siegfriedweber
siegfriedweber deleted the fix/opa-dag-id-wildcard branch November 26, 2026 07:14
@lfrancke lfrancke moved this from Development: Done to Done in Stackable Engineering Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants