Skip to content
Toolkit

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.

SurfaceAddressWhat it is
Apphttps://cardsite-web-<project-number>.<region>.run.appThe product. Sign in here
APIhttps://cardsite-api-<project-number>.<region>.run.app/health, /ready; the app reaches it through its own origin
Marketinghttps://cardsite-marketing-<project-number>.<region>.run.appThe public site
Toolkithttps://cardsite-toolkit-<project-number>.<region>.run.appInternal 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

AccountRole
admin@cardsite.station.centerAdministrator (admin panel at /admin)
qa@cardsite.station.centerRegular 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 in infra/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/plugins lists 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 429 during 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 main and runs the smoke test.
  • gcloud: scripts/staging/reset.sh --project PROJECT_ID (asks you to type staging).

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:

  1. The commit: release from the toolkit's /config.json, or the run in the Actions summary.
  2. The account you used (qa@ or admin@) — never its password.
  3. Steps from a clean state, expected and actual.
  4. The X-Request-ID response header of the failing request (browser dev tools → Network). Engineers find the server's log lines with gcloud logging read 'jsonPayload.request_id="<id>"' --project=PROJECT_ID.

Source: docs/guides/staging.md

Library