Staging, for QA
Where staging is, how to sign in, how to start from clean data and how to report what you find. How it is built and deployed is in deploy-gcp.md.
Addresses
Every push to main deploys staging. The newest run of Deploy — Staging
(GCP) in GitHub Actions lists the four addresses and the commit in its
summary; they do not change between deploys.
| Surface | Address | What it is |
|---|---|---|
| App | https://cardsite-web-<project-number>.<region>.run.app | The product. Sign in here |
| API | https://cardsite-api-<project-number>.<region>.run.app | /health, /ready; the app reaches it through its own origin |
| Marketing | https://cardsite-marketing-<project-number>.<region>.run.app | The public site |
| Toolkit | https://cardsite-toolkit-<project-number>.<region>.run.app | Internal hub; its status page shows whether the API is up, and /config.json names the deployed commit (release) |
With custom domains configured (domains in Terraform), those replace the
addresses above; terraform output urls prints whichever is live.
Accounts
| Account | Role |
|---|---|
admin@cardsite.station.center | Administrator (admin panel at /admin) |
qa@cardsite.station.center | Regular user |
Each password is generated, lives only in Secret Manager, and is never shown
in GitHub. Read one with gcloud (your Google account must be in the group
named in seed_password_readers):
gcloud secrets versions access latest --project=PROJECT_ID --secret=staging-seed-qa-password
gcloud secrets versions access latest --project=PROJECT_ID --secret=staging-seed-admin-password
Do not paste them into tickets or chat. Both accounts are on the unlimited
(Enterprise) plan. The development accounts in scripts/seed-users.sql (public passwords) exist only
on local stacks, never on staging.
What staging does and does not do
- It runs the production code paths (
ENV=production) with the settings ininfra/staging/api.env. - No email is sent (no SMTP configured): sign-up confirmation, password reset and notices are not delivered. Reset a seeded account's password by re-running the seed (below), not through the app.
- No payments, AI or social sign-in: no gateway, AI or OAuth keys are
set. AI generation answers 503;
/admin/pluginslists what the running server has configured. - Rate limits are ten times production's, and everyone signing in
through the app shares one budget
(deploy-gcp.md → Client address). A
429during heavy testing is that budget, not a bug; wait a minute. - The first request after a quiet period can take a few seconds (services scale to zero).
- Nothing is ever taken from an account by the URL lifecycle
(
LIFECYCLE_TAKING_ENABLED=false).
Starting from clean data
Data persists across deploys. To empty staging and start again (every link, page and registered account goes; the two seeded accounts come back):
- GitHub: Actions → Deploy — Staging (GCP) → Run workflow, tick
reset. It wipes, migrates, seeds, deploys the current
mainand runs the smoke test. - gcloud:
scripts/staging/reset.sh --project PROJECT_ID(asks you to typestaging).
Only the seed, with no wipe (seeded accounts get their current password back
and are reactivated, nothing else changes): run the workflow with seed
ticked, or gcloud run jobs execute cardsite-seed --region=REGION --wait.
Reporting
Open an issue in aidenlive/Cardsite-GTM with the Bug report template
and include:
- The commit:
releasefrom the toolkit's/config.json, or the run in the Actions summary. - The account you used (
qa@oradmin@) — never its password. - Steps from a clean state, expected and actual.
- The
X-Request-IDresponse header of the failing request (browser dev tools → Network). Engineers find the server's log lines withgcloud logging read 'jsonPayload.request_id="<id>"' --project=PROJECT_ID.
Source: docs/guides/staging.md