Block + ref components on public GitHub repos #120

Merged
benvin merged 1 commits from benvin/github-ref-name-ruleset into main 2026-11-10 23:11:52 +11:00
Member

Vault policy templating substitutes the GitHub OIDC ref claim into KV paths; a ref component equal to + becomes a single-segment wildcard and can read other refs' secrets in the same repo.

  • generate always-on ref-names-branch and ref-names-tag rulesets on public repos restricting creation of refs matching **/+ and **/+/**/*
  • add creation rule support to the ruleset module
  • reserve the generated names against custom rulesets
Vault policy templating substitutes the GitHub OIDC `ref` claim into KV paths; a ref component equal to `+` becomes a single-segment wildcard and can read other refs' secrets in the same repo. - generate always-on `ref-names-branch` and `ref-names-tag` rulesets on public repos restricting creation of refs matching `**/+` and `**/+/**/*` - add `creation` rule support to the ruleset module - reserve the generated names against custom rulesets
unkin-agent added 1 commit 2026-11-10 23:05:07 +11:00
Block + ref components on public GitHub repos
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful
4fa1112ef1
Author
Member

No findings.

No findings.
benvin merged commit ca06a42dcd into main 2026-11-10 23:11:52 +11:00
benvin deleted branch benvin/github-ref-name-ruleset 2026-11-10 23:11:53 +11:00
This repo is archived. You cannot comment on pull requests.