feat: ephemeral payment staging host #546
Inga granskare
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra!546
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/payment-staging"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Adds an ephemeral staging host for testing the full payment flow in the payment provider's test mode, following ADR 0030's target shape. The ADR amendment is a separate bitborg-docs PR.
Changes
prodgroup.group_vars/all/vault.ymlmoves togroup_vars/prod/vault.yml. Both prod hosts join a newprodgroup ininventory/hosts.yml. The staging inventory has no such group, so a staging host can only load secrets from its owngroup_vars/staging/vault.yml. Readers of the old path are repointed (package.json,scripts/tofu-state-passphrase.sh,scripts/signup-drill.sh, runbook).bitborg_envguard.site.ymlassertsbitborg_envisprodorstagingbefore any role runs. Eight prod-only roles (backup, backup-drill, token-audit, registry-mirror, registry-retention, renovate, runner-controller, monitoring-agent) run only on prod.inventory/staging.yml,group_vars/staging/vars.yml:*.stg.bitborg.senames, no legacy redirect vhosts, no backup or LFS volume, mailer off, billing and payments on.opentofu/staging.tofu. One VM onstaging_count(default 0), with its own network, router and security group. The floating IP and a data volume sit outside the count, so DNS, certificates and state survive a rebuild.Verification
ansible-playbook site.yml --check --diffafter each Ansible commit: thechangedtask list is identical to the pre-change baseline,failed=0. The twochangedtasks are an already pending monitoring-agent update.--check --tags webafter the registry-pin change:changed=0, the pin task stillok.bitborg_envfails at the guard.bitborg-staging(checked with a positive control onbitborg-prod).tofu plan: only*staging*addresses. 16 to add withstaging_count=0, 19 with=1. Nothing changed or destroyed.tofu validate,tofu fmt -check, markdownlint and prettier pass.Not proven until the first bring-up: that a fresh staging host converges.
Merge notes
tofu applyof any kind creates the always-on staging pieces (network, floating IP, data volume) at a small standing cost.staging_count = 1interraform.tfvars, or another apply would destroy the staging VM.