Commit Graph
7 Commits
Author SHA1 Message Date
blandClaude Opus 5.5 961d090b7d Rauthy as a compose profile: sign-in in Norwegian, off until asked for
dns / dns (push) Successful in 4s
A rauthy service under the profile of the same name, its config here
without secrets, and rauthy.env written by the deploy from Actions
secrets. OIDC_ISSUER moves portal's and the chat's sign-in to it,
RAUTHY_API_KEY lets portal make accounts there. konto.tomtervel.no in
DNS and kasse's Caddy, beside id. Nothing runs until RAUTHY_HOST, the
three secrets and the profile are set.

Tried locally: the config starts, the issuer is https://<host>/auth/v1/,
and a Norwegian browser gets the pages in nb.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
2026-11-07 22:33:46 +01:00
blandClaude Opus 5.5 3bcd2bc68c Every value in Gitea's Actions variables and secrets
dns / dns (push) Successful in 11s
The stack's settings are repo variables, its secrets repo secrets, and
NATS_PASSWORD an org secret the content repo can share. The deploy
workflow checks they are all set, writes .env, portal.env, nats.env and
chat.env into the runner's own directory, and the root script (now in
the repo as deploy-tomtervel) pulls main, puts them in place as root's
and brings the stack up. So nothing is edited on the host or committed:
a host name or a version is a variable changed and a Run workflow.

nats.conf reads NATS_PASSWORD from its environment, so it is committed
rather than rendered. bootstrap.sh only makes Kanidm's config and
certificate and recovers its admins; kanidm-setup.sh reads portal.env,
and leaves the two secrets it makes in kanidm-setup.secrets for gt.

The DNS workflow uses actions/checkout and actions/cache (the runner's
cache server) for dnscontrol, at the DNSCONTROL_VERSION variable.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
2026-11-07 16:44:51 +01:00
blandClaude Opus 5.5 a76e6321ee What the stack is, in git: .env committed, the secrets on the host
.env is what `podman compose` reads as is: the hosts, the versions and
where the content comes from, so moving to tomtervel.no or bumping portal
is a commit that the deploy workflow brings up. Nothing in it is secret.

The secrets stay on kasse in secrets.env (the old .env's NATS password,
OAuth2 secret and first person), and what the scripts render from it.
gdo and the chat get NATS_URL from nats.env instead of interpolating
the password, and portal takes its URLs and content settings from .env
over portal.env, so a new host name reaches it without re-running
bootstrap.sh. The deploy script on kasse is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
2026-11-07 16:29:55 +01:00
blandClaude Opus 5.5 213ef712c7 DNS: the token in dns/cloudflare.env, gitignored
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
2026-11-07 16:00:30 +01:00
blandClaude Fable 5.1 f307d72907 The vel's conversations, in the repo as they run on kasse
deploy / deploy (push) Successful in 6s
The chat service was added on the host by go-live.sh chat and never
pushed, so a deploy took it out of compose.yml. This is the service as
the host ran it, with chat.env ignored and the sign-in pages named after
SITE_TITLE.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015TMMKWhj4225cSbXKhSz6e
2026-11-03 07:57:35 +01:00
blandClaude Opus 5.5 b653536391 kanidm-setup, all the way: desk groups from the content, no prefix, onboarding that works, the first person, redaktør, and Gitea sign-in
The desk groups are read from the content's qualifies: and named as it
names them - this Kanidm is the vel's own - with the old tomtervel_*
groups renamed in place. The onboarding account manages every desk
group, since adding a member takes that right (measured: 404 without).
Sign-in scopes to idm_all_persons. SEED_ADMIN_EMAIL and
RESPONSIBLE_GROUP (redaktor) reach portal.env, and bootstrap no longer
drops the onboarding token when it rewrites portal.env. A second OAuth2
client lets redaktor sign in to prosjekt.klingenbergbygg.no; on the
Gitea host the script adds that sign-in source itself.

The login page's own name and logo need the admin account; the script
now says so rather than failing with 'Item not found'. .env.example
quotes SITE_NAME, which has a space and broke sourcing it.

Tested end to end against a local Kanidm 1.11.2, including a rerun and
a legacy tomtervel_kasserer with a member.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GT37Z1Xtfd9pUuQtMTg6Yt
2026-09-29 15:45:41 +02:00
blandClaude Fable 5.1 29f2b9daec Tomter Vel's own platform: Caddy, NATS, Kanidm and portal as containers
deploy / deploy (push) Canceled after 0s
One host, four containers, content fetched from tomtervel/questions.
bootstrap.sh renders configs from .env and recovers the Kanidm admin;
kanidm-setup.sh creates the portal client and the desk groups. An
optional runner profile lets the content repo's reload reach this host.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-22 19:06:31 +02:00