fix(setup): make local platform setup repeatable #466
No reviewers
Labels
No labels
Compat/Breaking
Component/Enclave-Builder
Component/Infrastructure
Deploy/BYOC
Deploy/Full-managed
Deploy/Self-hosted
Interface/API
Interface/CLI
Interface/Git
Interface/Web
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
public/platform!466
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/bootstrap-first-install"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Narrowed to platform-local setup, configuration, and migration fixes. AWS resource provisioning and the legacy
infra-bootstrap/changes are no longer part of this PR.make setupto seed missing.env,prices.json, andconfig.jsonfiles with mode0600, preserve existing configuration and permissions, refresh the supplied systemd user units, and reload the user manager without enabling or starting services./var/cache/cautionin the environment example.POSTGRES_USER,POSTGRES_DB, andPOSTGRES_PASSWORD, preserving explicit nonempty migration/PGPASSWORD overrides.make test-setup, also included inmake test. Remove AWS/OpenTofu/Docker-bootstrap harness cases and their credential/plan fixtures.Fixes #452.
Scope boundary
infra-bootstrap/is unchanged from main: no provider/lockfile upgrade, native AWS-login handling, cloud plan/apply changes, or private-output changes remain. This PR no longer addresses #451. Moving/retiring the legacy bootstrap and changing the platform's AWS-bootstrap documentation belong to the infrastructure cutover, once the replacement is verified.Verification
make test-setup— all four tests passed.make test-cli-install— passed, including Makefile target/dry-run checks.bash -n scripts/setup-platform.shandsh -n utils/makefile-run-migrations.sh— passed.make -n setupandmake -n test— passed; setup and test wiring verified.git diff --cached --check— passed before commit.infra-bootstrap/tree, and byte-identical retained production scripts versus the original PR.The behavioral tests run the real scripts in temporary directories with stubbed Docker, systemctl, and psql commands. They do not prove a live installation, execute SQL against PostgreSQL, or start services. Full Rust/workspace and live platform/AWS E2E tests were not run for this shell/documentation-only narrowing.
Fix bootstrap execution and first-time platform setupto fix(setup): make local platform setup repeatable6e87dee51dto9a84b0a84f9a84b0a84fto5ae9711ffeMerged via CLI
Pull request closed