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
+14
-11
@@ -80,9 +80,11 @@ jobs:
|
||||
RAUTHY_API_KEY: ${{ secrets.RAUTHY_API_KEY }}
|
||||
RAUTHY_LANGUAGE: ${{ vars.RAUTHY_LANGUAGE }}
|
||||
# The money service (README.md, "Payments"): Vipps's keys for the
|
||||
# Medlemskap sales unit, read by kron alone. All five are needed
|
||||
# once COMPOSE_PROFILES has `pay`; VIPPS_WEBHOOK_SECRET may wait,
|
||||
# kron then settles by asking Vipps every minute instead.
|
||||
# Medlemskap sales unit, read by kron alone. Unset, kron starts
|
||||
# without them and asks for them on the treasurer's desk
|
||||
# ("Tjenester som venter"), sealed to its own identity; set, they
|
||||
# are kron's from the env. VIPPS_WEBHOOK_SECRET may wait, kron
|
||||
# then settles by asking Vipps every minute instead.
|
||||
VIPPS_MSN: ${{ vars.VIPPS_MSN }}
|
||||
VIPPS_CLIENT_ID: ${{ secrets.VIPPS_CLIENT_ID }}
|
||||
VIPPS_CLIENT_SECRET: ${{ secrets.VIPPS_CLIENT_SECRET }}
|
||||
@@ -175,15 +177,16 @@ jobs:
|
||||
OAUTH2_CLIENT_ID=$CHAT_OAUTH2_CLIENT_ID
|
||||
OAUTH2_CLIENT_SECRET=$CHAT_OAUTH2_CLIENT_SECRET
|
||||
EOF
|
||||
# kron: Vipps's keys for the Medlemskap sales unit. Written even
|
||||
# kron: Vipps's keys for the Medlemskap sales unit, when the
|
||||
# deploy holds them; none set, and kron asks for them through
|
||||
# portal (kron refuses some set and some not). Written even
|
||||
# without the profile, so the file compose names is there.
|
||||
cat > "$STAGE/kron.env" <<EOF
|
||||
VIPPS_MSN=$VIPPS_MSN
|
||||
VIPPS_CLIENT_ID=$VIPPS_CLIENT_ID
|
||||
VIPPS_CLIENT_SECRET=$VIPPS_CLIENT_SECRET
|
||||
VIPPS_SUBSCRIPTION_KEY=$VIPPS_SUBSCRIPTION_KEY
|
||||
WEBHOOK_SECRET=$VIPPS_WEBHOOK_SECRET
|
||||
EOF
|
||||
{
|
||||
echo "WEBHOOK_SECRET=$VIPPS_WEBHOOK_SECRET"
|
||||
for name in VIPPS_MSN VIPPS_CLIENT_ID VIPPS_CLIENT_SECRET VIPPS_SUBSCRIPTION_KEY; do
|
||||
if [ -n "${!name}" ]; then echo "$name=${!name}"; fi
|
||||
done
|
||||
} > "$STAGE/kron.env"
|
||||
# Rauthy's secrets. The first admin is the vel's first person.
|
||||
cat > "$STAGE/rauthy.env" <<EOF
|
||||
ENC_KEYS=$RAUTHY_ENC_KEY
|
||||
|
||||
Reference in new issue
Block a user