The GitHub Actions job "Tests (AMD)" on 
airflow.git/forbid-underscore-in-team-names has failed.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
031010453fd390b29961bd9397a1315b5dc4ed21 / Jarek Potiuk <[email protected]>
Forbid underscores in team names

A team specific secret is stored as `_<TEAM_NAME>___<SECRET_ID>` in the
environment. While a team name could itself contain the `___` separator, that
name had no single reading: `_a___b___c` is team `a` with id `b___c` and equally
team `a___b` with id `c`, and nothing in the string chooses between them. Every
guard over that namespace had to work around the ambiguity rather than resolve
it, and the first two attempts at doing so were both wrong in ways that let one
team read another's secrets.

Remove the ambiguity at the source: `TEAM_NAME_PATTERN` no longer accepts an
underscore. A team name can then never span the separator, so the stored id has
exactly one reading and the namespace check collapses to a single match against
the team name charset.

This replaces the split-scanning guard added while the ambiguity still existed.
The narrower behaviour it was carrying is preserved: an id whose leading segment
could not be a team name still resolves through the team agnostic lookup.

Generated-by: Claude Opus 5 (1M context) following the guidelines at
https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

Report URL: https://github.com/apache/airflow/actions/runs/30678461607

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to