generated from coulomb/repo-seed
Align naming with coulomb.social reuse-surface conventions
Some checks failed
ci / validate-registry (push) Has been cancelled
Some checks failed
ci / validate-registry (push) Has been cancelled
Use reuse.coulomb.social, REUSE_SURFACE_URL/TOKEN env vars, reuse-surface image and reuse-surface-env secret. Replace reuse-surface-hub entrypoint with reuse-surface serve; CLI uses --base-url.
This commit is contained in:
@@ -44,7 +44,7 @@ for discovery without cloning every repo.
|
||||
| Operations | Container image, deployment manifests, TLS ingress, documented runbook |
|
||||
| Dogfood | `reuse-surface` and at least one sibling repo registered via the hub |
|
||||
|
||||
**Proposed public URL (confirm in T05):** `https://reuse-hub.whywhynot.de`
|
||||
**Public URL:** `https://reuse.coulomb.social`
|
||||
|
||||
## Design decisions (draft)
|
||||
|
||||
@@ -59,7 +59,7 @@ for discovery without cloning every repo.
|
||||
`url` sources (reuse WP-0010 fetch/cache logic) and merges into
|
||||
`GET /v1/federated` output. Local-only `index` paths are **not** valid hub
|
||||
registrations unless expressed as published raw URLs.
|
||||
- **Auth (MVP):** Token-based write access via `REUSE_SURFACE_HUB_TOKEN` /
|
||||
- **Auth (MVP):** Token-based write access via `REUSE_SURFACE_TOKEN` /
|
||||
`Authorization: Bearer`; read endpoints public for agent discovery.
|
||||
- **Persistence (MVP):** SQLite on a PVC inside the hub container. Postgres
|
||||
via cnpg is a follow-up if multi-replica or backup requirements emerge.
|
||||
@@ -100,7 +100,7 @@ plus hub metadata (`registered_at`, `updated_at`, `registered_by`).
|
||||
## CLI sketch (T03 refines)
|
||||
|
||||
```bash
|
||||
# Configure hub endpoint (env REUSE_SURFACE_HUB_URL or --hub-url)
|
||||
# Configure service URL (env REUSE_SURFACE_URL or --base-url)
|
||||
reuse-surface hub status
|
||||
reuse-surface hub list
|
||||
reuse-surface hub register --repo state-hub \
|
||||
@@ -167,8 +167,9 @@ state_hub_task_id: "38fec6ce-23c0-4157-8350-7d112b9e8264"
|
||||
Extend `reuse-surface` CLI with `hub` subcommands:
|
||||
|
||||
- `register`, `update`, `show`, `list`, `status`
|
||||
- `--hub-url` flag and `REUSE_SURFACE_HUB_URL` env support
|
||||
- `REUSE_SURFACE_HUB_TOKEN` for authenticated writes
|
||||
- `--base-url` flag and `REUSE_SURFACE_URL` env support
|
||||
- `REUSE_SURFACE_TOKEN` for authenticated writes
|
||||
- `reuse-surface serve` to run the API locally or in container
|
||||
- Document in `tools/README.md` and `AGENTS.md`
|
||||
|
||||
## Containerize And Publish Deployment Artifacts
|
||||
@@ -183,8 +184,8 @@ state_hub_task_id: "24eec9ad-21fc-4f0b-8671-72d955b15e68"
|
||||
Provide:
|
||||
|
||||
- `Dockerfile` for the hub service
|
||||
- Example k8s manifests or Helm values template under `deploy/` or `docs/deploy/`
|
||||
- Image naming convention: `gitea.coulomb.social/coulomb/reuse-surface-hub:<tag>`
|
||||
- Example k8s manifests or Helm values template under `docs/deploy/`
|
||||
- Image: `gitea.coulomb.social/coulomb/reuse-surface:<tag>`
|
||||
- CI job or documented build/push steps (coordinate with `railiance-forge`
|
||||
registry guidance)
|
||||
|
||||
@@ -199,10 +200,10 @@ state_hub_task_id: "7f26a70f-7b7d-413d-8162-931c6dffef6a"
|
||||
|
||||
Deploy the hub as a governed release on `railiance01`:
|
||||
|
||||
- Confirm hostname (default `reuse-hub.whywhynot.de`) and DNS A record
|
||||
- Confirm DNS for `reuse.coulomb.social` (coulomb.social zone)
|
||||
- Traefik ingress + cert-manager TLS
|
||||
- PVC for SQLite data
|
||||
- Inject hub write token via SOPS/sealed secret
|
||||
- Inject `REUSE_SURFACE_TOKEN` via Secret `reuse-surface-env` (SOPS handoff)
|
||||
- Verify `GET /health` and `GET /v1/federated` from workstation and from cluster
|
||||
|
||||
**Blocked on:** DNS decision, operator secret provisioning, and
|
||||
|
||||
Reference in New Issue
Block a user