Skip to content

preview: reinstall the preview with the released installer at 0.2.0 #124

Closed

Description

@TusanHomichi

Existing issue check

  • I searched open and closed issues. None tracks the preview's version or layout.

Problem or outcome

consolebook-preview.conary.io runs a build from 2026-09-01, before 0.1.0 (/api/health reports "version":"0.0.0"). It uses a hand-made layout: consolebook-preview.service, /srv/consolebook-preview, and its own service account. So the preview shows none of 0.1.0/0.2.0, and it never exercises the installer, systemd unit, upgrade path, or backup copies that agencies get. docs/preview.md describes that old layout, and it says the app does not set Secure cookies, which is out of date since ADR 0025.

Outcome

The preview is a stock installation made by the released installer:

  • v0.2.0, installed from the release tarball whose attestation was verified on install: pin the one-line installer to a release and decide on archive signing #95;
  • --public-url https://consolebook-preview.conary.io, so the app sets Secure itself;
  • a backup copy directory on a different filesystem from the data directory (/data vs /), so ADR 0024 copies run on a real systemd host;
  • listening on 127.0.0.1:7770, so nginx (TLS, Basic Auth, headers) is unchanged.

The old install is removed: its service, executable, data, and account. The maintainer confirmed no one was using it and that it need not be kept. docs/preview.md describes the new layout and how to upgrade it.

Acceptance criteria

  • systemctl status consolebook is active. /api/health reports 0.2.0 and database ok. The public HTTPS address answers 401 with the Basic Auth challenge.
  • Read-only doctor --backup-copy-dir reports healthy once the first copy exists.
  • The old unit, /srv/consolebook-preview, and the consolebook-preview account are gone.
  • A runbook PR describes the installer layout. The setup code never appears in an issue, PR, or log excerpt.

Execution record

  • Authority: the maintainer, 2026-10-15, in a local session on remi. They chose "Reinstall via installer" for the preview, and added: "you don't need to keep the old install. no one was using it." Deployment authority covers the preview host only. No owner effort budget.
  • Next action: stop and disable consolebook-preview.service, then run the installer.

Activity

  1. TusanHomichi commented on Oct 15, 2026

    @TusanHomichi
    MemberAuthor

    Reinstalled on 2026-10-15. The integrator ran it on remi.

    • Inputs: install.sh (sha256 68730e83…) and consolebook-linux-x86_64.tar.gz (sha256 fcee4901…), the v0.2.0 release assets whose attestations were verified on install: pin the one-line installer to a release and decide on archive signing #95. Both were re-checked by hash before running.
    • Command: sudo sh install.sh --from consolebook-linux-x86_64.tar.gz --public-url https://consolebook-preview.conary.io --backup-dir /data/consolebook-backup-copies. The installer exited 0 and printed "Installed consolebook 0.2.0 (e4fc1d3)". Its output, including the setup code, is kept root-only on the host and is not reproduced here.
    • Layout:
      • executable /usr/local/bin/consolebook (sha256 790f0428…)
      • data /var/lib/consolebook on / (ext4)
      • copies /data/consolebook-backup-copies on a separate xfs filesystem
      • settings /etc/consolebook/consolebook.env
      • unit consolebook.service plus consolebook.service.d/paths.conf
      • listener 127.0.0.1:7770, so nginx is unchanged

    Verification:

    • systemctl is-active consolebook reports active; is-enabled reports enabled.
    • /api/health returns {"status":"ok","version":"0.2.0","commit":"e4fc1d397259","database":"ok"}.
    • https://consolebook-preview.conary.io/ returns 401 with the Basic Auth challenge.
    • The journal shows "session cookies are marked Secure public_url=https://consolebook-preview.conary.io". The first automatic backup was validated, then "copied off the server and verified" (sha256 5857a471…).
    • doctor --backup-copy-dir /data/consolebook-backup-copies (read-only) exited 0. Every line is ok, including "migrations 16 applied, up to date", "integrity ok", and "backup copy current". The one exception is warn initialization not initialized, which is expected until first-run setup is finished.

    Old install removed (the maintainer confirmed it was unused). consolebook-preview.service was disabled, then its unit file deleted and systemd reloaded. /srv/consolebook-preview (executable, data, backups) and the consolebook-preview account are gone.

    Found: the installer's unit is less hardened than the old hand-made one (systemd-analyze security 6.8 vs 4.0), filed as #125.

    Remaining: the maintainer finishes first-run setup in the browser (agency name, first administrator), then signs in once through the public address. Separately, a runbook PR describes this layout in docs/preview.md.

  2. TusanHomichi commented on Oct 15, 2026

    @TusanHomichi
    MemberAuthor

    Authority update (2026-10-15): the maintainer granted standing permission to manage PRs end to end: "you have standing permission to manage PRs end to end and that includes merging and cleaning up old branches". The integrator merges once required checks are green on the current head and every review thread is resolved (squash only; no admin bypass of a failing check), then verifies the merged revision and removes the branch and worktree. Deployments and releases are not covered.

  3. TusanHomichi commented on Oct 15, 2026

    @TusanHomichi
    MemberAuthor

    Merged in #127 as 6042decccf0a65dd8084cbee1ce58751cbc27b44 (squash, single parent e4fc1d3). Its tree a1f0f306 is identical to the candidate d79c48b the local proof ran on (7/7 gates, 61/61 browser tests, receipt sha256 b8309eab…). Hosted: fmt-clippy-test, build-x86_64, build-aarch64, and CodeQL (4 languages) passed. Codex review completed with no findings. Branch and worktree removed. Authority: the maintainer's standing PR permission (2026-10-15).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions