fix: reject scalar zara-shell policy collections #297

Open
nsaspy wants to merge 0 commits from rage/370-shell-policy-collections into main
Owner

Closes #370.

RED

A scalar allowed_roots="/tmp" currently iterates into /, t, m, p; resolving that collection can accidentally introduce / as an allowed root. RED coverage also checks scalar program/environment collections.

Implementation

  • requires program/environment allowlists to be set/frozenset collections;
  • requires allowed roots to be a tuple;
  • retains the existing element validation and configured plugin construction path.

No execution widening or private cancellation plane. Exact-head CI must pass the full compatibility, registry, plugin-test, and Nix gate before merge.

Closes #370. ## RED A scalar `allowed_roots="/tmp"` currently iterates into `/`, `t`, `m`, `p`; resolving that collection can accidentally introduce `/` as an allowed root. RED coverage also checks scalar program/environment collections. ## Implementation - requires program/environment allowlists to be set/frozenset collections; - requires allowed roots to be a tuple; - retains the existing element validation and configured plugin construction path. No execution widening or private cancellation plane. Exact-head CI must pass the full compatibility, registry, plugin-test, and Nix gate before merge.
Some checks failed
CI / test (pull_request) Failing after 39s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin rage/370-shell-policy-collections:rage/370-shell-policy-collections
git switch rage/370-shell-policy-collections

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff rage/370-shell-policy-collections
git switch rage/370-shell-policy-collections
git rebase main
git switch main
git merge --ff-only rage/370-shell-policy-collections
git switch rage/370-shell-policy-collections
git rebase main
git switch main
git merge --no-ff rage/370-shell-policy-collections
git switch main
git merge --squash rage/370-shell-policy-collections
git switch main
git merge --ff-only rage/370-shell-policy-collections
git switch main
git merge rage/370-shell-policy-collections
git push origin main
Sign in to join this conversation.
No description provided.