Repository navigation
fix: start a fresh clone on a clean host with ./quickstart.sh, keeping production values in LKAL (ADR-001070) - #445
Merged
Merged
Conversation
…clone with quickstart defaults in the repo and production values declared in LKAL Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d by both the production init script and the CI fixture, and new PKI provisioner passwords to be 0644 inside a 0750 secrets directory (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the non-role db_owner from the CI fixture, write new PKI provisioner passwords 0644 in a 0750 directory, and run the role parity test in the compose audit (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…espan initialization completes, the image to own the Hugging Face cache directory, and a reranker seed script for the cache volume (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ization completes, create the Hugging Face cache directory for appuser in the image, and add a script that seeds the reranker into the cache volume (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…dle without Inoreader credentials when INOREADER_SYNC=disabled, and to fail fast on an unset or unknown INOREADER_SYNC (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th an inoreader_sync_disabled log when INOREADER_SYNC=disabled, wire no Inoreader code in that mode, and require INOREADER_SYNC to be set explicitly (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and bound only the readiness wait, report real container states after a failed start, generate a VAPID pair in init, record --gpu and add the Vulkan overlay, and create the quickstart data directories (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…reate phases with --timeout only on readiness, classify failed services from State, Health and ExitCode, generate VAPID keys and the .alt-data directories in init, and add the Vulkan overlay when .env sets ALT_INFERENCE_GPU=vulkan (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… runs PKI, streams, model seeding and the stacks in order with a side-effect-free dry run, builds altctl in a digest-pinned Go image, and a README quick start without a host Go toolchain (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… builds altctl in a container, runs init, bootstraps PKI, creates the search-indexer consumer group, seeds the models and starts the stacks, and point the README quick start at it (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… ANSI color codes, which the log pipeline cannot parse (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… so every stdout line is plain JSON (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n values declared in LKAL and enforced by kisage preflight, the tracked Plecto key and signed artifact, Kratos localhost defaults with a registration hook allowlist and deduplicated origins, the Vulkan overlay, the news-creator Hugging Face cache volume, and INOREADER_SYNC for auth-token-manager (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…fering production values in deploy/desired-env.lkal, track the Plecto public key and signed artifact, default Kratos to localhost with an allowlisted registration hook, add the Vulkan llama-server overlay and the news-creator Hugging Face cache volume, and pass INOREADER_SYNC to auth-token-manager (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ompose executor instead of a second os/exec runner, drop suppressions gosec does not need, and name file modes in the new tests (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ion when .env does not set it, log the registration mode at startup, and let altctl init --open-registration open it for the quickstart (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ration mode at startup, and have the quickstart open registration through altctl init --open-registration instead of a compose default (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…for host_paths keys, and require the deploy env check to reject a production .env that omits a host_paths key (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…aults must still equal the declaration, add required_env_overrides to the deploy env check, and run that check in the local deploy path (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ths-only override class, the required_env_overrides deploy check, and the measured reranker re-download Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s, 0644 host files inside a 0750 secrets directory and 0400 inside step-ca, instead of the 0600 that nonroot containers could not read (ADR-001070) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A fresh clone on a clean host now starts with one command:
./quickstart.sh --gpu cuda|vulkan(ADR-001070).quickstart.sh. It builds altctl in a pinned Go container, so the host needs neither Go nor sudo. The one exception is a single AppArmor step on hosts where AppArmor is enabled.--timeoutnow bounds only the Ready-wait, so image pull and build are never killed mid-run.initgenerates the VAPID key pair, creates.alt-data/with the owner each container expects, records--gpu, and gains--open-registration.ALT_INFERENCE_GPU=vulkanadds the Vulkan overlay.VAPID_SUBJECTdefault now passes the notifier's validation.deploy/desired-env.lkalunder the newhost_pathssection.show_verification_uihook. The quickstart opens registration explicitly withaltctl init --open-registration, and the entrypoint logs the registration mode at startup.host_paths; every other section still failsverifywithcompose-default-mismatch.required_env_overridesrule makescheck-env-overrides.pyreject a production.envthat lacks anyhost_pathskey.deploy-local.shnow runs that check too.db/initnow creates thetag_generatorrole.INOREADER_SYNC=disabled; an unset value now fails at startup./health/deepreturns 503 until startup completes.Before merging
The production
.envmust contain the fivehost_pathskeys (*_HOST_PATH). Apply them with kisage, followingdocs/runbooks/kisage-env.mdwith/host_pathsin scope. Then check the result:python3 scripts/kisage-env.py preflight --env-file <prod .env>andpython3 scripts/check-env-overrides.py --env-file <prod .env>must both pass. Without these keys, every deploy stops at the host env check.On the first deploy after merging, news-creator downloads the reranker model again into the new volume. This took about 6 minutes when measured.
Test plan
./scripts/lint/run.sh <target>)pytestand lint./scripts/lint/run.sh repo,scripts,composepython3 scripts/kisage-env.py verify,test-kisage-env.py,test-check-env-overrides.py,test-group1-security.py,test-quickstart-entry.py,test-compose-prod-env-wiring.py,test-compose-file-bind-audit.py, role-parity, PKI, seed-reranker./quickstart.shon a host reset to a clean state🤖 Generated with Claude Code