Cloud Run Preflight Linter & SHA-256 Revision Ledger
Catch .gcloudignore environment variable omissions, risky --allow-unauthenticated flags, and --min-instances cost traps before deployment, or inspect hash-chained AI session provenance across production Cloud Run revisions.
Paste gcloud run deploy or service.yaml
Catches .gcloudignore env drift, risky --allow-unauthenticated IAM flags, secret leaks, and --min-instancescost traps in <10ms.
payments-webhook-apiRisk Score: 90/1000 hardcoded API keys, OAuth tokens, session cookies, or private keys detected.
`--allow-unauthenticated` on backend service "payments-webhook-api" exposes internal endpoints publicly unless gated by X-API-Key / Bearer middleware.
`--set-env-vars` overwrites the entire environment map. Wipes all previously configured Cloud Run environment variables. Replace with `--update-env-vars`.
`min-instances=2` disables scale-to-zero (~$36+/mo idle burn). Set `--min-instances=0 --max-instances=3 --memory=512Mi`.
gcloud run deploy payments-webhook-api \ --source services/payments --region us-central1 \ --project acme-cloud-prod \ --allow-unauthenticated \ --min-instances=0 --max-instances=3 \ --memory=512Mi --cpu=1 \ --update-env-vars SERVICE_API_KEY=$SERVICE_API_KEY
Preflight flagged risk score 90/100 for payments-webhook-api. Apply the hardened gcloud deploy command below to prevent env drift and cost overruns.
update-traffic rollback runbook.Live Production Revision Ledger
4 Services Monitored · 0 DriftReference Sandbox Project: acme-cloud-prod · Region: us-central1 · Hash-Chained SHA-256 Attestation
| Cloud Run Service | Active Revision ID | Status & Drift | Resources | SHA-256 Chain | Audit Card |
|---|---|---|---|---|---|
acme-checkout-web | acme-checkout-web-00042-k9p | 512Mi · 1 vCPU · min=0..5 | Chain #101 | Audit → | |
payments-webhook-api | payments-webhook-api-00018-m4x | 512Mi · 1 vCPU · min=0..4 | Chain #102 | Audit → | |
vertex-rag-indexer | vertex-rag-indexer-00027-q8v | 1Gi · 1 vCPU · min=0..3 | Chain #103 | Audit → | |
otel-trace-gateway | otel-trace-gateway-00011-r2z | 512Mi · 1 vCPU · min=0..3 | Chain #104 | Audit → |