Commit Graph

31 Commits

Author SHA1 Message Date
783c8cebbd feat(boundary): remove OS-hardening overlap; add k3s baseline workplan
Per ADR-002 (railiance-hosts/docs/adr/ADR-002-repo-boundary-hosts-vs-bootstrap.md):
- ansible/harden.yml: replaced with tombstone pointing to railiance-hosts
- ansible/bootstrap.yml: remove `import_playbook: harden.yml`; add
  pre-condition comment; OS hardening is no longer this repo's concern
- docs/first_host.md: rewritten to reflect 3-step flow:
  converge railiance-hosts → railiance-bootstrap k3s install → smoke test
- workplans/RAIL-BS-WP-0002-k3s-baseline.md: new workplan for k3s +
  Helm + Kubernetes platform baseline; linked to repo goal 70ab2379

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-09 19:53:22 +01:00
1d759508ac Workplan belonged to railiance-hosts
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2026-03-08 23:30:12 +01:00
19661ca0c6 feat(bootstrap): add HostEurope hardening playbook and workplan
Some checks failed
railiance-tests / smoke (push) Has been cancelled
- workplans/RAIL-BS-WP-0002-hosteurope-bootstrap.md: new workplan for
  Secure Single-Server Bootstrap at HostEurope (repo goal d7092599).
  T01-T03 done; T04+T05 require ansible on a box with network access to
  92.205.62.239 (hosts.ini is gitignored — recreate on new box).

- ansible/harden.yml: new playbook — disables root/password SSH auth,
  enables UFW (allow 22/tcp 6443/tcp 8472/udp, deny-all default),
  installs fail2ban with SSH jail, sets HISTCONTROL=ignorespace.

- ansible/bootstrap.yml: import_playbook harden.yml runs before k3s.

- ansible/hosts.ini.example: add [hosteurope] group template.

- QUICKSTART.md: document two-stage bootstrap (harden → k3s).

- CLAUDE.md: add goal_guidance handling to session protocol
  (needs_workplan + alignment_warnings).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-08 22:50:51 +01:00
d83bc1049f added dependency workplan
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2026-03-04 19:40:32 +01:00
c60f678756 docs(workplan): mark RAIL-BS-WP-0001 completed
Some checks failed
railiance-tests / smoke (push) Has been cancelled
All four tasks done; SBOM ingested 13 packages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 20:23:05 +01:00
f7b8cdb4c1 feat(deps): add pyproject.toml, uv.lock, and ansible/requirements.yml
Declares ansible>=10 as the only pip dependency for the control node.
Generates uv.lock pinning ansible 12.3.0 / ansible-core 2.19.7 and
the full transitive tree (13 packages). Adds explicit empty
ansible/requirements.yml confirming no Galaxy collections are used.

Closes RAIL-BS-WP-0001 T01–T04. Enables SBOM ingestion.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 20:22:26 +01:00
9fe5348af3 fix(CLAUDE.md): use reliable workplan discovery in step 2
Glob with pattern 'workplans/*.md' from repo root fails silently
(tool limitation with subdirectory prefixes in patterns). Changed to
Glob(pattern="**/*.md", path="workplans/") which does find files,
with Bash ls as fallback. This fixes step 2 of the session protocol
silently producing no workplan results.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 20:13:29 +01:00
1aa5e436ae fix(CLAUDE.md): rewrite session protocol to surface custodian tasks on open
Previous CLAUDE.md only had a First Session Protocol. When workstreams already
existed, the session would call get_state_summary() and produce no useful output.

New 3-step protocol:
- Step 1: get_state_summary() + get_next_steps() via state-hub MCP tools
- Step 2: scan workplans/*.md for active tasks
- Step 3: output orientation brief: active workstreams, pending repo tasks
  (from workplans/ + [repo:railiance-bootstrap] state hub tasks), suggested
  next action, SBOM status (currently null — gap noted)

Also adds Known Pending Tasks table for RAIL-BS-WP-0001 (dep management)
and strengthens ADR-001 workplan convention and contribution tracking sections.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 20:05:22 +01:00
44428655d2 feat(sbom): add workplan RAIL-BS-WP-0001 — fix Ansible dep management
Some checks failed
railiance-tests / smoke (push) Has been cancelled
State Hub SBOM assessment identified a gap: no lockfile exists for the
Ansible control-node pip dependencies, making the repo unrepresentable
in the SBOM inventory.

4-task workplan to reach SBOM Level 3 (Ingested):
- T01: audit control-node pip deps
- T02: create pyproject.toml + uv.lock for ansible (+ transitive tree)
- T03: ingest into State Hub
- T04: create ansible/requirements.yml (even if empty, to be explicit)

State Hub task: 5f8cade5-119c-42e8-ba93-e9d0478650e4
Workstream: phase-0-operational-baseline (59155efb)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-01 19:29:20 +01:00
76ae1351ce fix: correct pg_stat_user_tables column name in restore drill (relname not tablename)
Some checks failed
railiance-tests / smoke (push) Has been cancelled
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-26 07:25:59 +01:00
ab5b12334d docs: backup and restore runbook
Some checks failed
railiance-tests / smoke (push) Has been cancelled
Covers encryption (age key management), what is protected, backup
command, daily cron, preflight checks, full step-by-step restore
procedure, restore drill instructions, and two extension points
(EP-RAIL-003 git mirrors, EP-RAIL-004 offsite secondary copy).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-26 00:08:14 +01:00
4381a079a2 feat: backup + preflight commands, decisions log, gitignore update
- tools/cmd/railiance-backup: pg_dump + config snapshot, age-encrypted,
  uploaded to Nextcloud file drop via curl PUT. Daily cron target.
- tools/cmd/railiance-preflight: pre-migration safety gate — checks backup
  freshness, all repos clean/pushed, age key present.
- bin/railiance: added backup and preflight subcommands.
- DECISIONS.md: decision log (D1 ingress Nginx+Traefik, D2 Nextcloud backup).
- .gitignore: exclude *backup-dropoff-link* files (contain upload tokens).
- CLAUDE.md: state hub session protocol update.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 23:59:28 +01:00
eb8a6902b6 docs: add ThreePhoenix architecture concept and workplan
RailianceThreePhoenix: 3-node HA Kubernetes cluster with embedded etcd,
Longhorn distributed storage, PostgreSQL HA (repmgr + Pgpool-II), and
Phoenix CronJob for weekly node rotation to prevent configuration drift.

ThreePhoenixWorkplan: 7-phase implementation plan from blank Ubuntu nodes
to self-healing Gitea cluster with monitoring and alert silencing.

Also adds CLAUDE.md with Custodian State Hub session protocol.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-25 01:13:05 +01:00
b7696e657f chore: another improvement
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 01:23:02 +00:00
6662e9a377 chore: improved quickstart
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 01:18:14 +00:00
53482f8e65 chore: improve quickstart instructions
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 00:57:17 +00:00
b1862d67f0 feat: added plan-host command
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 02:46:48 +02:00
7530468d80 refactor: separated command script
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 02:39:47 +02:00
0bfdf465c1 chore: improved quickstart for newbies
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 02:00:25 +02:00
96eccc6b67 feat: rails style bootkit bin/railiance with quickstart
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 01:32:19 +02:00
676ec32379 chore: remove outdated readme
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 00:15:44 +02:00
75d11583e4 feat(tools): directed panspermia inspired colonization scripts
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-13 00:11:18 +02:00
be750b005b chore: add MIT License
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 02:44:03 +02:00
038adef94a docs: update root README with quick start and structure
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 02:36:45 +02:00
15935b78aa docs: add Railiance overview README
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 02:31:24 +02:00
3f8dafe5c2 docs: add contributor guidelines
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 02:25:53 +02:00
c16baa36af chore: optimized .gitignore for Railiance infra repo
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 02:23:08 +02:00
b26b873c29 chore: .gitattributes updated for line ending normalization
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 02:21:05 +02:00
57d0442291 chore: optimize .editorconfig for consistent coding style
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 02:19:01 +02:00
59863b4214 tools: add repo creation script and helper README
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 02:11:37 +02:00
6b9307289b railiance: initial bootstrap scaffold
Some checks failed
railiance-tests / smoke (push) Has been cancelled
2025-09-12 01:46:14 +02:00