kron keeps an identity, and the Vipps keys may be given on the desk
A volume for kron's age identity (KRON_IDENTITY_FILE), KRON_LANG, and kron.env written with only the VIPPS_* the deploy holds: none, and kron asks for them through portal, sealed to that identity. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
3 files changed
+37
-16
No files matched your search
@@ -126,7 +126,7 @@ Run workflow**. Set them with `gt` (`gt variable set NAME --body ...`,
|
||||
| `VIPPS_LOGIN_CLIENT_ID`, `VIPPS_LOGIN_CLIENT_SECRET` | variable, secret | repo | Vipps Login (the login sales unit's keys from portal.vippsmobilepay.no): the deploy keeps Vipps as a sign-in provider in Rauthy with them (`rauthy-providers.sh`) |
|
||||
| `PAY_HOST` | variable | repo | where the money service answers: `betaling.tomtervel.no` (DNS in `dns/`, a kasse Caddy block) |
|
||||
| `VIPPS_MSN` | variable | repo | the Medlemskap sales unit's merchant serial number, `1192072` |
|
||||
| `VIPPS_CLIENT_ID`, `VIPPS_CLIENT_SECRET`, `VIPPS_SUBSCRIPTION_KEY` | secret | repo | the Medlemskap sales unit's ePayment keys (For developers, API keys, production), read by kron alone |
|
||||
| `VIPPS_CLIENT_ID`, `VIPPS_CLIENT_SECRET`, `VIPPS_SUBSCRIPTION_KEY` | secret | repo | optional: the Medlemskap sales unit's ePayment keys (For developers, API keys, production), read by kron alone. Unset (with `VIPPS_MSN` unset too), kron asks for them on the treasurer's desk instead |
|
||||
| `VIPPS_WEBHOOK_SECRET` | secret | repo | what Vipps signs its webhooks with, from `vipps-webhook.sh register`; unset, kron refuses webhooks and asks Vipps about each open payment every minute instead |
|
||||
|
||||
A variable is printed wherever a workflow echoes it, and this repo's run
|
||||
@@ -157,15 +157,24 @@ the Medlemskap sales unit and sends the person into Vipps, and a fresh
|
||||
one each time the last ran out (Vipps's own expire after ten minutes).
|
||||
Once they have paid, kron captures the reserved amount and says `paid`
|
||||
on the bus; portal moves the household to `betalt`, grants `medlemmer`,
|
||||
and mails them. Vipps's keys live in `kron.env` and nowhere else; portal
|
||||
never calls Vipps. `PAY_URL` in `portal.env` is what lets the content
|
||||
and mails them. Vipps's keys live in `kron.env`, or, from kron 0.2, are
|
||||
given once on the treasurer's desk: started without them, kron asks on
|
||||
the bus and portal shows the ask under "Tjenester som venter" to the
|
||||
`kasserer` group (a passkey sign-in); the secret fields are sealed to
|
||||
kron's own identity (`kron_data` volume, `KRON_IDENTITY_FILE`) before
|
||||
anything else sees them, kron tries them against Vipps and keeps them
|
||||
sealed in its own bucket. Portal never holds a value and never calls
|
||||
Vipps. The identity volume is never copied or backed up with the data:
|
||||
a lost host means giving the keys again, which is a form. `PAY_URL` in `portal.env` is what lets the content
|
||||
leave `by_hand: true` out of a `payment:`; portal never calls that
|
||||
address either.
|
||||
|
||||
Going live, in order:
|
||||
|
||||
1. Set `PAY_HOST`, `VIPPS_MSN` and the three key secrets (table above).
|
||||
The keys are in `pass` as `tomtervel/vipps/medlemskap`. The host
|
||||
1. Set `PAY_HOST`. The keys: either `VIPPS_MSN` and the three key
|
||||
secrets (table above; in `pass` as `tomtervel/vipps/medlemskap`), or
|
||||
none of them, and the treasurer gives them on their desk once kron
|
||||
is up (step 3). The host
|
||||
script must know `kron.env` (this repo's `deploy-tomtervel`, optional
|
||||
files): on kasse, `sudo install -m 0755 -o root -g root
|
||||
/srv/tomtervel/infrastructure/deploy-tomtervel /usr/local/bin/deploy-tomtervel`
|
||||
|
||||
Reference in new issue
Block a user