Repository navigation
chore(hardening): remove dead one-shot scope code + harden tar extraction - #89
Merged
Merged
Conversation
…tion (#81) Two small #81 items: - Remove the dead `ONE_SHOT_SCOPES` / `isOneShotScope` in elevation.ts. It was never called in production and its scope strings ("jwt-secret-roll", …) had drifted from the real scopes — a misleading second source of truth that masked the elevation scope-confusion. The authoritative one-shot decision lives in elevation-scopes.ts → `scopeFor(...).oneShot`. (Drops its self-only test.) - Harden both tar extractions (bumblebee, triage-sandbox) with `--no-same-owner --no-same-permissions` so archived ownership/mode bits don't carry onto the host. Defense-in-depth — the bumblebee tarball is already checksum-pinned; deeper symlink-escape containment for a future poisoned pin remains a tracked follow-up. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
|
✅ Docker image built successfully
|
Closed
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two small #81 hardening items:
ONE_SHOT_SCOPES/isOneShotScope(elevation.ts): never called in production, and its scope strings had drifted from the real ones (a misleading second source of truth). The authoritative one-shot decision isscopeFor(...).oneShotin elevation-scopes.ts.--no-same-owner --no-same-permissionsso archived ownership/mode bits don't carry onto the host. Defense-in-depth — the bumblebee tarball is checksum-pinned; deeper symlink-escape containment for a future poisoned pin stays a tracked follow-up.Full suite green. Independent of the other branches.
Generated by Claude Code