Restore staging payment and package management #1

Merged
root merged 49 commits from delivery/payment-package-epay into main 2026-07-30 10:05:54 +08:00
Owner

Staging-only delivery: restore payment/package APIs and add missing admin_runtime database grants and RLS policies.

Staging-only delivery: restore payment/package APIs and add missing admin_runtime database grants and RLS policies.
root added 49 commits 2026-07-30 10:05:16 +08:00
Build immutable API and web images in Aliyun ACR after staging validation, then deploy them safely to the staging host.
Match staging validation and deployment jobs to the runner label registered in Gitea.
fix: run staging automation on xiaoxin
Staging Backend Quality Gate / validate (push) Failing after 5m10s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
b6fecb01d7
Move validation and immutable ACR deployment to the online Linux runner and restore Bash-native deployment handling.
fix: remove GitHub action dependencies
Staging Backend Quality Gate / validate (push) Failing after 1s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
848e599333
fix: checkout from Gitea repository URL
Staging Backend Quality Gate / validate (push) Failing after 1s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
1f776bb99d
fix: export Gitea run context
Staging Backend Quality Gate / validate (push) Failing after 3m48s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
e1ae5feaf6
fix: use python3 on xiaoxin
Staging Backend Quality Gate / validate (push) Failing after 4m46s
Staging Backend Quality Gate / publish-and-deploy (push) Has been skipped
9dc115509e
feat: add configurable payments and Gitea staging delivery
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Failing after 5m10s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Has been skipped
1b8d6fcce6
Add database-backed administrators, configurable Alipay packages, idempotent payment settlement and platform reporting. Standardize Gitea workflows on the xiaoxin runner so reviewed staging commits are tested, packaged, and deployed by immutable image digest.
fix: isolate Gitea Python dependencies
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Successful in 20m16s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Failing after 5m23s
f711e77849
Run Python tooling in repository virtual environments so xiaoxin respects the PEP 668 system package boundary.
fix: avoid Docker Hub timeout in Gitea builds
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Failing after 9m1s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Has been skipped
7a36169f5d
fix: restore cross-platform quality gate
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / validate (push) Failing after 8m59s
Staging Backend Quality Gate (push the reviewed main SHA to staging to auto-deploy) / publish-and-deploy (push) Has been skipped
d94bc53e04
fix: simplify Gitea staging deployment
Deploy staging to test server / deploy (push) Failing after 5m2s
9837033e4b
fix: use reachable staging base images
Deploy staging to test server / deploy (push) Has been cancelled
31aa75f409
fix: accelerate staging Python installs
Deploy staging to test server / deploy (push) Has been cancelled
e1fb1777ec
fix: accelerate staging apt installs
Deploy staging to test server / deploy (push) Has been cancelled
d81713527b
fix: bound Gitea checkout latency
Deploy staging to test server / deploy (push) Failing after 7m40s
56f0ee089b
fix: close payment QR condition
Deploy staging to test server / deploy (push) Failing after 5m50s
8de49e60fd
fix: deploy into root-owned staging tree
Deploy staging to test server / deploy (push) Failing after 2m13s
859ff26510
fix: preserve staging compose images
Deploy staging to test server / deploy (push) Successful in 5m38s
a7ff511f55
Merge remote-tracking branch 'origin/main' into staging
Deploy staging to test server / deploy (push) Successful in 10m13s
f7fd3e6a60
# Conflicts:
#	docs/BUG_HISTORY.md
#	frontend/src/app/admin/codes/page.tsx
#	frontend/src/app/admin/layout.tsx
#	frontend/src/app/api/admin/codes/route.ts
#	frontend/src/app/api/admin/users/route.ts
#	frontend/src/lib/supabase/admin.ts
#	frontend/tests/staging-backend-workflows.test.ts
fix: expose staging admin entry
Deploy staging to test server / deploy (push) Successful in 3m11s
2dac8bc47b
Use persisted self-hosted roles and the isolated admin origin so authorized staging accounts can discover the protected admin surface.
ci: retry staging deployment
Deploy staging to test server / deploy (push) Successful in 2m7s
5b5f72d403
fix: unify staging admin access
Deploy staging to test server / deploy (push) Successful in 3m16s
248e1b8a07
ci: retry single-domain staging deploy
Deploy staging to test server / deploy (push) Has been cancelled
2f2b174822
ci: trigger recovered staging runner
Deploy staging to test server / deploy (push) Successful in 3m22s
435e628806
feat: move admin entry to header
Deploy staging to test server / deploy (push) Successful in 3m5s
ce4054fb78
ci: retry header admin deployment
Deploy staging to test server / deploy (push) Successful in 4m12s
9184ea294d
fix: expose payment admin navigation
Deploy staging to test server / deploy (push) Successful in 2m59s
43c8b59c24
feat: unify payment administration
Deploy staging to test server / deploy (push) Successful in 3m28s
9a20b748e0
feat: manage epay settings securely
Deploy staging to test server / deploy (push) Failing after 5m31s
d956da2993
fix: refresh server-only integrity
Deploy staging to test server / deploy (push) Successful in 3m14s
4a044570b2
ci: retry staging web build
Deploy staging to test server / deploy (push) Has been cancelled
c11f3b109e
fix: restore staging payment management
Deploy staging to test server / deploy (push) Successful in 9m55s
3fb635be1b
Use self-hosted PostgreSQL for payment records and expose separate package and Z-Pay flows so administrators and chat users can complete the payment journey reliably.
fix: restore staging package and epay management
Deploy staging to test server / deploy (push) Successful in 3m42s
dd8e2ad9c7
Use direct PostgreSQL access for package and Z-Pay administration so self-hosted staging can load and save settings reliably, while restoring admin scrolling and default channel collapse.
fix: grant staging admin payment access
Deploy staging to test server / deploy (push) Successful in 3m34s
d44a41408b
Add the missing least-privilege grants and RLS policies so self-hosted admin payment and package APIs can use the admin_runtime database role.
root merged commit 751dee39dc into main 2026-07-30 10:05:54 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: root/Jyotisha#1