Skip to content

cloudsec(sdk): document the third finding status, "accepted"#326

Open
maximelb wants to merge 1 commit into
masterfrom
fix/b3-accepted-status
Open

cloudsec(sdk): document the third finding status, "accepted"#326
maximelb wants to merge 1 commit into
masterfrom
fix/b3-accepted-status

Conversation

@maximelb

Copy link
Copy Markdown
Contributor

Docs only — companion to go-cloudsec#114 / legion_graph#97 (B3).

The findings API returns status ∈ {open, resolved, accepted}, not just open|resolved. accepted is a live risk acceptance — the risk is still there and an owner signed off on carrying it — so it is deliberately not rolled into resolved (mitigated / false positive, where the risk is gone). Two places enumerated only the old pair, which reads as "accepted findings are fixed":

  • limacharlie/sdk/cloudsec.py:207list_findings' status: arg (also notes the same three values are the get_finding_facets status map keys, and that a lapsed or stale-epoch acceptance reads open again).
  • limacharlie/commands/cloudsec.py:859 — the --status filter help.

Also states that --expires-at / expires_at is optional for an acceptance: omitting it accepts the risk permanently, which is a supported disposition rather than an unfinished one (set_finding_status docstring + both --expires-at help strings).

No behaviour change — status was already a passthrough filter, so --status accepted worked before this; it just wasn't documented.

python3 -m pytest tests/unit3676 passed, 6 skipped (all 6 skips pre-existing and environmental: Windows/macOS-only, orjson unavailable, two pre-existing docstring markers).

The findings API returns status open | resolved | accepted, not just
open | resolved. `accepted` is a LIVE risk acceptance — the risk is still
there and an owner signed off on carrying it — so it is deliberately not
rolled into `resolved` (mitigated / false positive, where the risk is gone).
The SDK docstring and the CLI --status help both enumerated only two values,
which reads as "accepted findings are fixed".

Also states that --expires-at / expires_at is OPTIONAL for an acceptance:
omitting it accepts the risk permanently, which is a supported disposition
rather than an unfinished one. Docs only; no behaviour change (status was
already a passthrough filter, so `--status accepted` worked before this).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0132oQ8tTsLG5qGvX1c4TiJu
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.

2 participants