fix(settings): deny rtk read with a flag before a root .env

rtk read -n .env matched no deny and rtk passed it through. Bench R3-R7 prove the two new rules and that the */ twins already cover flagged forms. Bench hardened: checked mktemp, mandatory dir.
This commit is contained in:
bchanot committed 2026-11-06 16:43:45 +01:00
1 parent dc5f127ea5
commit 97c6afcbc8
7 files changed
+23 -4

No files matched your search

+2
View File
@@ -419,6 +419,8 @@ Bash(head * */.env*)
Bash(tail * */.env*)
Bash(cat * .env*)
Bash(cat * */.env*)
Bash(rtk read * .env*)
Bash(*/rtk read * .env*)
EOF
check T63-phase2-rules-present "$missing" ""
check T63b-no-root-glob "$(jq -r '(.permissions.ask + .permissions.deny)[]' \