The deploy of #10 failed at the Rauthy providers step with
"./rauthy-providers.sh: No such file or directory": the job wrote env
files and ran the host script, but never had the repo itself.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Under the pay profile: kron.env from the Medlemskap sales unit's keys,
PAY_URL for portal once the profile is on, betaling.tomtervel.no in DNS
and kasse's Caddy, and vipps-webhook.sh for the one-time webhook
registration whose secret must never reach a public log.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
A board member with a password account who presses Vipps was refused
and told to link it from the account page. Vipps verifies the email,
which is the same address the invite trusted, so the link is made on
the spot instead.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Rauthy has no file for its upstream providers, only its API, so
rauthy-providers.sh is the file: every deploy makes Vipps the first time
and updates it after, by name, from VIPPS_LOGIN_CLIENT_ID and
VIPPS_LOGIN_CLIENT_SECRET (the login sales unit's keys). Scopes openid
name email phoneNumber, PKCE, an account made on the first sign-in. The
redirect URI https://konto.tomtervel.no/auth/v1/providers/callback must
be registered on the sales unit in the Vipps portal. The portal API key
needs AuthProviders read, create and update for this.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Compose reads an env_file the way it reads compose.yml: "$name" in a value
is a variable to fill in, and one that is not set comes out empty.
Rauthy's API keys are "<name>$<secret>", so RAUTHY_API_KEY reached portal
as "portal" alone: Rauthy answered 401 to every call, and every invite
failed with "the account could not be made just now". The env files'
values are the secrets themselves, so every "$" left in them is literal
and becomes compose's "$$". Checked with compose 5.7.0 (kasse's): the
container gets "portal$Abc123secret" from "portal$$Abc123secret".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pacman -Sy then installing curl or gdo is a partial upgrade: with openssl
4.1.0 in the repos (November 2026) it pulls the new libssl while the base
image's own pacman, libarchive and cryptsetup still want libcrypto.so=3,
and refuses. The portal 0.18.2 deploy failed on it. -Syu moves the whole
image to what the repos have, which the builder is too.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The content repo now runs one preview per branch, for five days after its
last push, behind its own router on 127.0.0.1:3066
(tomtervel/questions, .gitea/preview/). This is kasse's side of it:
- dns: *.forhandsvisning beside the bare name, both unproxied to kasse.
- host-caddy: the bare name and *.forhandsvisning go to 3066 instead of
the single preview on 3065. A branch's name gets its certificate on
demand, and only after the router says the branch has a preview, so
made-up names cannot use up Let's Encrypt's limits. That needs the
on_demand_tls ask option in kasse's global Caddyfile, described in the
file. Also brings the file back in line with what kasse runs.
- README: the Previews section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kanidm ut av stacken, bootstrap.sh, kanidm-setup.sh og kanidm/ borte.
Rauthy er en vanlig tjeneste, ikke en profil, og deployen krever dens
verdier i stedet for ID_HOST og KANIDM_API_TOKEN. Portalen får ingen
KANIDM_* lenger, så kontoene lages i Rauthy. id.tomtervel.no sender
videre til konto. Volumet kanidm_data blir liggende på kasse urørt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
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
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
dns.yml runs DNSControl on kasse's host runner with the repo secret
CLOUDFLARE_API_TOKEN: check and preview on any push touching dns/,
push only from Run workflow on main, so a merge is never the cutover.
Push events only; the repo is public.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
.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
dns/dnsconfig.js is the whole zone for Cloudflare: the site, id and
chat pointing at kasse unproxied, Zoho's MX, SPF for Zoho and kasse,
DMARC reporting, and kasse's DKIM key once it is made.
kasse-dkim-tomtervel.sh makes that key in kasse's rspamd beside the
other domains'. dns/README.md has the token, the first-push check
against the live zone, and the order of the move.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L5fbDmSQSb6u27EiEuwzoM
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
compose.yml and portal/Dockerfile on kasse have carried uncommitted
edits since 2026-10-26: the learn cache, Ollama, and SITE_NAME: tomtervel.
A deploy runs git reset --hard, which would take them away. SITE_NAME
would then fall back to "Tomter Vel", the namespace tomter-vel, and from
portal 0.9 the site would come up empty under it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015TMMKWhj4225cSbXKhSz6e