Share subdomain var in Traefik routers; add clone auth hints #7

Merged
MHE merged 3 commits from audit-repo-completeness-certs-dumper-image into main 2026-10-31 15:46:10 +01:00
Owner

What changed

Traefik router templates

  • Each conf.d template declares its subdomain once in a new VARIABLES section ({{ $sub := "..." }}). All Host() rules use {{ $sub }} instead of repeating the label for TRAEFIK_DOMAIN and TRAEFIK_DOMAIN_1..4.
  • traefik-wildcard-cert.yaml and template follow the same shape. Rendered Host rules keep the same intent.
  • .openso/rules/30-traefik.md documents the pattern for new router files.
  • Whitespace inside {{ env "..." }} is normalized.

Clone scripts (run.sh, get-folder.sh)

  • Clones run with GIT_TERMINAL_PROMPT=0, so they fail fast instead of hanging on a credential prompt.
  • On an HTTPS clone failure, log_repo_auth_hint prints one-time credential setup commands. The scripts still store no token.
  • README and 20-scripts.md document the same behavior.

Housekeeping

  • Removed the local plan file .cursor/plans/traefik_ci_image_handoff.plan.md.
  • .gitignore ignores .cursor/ so local plans and session files stay out of commits.

Why

Repeating the subdomain label in every Host() made router files easy to get out of sync; one variable per file fixes that. The clone changes turn a missing private-repo credential into an actionable error instead of a hang or an opaque failure. The plan was local handoff notes, not project documentation.

## What changed **Traefik router templates** - Each `conf.d` template declares its subdomain once in a new `VARIABLES` section (`{{ $sub := "..." }}`). All `Host()` rules use `{{ $sub }}` instead of repeating the label for `TRAEFIK_DOMAIN` and `TRAEFIK_DOMAIN_1..4`. - `traefik-wildcard-cert.yaml` and `template` follow the same shape. Rendered Host rules keep the same intent. - `.openso/rules/30-traefik.md` documents the pattern for new router files. - Whitespace inside `{{ env "..." }}` is normalized. **Clone scripts (`run.sh`, `get-folder.sh`)** - Clones run with `GIT_TERMINAL_PROMPT=0`, so they fail fast instead of hanging on a credential prompt. - On an HTTPS clone failure, `log_repo_auth_hint` prints one-time credential setup commands. The scripts still store no token. - README and `20-scripts.md` document the same behavior. **Housekeeping** - Removed the local plan file `.cursor/plans/traefik_ci_image_handoff.plan.md`. - `.gitignore` ignores `.cursor/` so local plans and session files stay out of commits. ## Why Repeating the subdomain label in every `Host()` made router files easy to get out of sync; one variable per file fixes that. The clone changes turn a missing private-repo credential into an actionable error instead of a hang or an opaque failure. The plan was local handoff notes, not project documentation.
Use shared $sub variable for Traefik router subdomains
All checks were successful
ci / compose (pull_request) Successful in 13s
ci / shellcheck (pull_request) Successful in 6s
ci / conventions (pull_request) Successful in 2s
ci / image (pull_request) Successful in 1s
f44de34cd8
MHE merged commit 9fabb4ce6c into main 2026-10-31 15:46:10 +01:00
MHE deleted branch audit-repo-completeness-certs-dumper-image 2026-10-31 15:46:26 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
openso/docker-templates!7
No description provided.