Skip to content

✨ feat(mq-lang,mq-run): add --allow-all flag to grant every sandbox permission - #2093

Merged
harehare merged 2 commits into
mainfrom
feat/allow-all-flag
Jul 27, 2026
Merged

✨ feat(mq-lang,mq-run): add --allow-all flag to grant every sandbox permission#2093
harehare merged 2 commits into
mainfrom
feat/allow-all-flag

Conversation

@harehare

Copy link
Copy Markdown
Owner

Summary

Add SandboxedIo::allow_all(), a preset that grants read/write/net/run/env
all at once, and wire it to mq-run's --allow-all flag. Deno's -A/--allow-all
shorthand isn't available here (-A is already --aggregate), and none of
the existing --allow-read/write/net/run/env flags have short forms either,
so --allow-all is long-only on purpose given it bypasses all sandboxing.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed
  • I added a changelog entry if this is a user-facing change

Additional Context

harehare added 2 commits July 27, 2026 21:50
…ermission

Add SandboxedIo::allow_all(), a preset that grants read/write/net/run/env
all at once, and wire it to mq-run's --allow-all flag. Deno's -A/--allow-all
shorthand isn't available here (-A is already --aggregate), and none of
the existing --allow-read/write/net/run/env flags have short forms either,
so --allow-all is long-only on purpose given it bypasses all sandboxing.
… flags, add -a short form

conflicts_with_all rejects --allow-all alongside --allow-net/read/write/run/env
at parse time with a clear clap error, instead of silently overriding their
values. Also add -a as a short form: unlike the other --allow-* flags (which
stay long-only), --allow-all mirrors Deno's -A/--allow-all convention — -A
itself is unavailable here since it's already --aggregate.
@codspeed-hq

codspeed-hq Bot commented Jul 27, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing feat/allow-all-flag (f60065d) with main (fee808f)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (4db2e03) during the generation of this report, so fee808f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@harehare
harehare merged commit 59ed57d into main Jul 27, 2026
11 checks passed
@harehare
harehare deleted the feat/allow-all-flag branch July 27, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant