Skip to content

Address AllowedPaths follow-up nits#541

Merged
matt-dz merged 3 commits into
mainfrom
matt-dz/allowed-paths-nit-fixes
Jun 24, 2026
Merged

Address AllowedPaths follow-up nits#541
matt-dz merged 3 commits into
mainfrom
matt-dz/allowed-paths-nit-fixes

Conversation

@matt-dz

@matt-dz matt-dz commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

This is a small follow-up to address review nits that came up on #271 before it was merged.

  • Update the CLI --allowed-paths help text to mention PATH[:ro|:rw], including the default read-only behavior.
  • Clarify the --mode remediation help text so it names :rw AllowedPaths roots.
  • Document the Windows :ro / :rw suffix interpretation, including the intentional ADS-style ambiguity tradeoff versus Unix literal-path preservation.
  • Preserve alphabetical ordering in the allowedpaths analysis symbol allowlist.

Impact

No runtime sandbox behavior changes are intended. This keeps user-facing help, docs, comments, and review-maintained allowlist ordering aligned with the merged AllowedPaths mode work.

Validation

  • make fmt
  • go test ./cmd/rshell
  • go run ./cmd/rshell --help
  • go test ./allowedpaths
  • GOOS=windows go test -c ./allowedpaths -o /tmp/rshell-allowedpaths-windows.test.exe
  • go test ./analysis
  • git diff --check

@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Jun 24, 2026

Copy link
Copy Markdown

Pipelines

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

Static Analysis Verification | Static Analysis Label Check   View in Datadog   GitHub Actions

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 29af3c5 | Docs | Datadog PR Page | Give us feedback!

@matt-dz
matt-dz marked this pull request as ready for review June 24, 2026 13:42
@matt-dz matt-dz added the verified/analysis Human-reviewed static analysis changes label Jun 24, 2026
@matt-dz
matt-dz enabled auto-merge June 24, 2026 13:43
@matt-dz
matt-dz added this pull request to the merge queue Jun 24, 2026
@matt-dz
matt-dz removed this pull request from the merge queue due to a manual request Jun 24, 2026
@matt-dz
matt-dz added this pull request to the merge queue Jun 24, 2026
Merged via the queue into main with commit 083a525 Jun 24, 2026
41 of 43 checks passed
@matt-dz
matt-dz deleted the matt-dz/allowed-paths-nit-fixes branch June 24, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

verified/analysis Human-reviewed static analysis changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants