C live checks beyond C-5 — kind 3, private registry, killed scan, webhooks, drift, retention, exception replace (lead only)

Aperta
#72 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
docker, github, python

Direzione di ricerca

Start with the C-5 images loop in the README and the referenced scanning design spec, especially §§4.4, 6, 8.2–8.4, and 10. Then check each listed live scenario, including private GHCR authentication, scan failure and cleanup, webhooks, drift, exception handling, and retention; record the outcomes on this issue. The issue requires a Docker stack, private GHCR access, and a webhook sink.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

lead-only queue: container images (C) ready

Queue: C (#56) · Replaces: #63 (C-2 live checks) and #65 (C-4 live checks) · Spec: docs/superpowers/specs/2026-09-13-container-images-scanning-design.md §6, §8.2-§8.4, §10, §4.4 · Lead only: needs the Docker stack, a private GHCR account (a registry connection) and a webhook sink. The images loop from C-5 (python -m pipeline.demo images-seed, README "Images loop") sets up most of the preconditions.

Already verified live in C-5 (2026-09-30, PR #71); not repeated here

  • Kind 2 on an approved user image, through to a published item (was #63 item 1).
  • A rescan under a tightened policy flags an in-use image, and a triggered run still launches (#63 item 4).
  • Flag → process_image_flagged fires → the process reads Degraded → a new deploy is refused → re-approval auto-resolves the alert (most of #65 item 1).
  • The daily rescans store a diff, and the history shows the "+N … since …" lines (#65 item 3, diff half).
  • Exception expiry, failing path: flagged, the four columns cleared, an exception_expired audit row with empty actor_groups (#65 item 5, half).
  • Admin grant and revoke in the UI; the revoke confirmation names the process count (#65 item 7, half).

Still to check

  1. Kind 3 (#63.2): deploy a container revision with a command and see it override Cmd only.
  2. Private registry (#63.3, #65.4): add a private GHCR image through a group registry connection.
    • Confirm Syft's GHCR/Docker Hub auth authority (C-2 plan Decision 24).
    • Confirm the daemon pull with X-Registry-Auth.
    • Confirm grype db status reports built and path, so db_built_at is not "unknown", and that the baked DB is readable as uid 10001.
    • Confirm a rescan's drift HEAD uses the group credential pipeline-side, while the scanner container gets none.
  3. Killed scan (#63.5): docker kill stac-scan-<id> mid-scan. It ends scan_failed and the container is reaped.
  4. Webhook delivery (#65.1, #65.2): with a webhook channel on the process's group, process_image_flagged is delivered exactly once, and a process_failed alert is delivered (C-4 decision 7).
  5. Resolve by redeploy (#65.1): deploying a revision off the flagged image resolves the alert on the next minute.
  6. Drift (#65.3): move a tag upstream and see "tag moved to …" on the next rescan. Point a rescan at an unreachable registry and see current_digest: null, with the scan still finishing.
  7. Expiry, passing path (#65.5): an expired exception on an image that now passes stays approved and clears the four exception_* columns, with one audit row.
  8. Retention on real objects (#65.6): after a dedup fold, the orphaned scans/{provisional_id}/… objects older than 24 h are deleted by history_retention (:17). The current SBOM and in-flight scans survive. The C-5 fold on 2026-09-30 left such objects, and they are old enough now.
  9. Replace a live exception (#65.7): as an admin, a second grant replaces a live exception.

#57 (bad registry credentials refused) needs the same private-registry setup and can be done in the same sitting.

Record outcomes on this issue.

Lingua principale
Python
Stelle
0
Fork
2
Merge medio
8h 26m
PR unite (30g)
47

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di TechTraverse/stac-higher

Tutte le issue di TechTraverse/stac-higher

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.