docs(readme): GitHub source, Compose with Postgres, /healthz, backups and upgrades #41

Manually merged
jfro merged 3 commits from docs/19-readme into main 2026-11-01 21:29:16 +00:00
Owner

Closes #19

README gaps from the pre-1.0 audit, plus what the other 1.0 nice-to-haves added:

  • GitHub source section: token permissions, repos (owner/*), GHES URL, what it reports, diagnosis context
  • Docker Compose with PostgreSQL (postgres:18, pg_isready healthcheck, depends_on: service_healthy, pinned :1 tag)
  • /healthz and the Docker HEALTHCHECK (#17): response shape, 503 on DB failure, no auth/no logging
  • Backups and upgrades: pg_dump/pg_restore --clean, keep SECRET_KEY_BASE with the backup, upgrade steps, migrations are forward-only so roll back by restoring
  • Poll logging (#16): what's logged and when
  • Local dev: Postgres prerequisite, DATABASE_HOST (#22), mix precommit; a one-paragraph intro in place of the Phoenix boilerplate
  • Dropped the Phoenix "Learn more" section

TRUST_X_FORWARDED_FOR (#21) was already in the Environment table.

Checked: proofs/pr19/compose_check.sh pulls the YAML block out of this README, swaps in a local build of this branch, and runs it: the container goes healthy, /healthz returns {"status":"ok","checks":{"database":"ok"}} 200, and the README's pg_dump + pg_restore --clean round-trip works (12 migrations present after restore).

Note: an anonymous docker pull works. The bare 401 seen earlier is only the registry's Bearer challenge; an anonymous token then gets the manifest (Nye, C63). No docker login needed.

Closes #19 README gaps from the pre-1.0 audit, plus what the other 1.0 nice-to-haves added: - **GitHub source** section: token permissions, repos (`owner/*`), GHES URL, what it reports, diagnosis context - **Docker Compose with PostgreSQL** (postgres:18, `pg_isready` healthcheck, `depends_on: service_healthy`, pinned `:1` tag) - **`/healthz` and the Docker HEALTHCHECK** (#17): response shape, 503 on DB failure, no auth/no logging - **Backups and upgrades**: `pg_dump`/`pg_restore --clean`, keep `SECRET_KEY_BASE` with the backup, upgrade steps, migrations are forward-only so roll back by restoring - **Poll logging** (#16): what's logged and when - **Local dev**: Postgres prerequisite, `DATABASE_HOST` (#22), `mix precommit`; a one-paragraph intro in place of the Phoenix boilerplate - Dropped the Phoenix "Learn more" section `TRUST_X_FORWARDED_FOR` (#21) was already in the Environment table. **Checked:** `proofs/pr19/compose_check.sh` pulls the YAML block out of this README, swaps in a local build of this branch, and runs it: the container goes `healthy`, `/healthz` returns `{"status":"ok","checks":{"database":"ok"}}` 200, and the README's `pg_dump` + `pg_restore --clean` round-trip works (12 migrations present after restore). Note: an anonymous `docker pull` works. The bare 401 seen earlier is only the registry's Bearer challenge; an anonymous token then gets the manifest (Nye, C63). No `docker login` needed.
docs(readme): GitHub source, Compose with Postgres, /healthz, backups and upgrades
All checks were successful
CI / test (pull_request) Successful in 27s
bd12fc2cb2
Document the GitHub source, a docker compose example with PostgreSQL,
/healthz and the Docker HEALTHCHECK, poll logging, DATABASE_HOST for local
development, and how to back up, restore and upgrade. Drop the Phoenix
"Learn more" boilerplate.

Closes #19
docs(readme): clarify fork skipping and optional Checks permission
All checks were successful
CI / test (pull_request) Successful in 26s
33779e16b5
Author
Owner

Review of PR #41 (#19 README) at bd12fc2 — Nye

Checked every new claim against the code; no blocking findings.

Verified:

  • /healthz: body shape, 503 + "error" with reason only in the log, plug runs before RequestId/Telemetry/session/router (no login, not logged); Dockerfile HEALTHCHECK --interval=30s via bin/healthcheck.
  • Poll logging matches poller.ex: warning on first failure or a different message (id, type, name, HTTP status, duration), debug while unchanged, info on recovery with poll count and seconds.
  • GitHub section matches github.ex settings fields and setup guide (permissions, owner/*, Enterprise /api/v3, severity default medium, 14 days).
  • DATABASE_HOST read by dev.exs and test; RUN_MIGRATIONS / bin/migrate match rel/overlays/bin/server; release workflow tags {{major}}, so :1 exists once 1.0.0 ships.
  • postgres:18 volume at /var/lib/postgresql is right (image PGDATA=/var/lib/postgresql/18/docker, VOLUME /var/lib/postgresql).
  • C64: the README's pg_dump command run from a terminal against the README's own Compose db round-trips through pg_restore (200/200 rows).
  • C63: anonymous pulls work. The bare 401 is the registry's Bearer challenge; an anonymous token gets the manifest (200). No need to say the package must be public.
  • CI green, merges cleanly into main d8a7623.

Nits (optional, not blocking):

  1. "archived repositories and forks are skipped" — the code (and the field help) skips forks only when matched by owner/; an explicitly listed fork is watched. Suggest: "archived repositories, and forks matched by owner/, are skipped".
  2. "A token missing a permission fails the poll" — not for Checks: failed job details are optional (failed_jobs uses optional: true). Could say Checks is only used for failed-job details.
  3. The Compose example pins :1, which only exists after 1.0.0 is released — fine as long as this merges for the 1.0.0 release.
Review of PR #41 (#19 README) at bd12fc2 — Nye Checked every new claim against the code; no blocking findings. Verified: - /healthz: body shape, 503 + "error" with reason only in the log, plug runs before RequestId/Telemetry/session/router (no login, not logged); Dockerfile HEALTHCHECK --interval=30s via bin/healthcheck. - Poll logging matches poller.ex: warning on first failure or a different message (id, type, name, HTTP status, duration), debug while unchanged, info on recovery with poll count and seconds. - GitHub section matches github.ex settings fields and setup guide (permissions, owner/*, Enterprise /api/v3, severity default medium, 14 days). - DATABASE_HOST read by dev.exs and test; RUN_MIGRATIONS / bin/migrate match rel/overlays/bin/server; release workflow tags {{major}}, so :1 exists once 1.0.0 ships. - postgres:18 volume at /var/lib/postgresql is right (image PGDATA=/var/lib/postgresql/18/docker, VOLUME /var/lib/postgresql). - C64: the README's pg_dump command run from a terminal against the README's own Compose db round-trips through pg_restore (200/200 rows). - C63: anonymous pulls work. The bare 401 is the registry's Bearer challenge; an anonymous token gets the manifest (200). No need to say the package must be public. - CI green, merges cleanly into main d8a7623. Nits (optional, not blocking): 1. "archived repositories and forks are skipped" — the code (and the field help) skips forks only when matched by owner/*; an explicitly listed fork is watched. Suggest: "archived repositories, and forks matched by owner/*, are skipped". 2. "A token missing a permission fails the poll" — not for Checks: failed job details are optional (failed_jobs uses optional: true). Could say Checks is only used for failed-job details. 3. The Compose example pins :1, which only exists after 1.0.0 is released — fine as long as this merges for the 1.0.0 release.
Author
Owner

Applied nits 1 and 2 in 33779e1: forks are only skipped when matched by owner/*, and Checks is noted as only used for failed-job details. Nit 3: :1 exists once 1.0.0 ships, which this lands ahead of.

Applied nits 1 and 2 in 33779e1: forks are only skipped when matched by `owner/*`, and Checks is noted as only used for failed-job details. Nit 3: :1 exists once 1.0.0 ships, which this lands ahead of.
docs(readme): archived GitHub repos are always skipped
All checks were successful
CI / test (pull_request) Successful in 26s
87efe64aaa
jfro manually merged commit ad9fb074aa into main 2026-11-01 21:29:16 +00:00
Sign in to join this conversation.
No description provided.