fix: validate zara-shell policy descriptors eagerly #299

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

Closes #364.

Adds RED coverage for malformed allowed_programs / allowed_roots, then rejects invalid descriptors during CommandPolicy construction instead of leaking later incidental path/type errors.

No cancellation side-channel or execution widening. Exact-head CI must pass full compatibility, registry, plugin-test, and Nix gates before merge.

Closes #364. Adds RED coverage for malformed `allowed_programs` / `allowed_roots`, then rejects invalid descriptors during `CommandPolicy` construction instead of leaking later incidental path/type errors. No cancellation side-channel or execution widening. Exact-head CI must pass full compatibility, registry, plugin-test, and Nix gates before merge.
Some checks failed
CI / test (pull_request) Failing after 38s
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/364-shell-policy-descriptors:rage/364-shell-policy-descriptors
git switch rage/364-shell-policy-descriptors

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/364-shell-policy-descriptors
git switch rage/364-shell-policy-descriptors
git rebase main
git switch main
git merge --ff-only rage/364-shell-policy-descriptors
git switch rage/364-shell-policy-descriptors
git rebase main
git switch main
git merge --no-ff rage/364-shell-policy-descriptors
git switch main
git merge --squash rage/364-shell-policy-descriptors
git switch main
git merge --ff-only rage/364-shell-policy-descriptors
git switch main
git merge rage/364-shell-policy-descriptors
git push origin main
Sign in to join this conversation.
No description provided.