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

Open
#72 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
docker, github, python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
0
Forks
2
Avg merge
8h 26m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TechTraverse/stac-higher

All issues in TechTraverse/stac-higher

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.