Environment vocabulary (canonical)

Single source of truth for what Restormel integration env vars are called and how they differ. Use these names in apps, CI, MCP, and admin wizards — do not invent alternate names for the same key or URL. Repository copy (for PRs and agents): docs/guides/restormel-environment-vocabulary.md.

Implementers: One Gateway key may appear as both RESTORMEL_GATEWAY_KEY and RESTORMEL_SERVER_TOKEN (same value). Three URL roles — RESTORMEL_KEYS_BASE (site origin), RESTORMEL_CONTROL_PLANE_URL (…/keys/dashboard), RESTORMEL_EVALUATE_URL (full …/api/policies/evaluate) — are never interchangeable.

Canonical variables

NameRoleHosted example
RESTORMEL_GATEWAY_KEYProject Gateway key; Bearer for Dashboard APIrk_…
RESTORMEL_SERVER_TOKENSame value as Gateway key unless you use a separate management token (MCP control-plane, some wizards)same rk_…
RESTORMEL_PROJECT_IDProject UUIDUUID
RESTORMEL_ENVIRONMENT_IDOne dev/prod slot inside the projectUUID
RESTORMEL_KEYS_BASESite origin only, no pathhttps://restormel.dev
RESTORMEL_CONTROL_PLANE_URLDashboard app base; append /api/projects/…; no trailing slashhttps://restormel.dev/keys/dashboard
RESTORMEL_EVALUATE_URLFull POST URL for policy evaluate…/keys/dashboard/api/policies/evaluate

CI secrets (*_STAGING)

GitHub secret names often end in _STAGING. Your workflow should still map them to the canonical runtime names above. The project dashboard Copy full CI snippet includes both prefixed and unprefixed lines.

Admin wizards

If a single field is labeled “Restormel URL” or “site”, use RESTORMEL_KEYS_BASE. “Control-plane” or MCP route/policy tools need RESTORMEL_CONTROL_PLANE_URL. Policy / Plot-style evaluate calls need RESTORMEL_EVALUATE_URL.

Further reading