Align with OPS-CONTRACT; real-docker lifecycle workflow #6

Merged
oliver.maklott merged 3 commits from contract-align into main 2026-11-14 01:18:37 +01:00

Aligns lvbcmd with the current mehrerau/lvb OPS-CONTRACT (all ops commands implemented) and adds a real-docker lifecycle test.

  • install/config: BIND_ADDRESS (behind-proxy 127.0.0.1, standalone 0.0.0.0; config set CADDYFILE=… follows; update adds it as 127.0.0.1 for behind-proxy), optional --oidc-name → OIDC_NAME.
  • idp: switch writes OIDC2_* with a permanent id (--id, default next) and --name, restarts, ops idp switch --from <OIDC_ID> --to <id>, prints backups/<relinkCsv> with a strong warning. retire maps to ops only; new promote moves OIDC2_* → OIDC_* keeping the id. set refuses issuer changes for an id with users (ops idp list) and explains the switch flow.
  • restore order (full backup and snapshot restore): stop app worker → run --rm -T ops backup restore <file> --replace → up -d --wait. Backup files outside backups/ are copied flat (ops rejects sub-directories).
  • --map-issuer only rewrites .env, then tells the operator to run idp switch (which restores the DB-known issuer to OIDC_*).
  • Release keys POSTGRES_IMAGE, CADDY_IMAGE, GOTENBERG_IMAGE; digests.json checked; doctor warns on open behind-proxy ports.
  • .forgejo/workflows/lifecycle.yml + scripts/lifecycle.sh: install (behind-proxy, mock IdP) → invite → year → backup now/verify → snapshot → teardown → snapshot restore into a fresh dir → doctor/status/year list → idp switch/retire/promote; always cleans up.
  • README (German handbook) and docs/PLAN.md updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4hDGT5Zans1Gu3Lv6j

Aligns lvbcmd with the current `mehrerau/lvb` OPS-CONTRACT (all ops commands implemented) and adds a real-docker lifecycle test. - **install/config**: `BIND_ADDRESS` (behind-proxy `127.0.0.1`, standalone `0.0.0.0`; `config set CADDYFILE=…` follows; `update` adds it as `127.0.0.1` for behind-proxy), optional `--oidc-name` → `OIDC_NAME`. - **idp**: `switch` writes `OIDC2_*` with a permanent id (`--id`, default `next`) and `--name`, restarts, `ops idp switch --from <OIDC_ID> --to <id>`, prints `backups/<relinkCsv>` with a strong warning. `retire` maps to ops only; new `promote` moves `OIDC2_*` → `OIDC_*` keeping the id. `set` refuses issuer changes for an id with users (ops `idp list`) and explains the switch flow. - **restore order** (full backup and snapshot restore): `stop app worker` → `run --rm -T ops backup restore <file> --replace` → `up -d --wait`. Backup files outside `backups/` are copied flat (ops rejects sub-directories). - **--map-issuer** only rewrites `.env`, then tells the operator to run `idp switch` (which restores the DB-known issuer to `OIDC_*`). - Release keys `POSTGRES_IMAGE`, `CADDY_IMAGE`, `GOTENBERG_IMAGE`; digests.json checked; doctor warns on open behind-proxy ports. - `.forgejo/workflows/lifecycle.yml` + `scripts/lifecycle.sh`: install (behind-proxy, mock IdP) → invite → year → backup now/verify → snapshot → teardown → snapshot restore into a fresh dir → doctor/status/year list → idp switch/retire/promote; always cleans up. - README (German handbook) and docs/PLAN.md updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4hDGT5Zans1Gu3Lv6j
Align with OPS-CONTRACT; real-docker lifecycle workflow
Some checks failed
check / check (push) Failing after 3s
check / check (pull_request) Failing after 3s
lifecycle / lifecycle (pull_request) Failing after 2m56s
c1a9eb34e6
- install/config: BIND_ADDRESS (behind-proxy 127.0.0.1, standalone 0.0.0.0), OIDC_NAME
- idp switch writes OIDC2_* with permanent id/name, warns about the relink CSV; retire maps to
  ops only; new idp promote; idp set refuses issuer changes for ids with users
- full restore order: stop app worker -> ops backup restore --replace -> up -d --wait
- --map-issuer rewrites .env only, then points to idp switch
- release keys POSTGRES/CADDY/GOTENBERG_IMAGE, digests.json check, doctor bind check
- lifecycle.yml + scripts/lifecycle.sh; README and PLAN updated

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4hDGT5Zans1Gu3Lv6j
lifecycle: mock IdP on the instance's edge network
All checks were successful
check / check (push) Successful in 8s
check / check (pull_request) Successful in 9s
lifecycle / lifecycle (pull_request) Successful in 1m34s
c320ccafc1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4hDGT5Zans1Gu3Lv6j
messages: full restore needs no --replace
All checks were successful
check / check (pull_request) Successful in 8s
check / check (push) Successful in 8s
lifecycle / lifecycle (pull_request) Successful in 1m55s
47c3a9d32a
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4hDGT5Zans1Gu3Lv6j
oliver.maklott deleted branch contract-align 2026-11-14 01:18:37 +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
mehrerau/lvbcmd!6
No description provided.