fix(deploy): wire the Robokassa direct rail into the prod deploy + rollback #236
Reference in New Issue
Block a user
Delete Branch "fix/prod-robokassa-wiring"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Robokassa credentials reached only the test contour (ci.yaml → TEST_ secrets). The prod-deploy / prod-rollback workflows and
write-prod-env.shnever renderedBACKEND_ROBOKASSA_*, so on prod the shop login was empty and the direct RUB rail stayed off — thePROD_BACKEND_ROBOKASSA_*secrets went nowhere.Wires the shop login + Password1/Password2 (secrets) and a
BACKEND_ROBOKASSA_TESTflag (a variable — go-live is a flag flip, not a secret rotation) from both prod workflows, and emits the fourROBOKASSA_*vars fromwrite-prod-env.sh(shared by deploy + rollback, so a rollback keeps the rail up). Compose already mapsROBOKASSA_* → BACKEND_ROBOKASSA_*.Docs:
deploy/README.md+.env.example. Password3 (Robokassa's JWT-invoice API) is unused.Owner action: set the Gitea variable
PROD_BACKEND_ROBOKASSA_TEST=1for the initial test-payment phase (empty/0 = live). SecretsPROD_BACKEND_ROBOKASSA_{MERCHANT_LOGIN,PASSWORD1,PASSWORD2}already set.