8000 ch-jwt-verify image publication: refuse tag re-push and build from an exported HEAD tree (parity with ch-oauth-ldap, #25) · Issue #26 · Altinity/altinity-oauth-helper · GitHub
[go: up one dir, main page]

Skip to content

ch-jwt-verify image publication: refuse tag re-push and build from an exported HEAD tree (parity with ch-oauth-ldap, #25) #26

Closed

Description

@BorisTyshkevich

Context

PR #25 (issue #19 phase 4) review found that the image publication paths never check whether the target tag already exists before pushing, and that a rebuild of the same commit is not byte-reproducible (floating base image tag, unpinned apk add ca-certificates, toolchain drift). PR #25 fixes this for the new ch-oauth-ldap path only (refuse to re-push an existing ldap-<sha> tag in scripts/build-ch-oauth-ldap-image.sh and .github/workflows/build-ch-oauth-ldap.yml, build from a git archive HEAD export instead of the live working tree, honest README wording).

The pre-existing ch-jwt-verify path has the same properties and was deliberately left untouched by #25 to keep that PR scoped:

  • scripts/build-image.sh: unconditional per-arch docker push, docker manifest rm … || true + recreate + push at the same tag, compiles the live working tree (tag derived from HEAD), pulls alpine:latest (more floating than alpine:3.24).
  • .github/workflows/build-ch-jwt-verify.yml: unconditional push: true and docker buildx imagetools create at <sha> tag; a workflow_dispatch re-run at an unchanged HEAD republishes the same tag with a possibly different manifest.

Proposed change

Mirror the ch-oauth-ldap fixes on the sidecar path:

  1. Refuse publication when the final or any per-arch tag already exists (docker manifest inspect in the script, docker buildx imagetools inspect step in the workflow), no force knob — republish requires a new commit or a different tag prefix.
  2. Build from git archive HEAD exported into the script's own temp dir, never from the working tree; keep git status --porcelain --untracked-files=all --ignored=matching only as a fast-fail convenience.
  3. Pin the base image to a minor tag (or digest) instead of alpine:latest.
  4. Reword helm/ch-jwt-verify/README.md / root README.md if they imply tag immutability (they currently make no explicit claim — verify before editing).

Related: #24 (sidecar workflow path filters), #23 (PR-time CI).

Activity

  1. added a commit that references this issue on Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0