Hardening: data import, Redis auth failures, image digest pin, downloads. Release 0.10.0. #3

Closed
oliver.maklott wants to merge 0 commits from oliver.maklott/review-fixes-2026-11 into main AGit

Operator-tooling hardening from the November review.

  • data import validates its source, asks for confirmation (--yes; refused without a TTY), stops when writers cannot be stopped and snapshots the current volume first (--no-backup). Export directories are 0700. Both restart what they stopped.
  • bootstrap and update stop the core stack when Redis auth cannot be set up (--allow-insecure-redis keeps it running). Breaking: exit code 1 instead of a warning.
  • A verified deploy bundle that carries image.digest pins the app image by digest; bundles without it behave as before with a warning.
  • bootstrap refuses a non-empty directory that is no deploy dir (--force).
  • sidecar isolate states what it enforces; --verify reports a route out; --internal-network is opt-in.
  • Registry downloads are HTTPS-only with time and size caps; unzip runs with an extraction quota; sidecar run does not glob; composeFiles are validated; prompt input is never evaluated; the deploy .env is rewritten atomically.
  • publish refuses to replace a published version without --replace.
  • Release workflow: refuses a tag that is not on main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2

Operator-tooling hardening from the November review. - `data import` validates its source, asks for confirmation (`--yes`; refused without a TTY), stops when writers cannot be stopped and snapshots the current volume first (`--no-backup`). Export directories are 0700. Both restart what they stopped. - `bootstrap` and `update` stop the core stack when Redis auth cannot be set up (`--allow-insecure-redis` keeps it running). **Breaking:** exit code 1 instead of a warning. - A verified deploy bundle that carries `image.digest` pins the app image by digest; bundles without it behave as before with a warning. - `bootstrap` refuses a non-empty directory that is no deploy dir (`--force`). - `sidecar isolate` states what it enforces; `--verify` reports a route out; `--internal-network` is opt-in. - Registry downloads are HTTPS-only with time and size caps; unzip runs with an extraction quota; `sidecar run` does not glob; `composeFiles` are validated; prompt input is never evaluated; the deploy `.env` is rewritten atomically. - `publish` refuses to replace a published version without `--replace`. - Release workflow: refuses a tag that is not on main. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
- data import validates its source (layout, manifest), asks for confirmation
  (--yes; refused without a TTY), stops when writers cannot be stopped, and
  snapshots the current volume first (--no-backup). Export directories are
  0700. Both restart what they stopped.
- bootstrap and update stop the core stack when Redis auth cannot be set up
  (--allow-insecure-redis / LDCMD_ALLOW_INSECURE_REDIS=1 keeps it running).
- A verified deploy bundle that carries image.digest pins the app image as
  <repo>:<tag>@sha256:…; a malformed digest is fatal, a missing one warns
  (LDCMD_PIN_IMAGE_DIGEST=0 opts out).
- bootstrap refuses a non-empty directory that is no deploy dir (--force).
- sidecar isolate says what it enforces; --verify reports a route out;
  --internal-network creates the render network without egress.
- Registry downloads: HTTPS only, TLS 1.2, time and size caps; unzip with an
  extraction quota. sidecar run does not glob; composeFiles are validated;
  prompt input is never evaluated; deploy .env is rewritten atomically 0600;
  deploy paths with whitespace or glob characters are refused.
- publish refuses to replace a published version without --replace and
  passes the token in a header file.
- docker-compose.override.yml in the deploy dir is applied when present.
- Release workflow: refuses a tag that is not on main.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4ghusFjH71tHhZetH2
oliver.maklott force-pushed oliver.maklott/review-fixes-2026-11 from 1b15ddc7fd
Some checks failed
Test / test (pull_request) Failing after 51s
to cb06d2ae21
All checks were successful
Test / test (pull_request) Successful in 59s
2026-11-14 23:30:35 +01:00
Compare
oliver.maklott closed this pull request 2026-11-15 21:20:31 +01:00
All checks were successful
Test / test (pull_request) Successful in 59s

Pull request closed

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
limedoc/ldcmd!3
No description provided.