aws-samples / aws-samples/sample-autonomous-cloud-coding-agents

docs(security): record the fail-open content-screening posture as an ADR (extend ADR-009 or add ADR-023)

Open Beginner friendly
#793 0 comments 0 reactions 0 assignees View on GitHub
documentation P2 security
Dominant language
TypeScript
Stars
143
Forks
46
Avg merge
3d 9h
Merged PRs (30d)
20

Description

Non-blocking follow-up from the PR #788 review (and @scottschreckengaust's #756 triage).

## Problem

PR #788 added the same fail-open justification as ~4 independent inline `nosemgrep` comments across the webhook screening paths (`jira-webhook-processor.ts` `screenCommentsOrDrop`; `linear-webhook-processor.ts` `screenProjectDocsOrDrop` / `screenCommentsOrDrop`). Fail-open on a **content-screening** outage is a deliberate *security posture* choice — defensible for advisory third-party enrichment (comments/docs are dropped, logged, and the reporter's own task proceeds) — but right now that decision is re-litigated per call site instead of being recorded once.

Per the triage: "it should be an ADR line rather than four independent inline comments."

## Proposed fix

Record the posture once as a short ADR — either a section in **ADR-009 (security-posture-dev-agents)** or a new **ADR-023** — stating:

- **Advisory third-party enrichment** (Jira/Linear comments + project docs) screening **fails open**: on a guardrail/screening outage the content is *dropped* (never admitted unscreened) and the task proceeds on the reporter-authored title/description.
- **Reporter-authored content and attachments** screening **fails closed** — the boundary the code already draws (e.g. the attachment paperclip path in `linear-webhook-processor.ts`).
- The inline `nosemgrep` comments then reference the ADR instead of each restating the rationale.

Regenerate the Starlight mirror (`mise //docs:sync`) after adding/editing the ADR.

## Context

- PR #788 (Category 3 suppressions), #756 (umbrella), #730 (anti-blanket-suppression precedent)
- The fail-open / fail-closed boundary was confirmed correct in the PR #788 review — third-party content is *dropped*, never admitted unscreened.

Contributor guide

Open the contributing guide

Research direction

Start with ADR-009 and the referenced webhook paths in jira-webhook-processor.ts and linear-webhook-processor.ts, then decide whether to extend ADR-009 or add ADR-023. Record the fail-open and fail-closed boundaries, update the inline nosemgrep references, and run mise //docs:sync to regenerate the Starlight mirror.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation, security
Issue type
Documentation
Difficulty
2/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.