feat(scanner): reject plugin s3 writes and containerapp up - #1179
Draft
seonghobae wants to merge 16 commits into
Draft
feat(scanner): reject plugin s3 writes and containerapp up#1179seonghobae wants to merge 16 commits into
seonghobae wants to merge 16 commits into
Conversation
Hook and manifest aws s3 sync/cp and az containerapp up must fail closed. aws s3 ls, comments, echo lookalikes, and README wording stay inventory. Relates to #1099.
Fail closed on executable aws s3 sync/cp as claude-plugin-aws-s3-write-command and az containerapp up as claude-plugin-az-containerapp-up-command. aws s3 ls, comments, and echo lookalikes stay inventory. Relates to #1099.
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
seonghobae
added a commit
that referenced
this pull request
Sep 8, 2026
Summary: - Snapshot 2026-09-08 05:11 UTC records Draft #1180 `ffcb8ef` stacked on #1179. - Executable npm publish, twine upload, and cargo publish fail closed. - Remaining leftover: pnpm/yarn/uv/poetry publish. Rationale: - #999 is the single writer of the product-technical gap baseline. - Do not Close #1099 or #1179. Tests: - documentation-only; detector evidence lives on #1180 (465 passed)
seonghobae
added a commit
that referenced
this pull request
Sep 8, 2026
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.
Successor of #1177 / issue #1099. Does not Close those. CloudFormation/gcloud/az webapp stay #1177. Hosted vercel/fly stay #1174. Pass is not Noema admission.
Current exact authority — 2026-09-08
feat/claude-plugin-cloud-deploy-1099@fdcda62e0948117231c130f62f47cb61ca1a3a8c3073ffdbbddbaa30d363f366d7dc5deea250f93997cdbd0→ GREEN8ca0628Valid product delta
The feature introduces fail-closed rules for object-store/container-app write authority. Review found that the predecessor S3 rule was broader than its own message and security class because
_aws_s3_write_command_hits()classified every executableaws s3 cporaws s3 syncsolely from the verb. The current head now distinguishes provable direct S3-to-local downloads from writes to an S3 destination.Fleet RED
f480ae0...adds deterministic direction contracts:cpremains a finding;syncremains a finding;cpstays inventory, notclaude-plugin-aws-s3-write-command;syncstays inventory;aws s3 ls, comment/reporting, README, secret-redaction, manifest and CloudFormation regressions remain locked.Command-direction GREEN
51d1da4...excludes only exact literal S3→local pairs. Follow-up RED44761c28d8748f63eca052ec6145be1111bc4d68proves that a safe first download must not hide a later upload; GREEN3073ffdbbddbaa30d363f366d7dc5deea250f939scans subsequent executable matches. Exact source AST passes; download negatives 2/2 and write/ambiguous/later-write positives 6/6 pass. Snippets remain command labels.Normal two-parent integration preserves #1173 command-context repair and compares 0 behind current #1177. No predecessor Checks transfer.
Minimum causal GREEN
Implemented at the command boundary. Only a provably literal direct S3-to-local source/destination pair is excluded. Local-to-S3 and S3-to-S3 remain fail closed. Dynamic variables, substitutions, leading-option forms, or otherwise ambiguous operand direction remain fail closed.
Gates
Keep Draft through RED → minimal source GREEN → exact-head focused/plugin-suite/100% owned-production coverage → repository security/SAST/CodeQL → qualifying independent current-head review. This stack currently uses a feature base; absence of hosted PR workflows is not license for a no-op CI wakeup. Repository workflow admission remains the #1096 prerequisite. Predecessor receipts, self-approval, force-push, destructive rebase, synthetic statuses and gate weakening are not accepted.
Current quoted-command context repair
This descendant inherits #1173 RED
d7384e53d44a426356a73e24b2b9cc3fe153de27and final canonical repair3a5b14771cc7abb6553fa1ec9bcd8b62acc947acwithout copying a leaf workaround. Exact head:f8372ece60fdf2db61a0fbd733414083ea09d3f1; current parent:7802ad62082696dba275a1734c4fb81841f416db; Git compare is 0 behind and preserves this PR's unique detector/test delta. The top #1183 source AST and extracted helper probes pass quoted/reporting negatives while preserving direct and command-substitution positives. This custom-base PR stays Draft until its own hosted integration and independent review are terminal.Current assignment-value context repair — 2026-09-08
This normal two-parent descendant inherits canonical #1173 RED
90ae232e852b3d01463d978f9bccd9157c341fe7and GREEN1e6a3eb43a5bc2d146656af13e7fa6cad2a77315without a leaf workaround. Exact head:10c0a34a14200f6013bd904e5bf205487e4b80e8; current parent:9e35b6eb1225210b75d2a63a907de44243df0a7d; Git compare is 0 behind and preserves this PR's unique detector/test delta. Assignment-value negatives and environment-prefix/direct/substitution positives are present in the exact tree. This custom-base PR remains Draft until its own hosted integration and independent current-head review are terminal. Earlier head strings in this body are historical evidence only.Current heredoc-safe restack — 2026-09-08
Canonical #1173 exact head
184b4b4f55906284ac1d8059e46cec8f0d9cfc9afixes closed literal here-document payload false positives with RED6f6be77d...→ GREEN12faf2f.... This branch was integrated non-destructively on parent9e0e4ad0ef263ae8a265482051df871a74bf871c; exact head is730d42926d383c59e9f01a12df625b32c3824285. GitHub compare reportsbehind_by=0,ahead_by=16; the PR's unique detector delta remains in the tree. Exact-head hosted integration and independent review are not terminal, so this PR remains Draft. Earlier head strings are historical evidence only.