Skip to content

feat(02.02.00): GHCR images and docker-compose.yml installation - #14

Merged
paulkakell merged 3 commits into
mainfrom
feature/02.02.00-ghcr-compose
Sep 28, 2026
Merged

paulkakell merged 3 commits into
mainfrom
feature/02.02.00-ghcr-compose

Conversation

@paulkakell

@paulkakell paulkakell commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Add a pull-only docker-compose.yml for ghcr.io/paulkakell/kellmarks:02.02.00, preserving the existing compose.yaml source-build option and shared named-volume identity. The new installation needs no Git checkout, Dockerfile, host Python or Node.js. Documentation uses explicit -f selection to prevent Compose from silently preferring the source-build file.

Advance 02.01.02 to additive feature release 02.02.00. Update all version markers, changelog, README/server README, API/OpenAPI examples, user/security documentation and release/rollback notes. No runtime dependency, authentication, API schema or bookmark-data migration change.

Publishing and security

  • Publish Linux AMD64 and ARM64 images from the current trusted main commit only, after seven exact-commit application/security/CodeQL/Docker checks pass.
  • Use job-scoped GITHUB_TOKEN package permissions. Build a full-commit candidate with OCI identity labels, SBOM and provenance; pull and exercise the actual digest on both architectures before promoting the release version.
  • Reject conflicting existing version/revision labels and fail closed on registry access/network errors. Promote latest only after the GitHub release exists and main still matches.
  • Attach individual Compose/environment/HTTPS/documentation files, a minimal Docker installation archive, container.json with the digest and source commit, and SHA256SUMS. Explicit packaging excludes .env, private libraries and backups.
  • Preserve mandatory authentication, non-root UID 10001, read-only root, loopback publishing, private volumes, bounded logs, request limits and optional HTTPS.

Validation

Validated local source tree: 1f91f1f6ea66f7290e8bfd75b3fed4c01793e789; head e2fd29b365a93deb8c839504b5d0070f238d72ff; base 7ac1982219fe023de308b4ad4171c47b7a0f33c9.

202 Python tests passed, including 22 new release/Compose/workflow regressions; 91.25% server coverage; seven JavaScript tests passed. Compilation, release validation, Ruff, mypy, Bandit, secret scanning, dependency consistency, relative documentation links, whitespace and performance budgets passed locally.

  • Security and quality: passed, including Python 3.10/3.13, live dependency audits and real-browser scenarios.
  • CodeQL: passed.
  • Validation bundle: passed.
  • Docker deployment: AMD64 passed; ARM64 build and Caddy validation passed, with persistence/backup/restore scenarios still running at this update. Both must finish successfully before merging.

The initial ARM64 check exposed a target-platform override reaching the emulator installer before emulation existed. Fix e2fd29b scopes it to build/test steps, disables potentially incorrect helper caching, and adds a regression. Local browser navigation was blocked by managed-environment policy, so actual browser verification used CI. Docker verification also uses GitHub runners.

Source transfer provenance: the one-time patch transfer verified the full resulting Git tree without executing patched source. Its job token could not write workflows, so the authorized connector recorded the resulting source instead. Transfer workflow/blobs are absent from the final tree. No permissions or repository protections changed.

Operational and release boundaries

No new image has been published yet. First GHCR packages default to private; publication records an anonymous-access probe separately and never equates authenticated push with public access. The owner may need to select Public in package settings. Intentional private-package login with authorized read:packages access is documented separately from the Kellmarks API token.

No live server, private bookmark store, domain or certificate is changed. Public certificate issuance is operator-dependent. Runtime dependency audits and SBOMs are not a full OS-image vulnerability scan.

Rollback

Keep .env, a verified data backup, the same Compose project/volume and the previous tested image digest/source. Recreate using that digest without deleting volumes. This is the first GHCR release; pre-GHCR rollback uses the retained source-built image or Python release, not an invented old GHCR tag. Schema 2 remains compatible. Never use down -v during normal upgrades.

Related: #13.

Commit notes

feat(02.02.00): add GHCR images and pull-only Compose installation

Add docker-compose.yml backed by versioned GHCR images.
Build and validate Linux AMD64 and ARM64 containers.
Gate publication on exact-commit application and Docker checks.
Publish image identity, SBOM/provenance and installation assets.
Document setup, HTTPS, registry access, upgrades and rollback.
Preserve source builds, authentication and schema-2 persistence.

Transport the locally tested patch to a dedicated feature branch. The one-time workflow only verifies and applies the patch, checks the complete resulting Git tree, removes itself and its transfer blobs, and pushes the feature branch normally. It does not execute patched source, publish an image, modify main, or change repository protections. Expected source tree: b593fc4. Normal pull-request validation and release gates remain required.
Add docker-compose.yml, Linux AMD64/ARM64 GHCR publication, exact-commit application and Docker gates, release/digest identity checks, SBOM/provenance, allowlisted installation assets and complete setup/operations documentation. Preserve source builds, authentication, private volumes and schema 2.

Local validation: 201 Python tests, seven JavaScript tests, 91.25% server coverage, lint, types, SAST, secret checks and performance budgets. Browser/container/dependency-network checks require GitHub CI. Source tree matches b593fc4 and the checksum-verified local patch. Remove temporary transfer workflow and blobs. The transfer's job token lacked workflow-write permission; the authorized GitHub connector records this commit instead. No permissions or protections changed.

Related: #13. Base: 7ac1982. Additive feature update; no database migration. Keep verified backups and prior release source/image for rollback.
The first Docker CI run selected the ARM64 binfmt installer before emulation was registered, producing exec format error. Set DOCKER_DEFAULT_PLATFORM only on image build, proxy validation and smoke-test steps, leaving setup tools native. Disable QEMU image caching for these jobs so the earlier incorrectly selected helper cannot be reused. Add a workflow regression test.

Local full suite: 202 tests passed, 91.25% server coverage; Ruff and release validation passed. No application, data, dependency or security-default change. Candidate remains 02.02.00; nothing published or retagged. Related #14; initial implementation 87ac1d7.
@paulkakell
paulkakell merged commit 600af60 into main Sep 28, 2026
9 of 10 checks passed
@paulkakell
paulkakell deleted the feature/02.02.00-ghcr-compose branch September 28, 2026 01:17
paulkakell added a commit that referenced this pull request Sep 28, 2026
Resolve the parent index digest from structured registry inspection, not the ordering of Docker's local RepoDigests after platform-child pulls. Verify release labels using the resolved immutable reference so a mutable tag cannot race identity validation. Keep distinct child digests for architecture smoke tests and the parent digest for version promotion and release assets.

Add five regressions for missing/reordered local digest aliases and malformed registry identity; update existing revision-verification fixtures. Full local suite: 213 tests passed, 91.25% server coverage; Ruff, mypy, compilation/release validation, Bandit, secret scanning, dependency consistency and both performance budgets passed. Full tested Git tree: 8d939a7.

Related #16 and #14. Candidate remains 02.02.00, still unreleased; no existing release or image version is overwritten. No application, dependency, schema, configuration or operator-data change. Normal CI and exact-main release gates remain required.
paulkakell added a commit that referenced this pull request Sep 28, 2026
)

Resolve distinct AMD64/ARM64 child digests from the published index to avoid classic Docker image-store collisions during full registry round-trip testing. Resolve parent-index identity directly from structured registry metadata rather than local RepoDigests order and verify labels through the immutable reference. Retain all exact-commit, identity, platform, authentication and publication gates.

Add eleven publisher regressions and record the first safely halted release attempt in CHANGELOG. Initial candidate push succeeded but no 02.02.00/latest image tag or GitHub release was promoted. This fixes the unreleased 02.02.00 candidate; existing releases are not overwritten.

Validated head 2a50cd1 and full tree 8d939a7. Security/quality 36366508379, Docker 36366508399 (AMD64 and ARM64), CodeQL 36366508366 and validation bundle 36366508457 all passed. Local full suite: 213 Python tests, seven JavaScript tests, 91.25% server coverage; Ruff, mypy, compilation, release validation, Bandit, secret scan, dependency consistency and performance budgets passed. CI completed real browser tests, live dependency audits and source/pull-only Compose isolation, authentication, health, persistence and backup/restore checks.

No application, dependency, schema, configuration or operator-data change; no migration. Rollback preserves private data and reverts only publisher logic. Main must pass exact-commit gates and actual GHCR digest tests before release promotion. Related #14 and #13. Base 600af60.
paulkakell added a commit that referenced this pull request Sep 28, 2026
Publish env.docker.example as a stable non-hidden release asset, while preserving .env.docker.example inside source and installation archives. Correct Linux/macOS/PowerShell download and checksum instructions. Download all published assets and verify names, sizes and SHA-256 hashes against prepared inputs before promoting latest. Advance all active version markers and add changelog, release notes and rollback guidance without changing published 02.02.00 artifacts.

Local full validation: 224 Python tests passed, seven JavaScript tests, 91.25% server coverage; Ruff, mypy, compilation, Bandit, secret scanning, dependency consistency, release validation and performance budgets passed. Eleven new regressions cover filename normalization, archive preservation, documentation links and renamed/missing/extra/modified/non-file downloads. Actual browser, dependency-network, Docker and release-download round trips require normal GitHub CI.

No runtime dependency, API, authentication, configuration-default or schema-2 data change; no migration or operator-data modification. Rollback preserves the same volume and uses the prior published 02.02.00 image. Exact verified source tree acd75b1; base acf2a94. Related #14 and #16. Temporary source-transfer files removed; object creation completed through the authorized connector without altering permissions or protections.
paulkakell added a commit that referenced this pull request Sep 28, 2026
Use stable public environment-template filenames and verify actual downloaded assets before latest image promotion. Preserve source archive filenames and published 02.02.00 artifacts.

Reviewed exact source tree acd75b1. Security and quality 36368093410, CodeQL 36368093403, validation bundle 36368093386 and Docker deployment 36368093412 passed for head 4f6b3fc. The initial AMD64 Caddy pull failed with a Docker Hub connection reset; the failed job was retried successfully without changing test gates. No runtime dependency or schema change. Related #14 and #16.
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.

1 participant