Originally published on gregale.dev. I build Gregale, so read this as a vendor's page. Competitor details come from each vendor's own docs, linked in the post. This post was written with AI assistance.
Preview every setting change, quota conflict, config-key delta, package upgrade, and cross-environment drift—with a single blocking boolean for CI—without exposing a single plaintext secret. Gregale provides read-only pre-deploy diffs (gregale deploy --diff), release-to-release SBOM diffs (gregale release diff), hashed secret matrices (env-diff), and project environment diffs across staging and production.
Why blind deploys fail teams and AI agents
Traditional git push PaaS platforms execute builds immediately and surface configuration or quota surprises only halfway through a rollout. Worse, comparing staging and production across separate services usually means dumping .env files into terminals and manually diffing container tags.
For CI pipelines and AI coding agents, you want a read-only equivalent of terraform plan across app config, releases, packages, and environment drift.
Pre-deploy diff: check quota and breaks before deploying
Run gregale deploy --diff locally or call POST /v1/apps/{slug}/diff from CI:
POST /v1/apps/my-api/diff
{"image": "ghcr.io/me/api@sha256:abc", "app_config": {"ram_mb": 512, "max_concurrency": 30}}
The endpoint returns a structured DiffResponse without creating any database row, audit entry, or deployment—even when the app does not exist yet (would_create_app + quota evaluation):
{
"diff": {
"slug": "api",
"plan": "hobby",
"changes": [{ "field": "memory", "kind": "modify", "before": 256, "after": 512 }],
"breaks": [
{
"code": "plan_limit_concurrency",
"severity": "error",
"reason": "max_concurrency exceeds plan cap",
"field": "concurrency",
"observed": 30,
"limit": 20
}
]
},
"blocking": true
}
-
One boolean for CI gates: Pipe
jq '.blocking'to fail builds before triggering a deploy when anyseverity: "error"break is present. -
No MFA required for read-only checks:
POST /v1/apps/{slug}/diffaccepts a bearer key withapps:readordeploy:write. Note that/diffchecks app config, limits, and text-level handler/entrypoint/env-key warnings; full OpenAPI schema compatibility is gated separately via/v1/apps/{slug}/openapi/diff(see OpenAPI breaking-change deploy gate).
Compare two live releases including commits and SBOM packages
Inspect everything a release changed against the previous release or any historical version:
gregale release diff v42 # against the release serving before it
gregale release diff v42 --against v38 # against any release of the app
Backed by GET /v1/deployments/{id}/diff, Gregale compares:
- Code: Both commits, a GitHub compare link when both releases share a repository, and whether the container image digest changed.
- Configuration keys: Env variables and secrets added, removed, or changed by key name—never returning variable values or secret fingerprints.
-
Packages: Dependencies added, removed, or upgraded between the two builds' SBOMs (up to
100per list; image-only deploys omit build SBOMs). - Runtime settings and release command: Handler, runtime base, port, entrypoint, command, probes, minimum instances, sidecars, workflows, env override keys, and database migration release commands.
Config history retains the last 100 revisions per scope, and the same comparison is embedded directly on release approval pages and gregale release timeline v42.
Spot environment drift without exposing secrets
-
Scope matrix (
GET /v1/apps/{slug}/env-diff): Returns arows × scopesmatrix of variables and sealed secrets where secret cells return{present, value_hash}—so you verify parity across scopes without revealing plaintext. -
Project environment diff (
gregale environment diff shop --from production --to staging): Backed byGET /v1/projects/{slug}/environments/{environment}/diff, compares effective project environment configuration, workload releases, variable/secret metadata, environment-bound custom domains, and declared routes.
How other platforms compare
| Platform | Read-only pre-deploy diff + blocking boolean |
Release-to-release SBOM + config diff | Secret-hashed scope & env drift diff |
|---|---|---|---|
| Gregale | Yes (gregale deploy --diff, POST /v1/apps/{slug}/diff, beta, all plans) |
Yes (gregale release diff, commits + SBOM + runtime + migration command) |
Yes (env-diff hashes + gregale environment diff) |
| Terraform CLI | Yes (terraform plan for IaC resources) |
Tracks IaC state, not build SBOMs | Depends on remote state backends |
| Render | Preview Blueprint YAML manually | Deployment commit logs only | Manual inspection in Env Groups |
| Railway | Graph change staging before Deploy | Deployment logs & service vars view | Compare environments visually |
| Fly.io |
fly deploy --dry-run / config inspection |
fly releases history |
No built-in multi-app SBOM + env-hash matrix |
Sources, checked 2026-11-27: HashiCorp Terraform plan, Render Blueprint Specification.
Pricing and docs
Pre-deploy diff (deploy-diff, in beta), release diffs, and environment diffs are available on all plans including Free. See Gregale pricing, Deployments & releases, Environment variables & config guard, Deploy diff API, and Block breaking OpenAPI changes on deploy.
Top comments (1)
Hüseyin, the disclosure up top is appreciated — and the env-diff design is the part I'd steal: {present, value_hash} lets you check parity across scopes without ever seeing the value. One thing I'd pressure-test: a hash of a low-entropy secret is only as secret as the secret itself. If a value is a short token or a flag like "true", an unsalted hash is reversible by dictionary — is the value_hash keyed (an HMAC with a server-side key) or salted per scope, or is it a plain hash of the value? That decides whether the matrix is safe to show to someone who shouldn't know the secret.
The other gap I'd want surfaced: image-only deploys omit build SBOMs, and package lists cap at 100 per list. Does the release diff flag "SBOM unavailable" as a visible warning, or does it render an empty package list that reads as "nothing changed"? The second one is the dangerous shape — a deploy that swaps a dependency would look clean. Which of the two does a v42 vs v41 diff show today?