Guide / Every rule
Secret defined in one environment and missing in another
The check connections/secret-missing-in-env, in the group Connections.
Why it matters
A secret the source environment supplies and the target does not is empty there, so a diagram that works in one fails in the other after the deployment.
How to fix it
Add the secret to the target environment before deploying.
Where you see it
The Problems tab lists it under Connections, the Connections screen shows it beside the map, and penstock check --only connections reports it as connections/secret-missing-in-env. It also appears in the SARIF and GitHub outputs. Comparing two environments is part of Penstock Pro, and Team in a pipeline.
Rule details
| Id | connections/secret-missing-in-env |
| Group | Connections |
| Level | Error: the diagram or the process is wrong |
Read more: Connections map. All rules: Every rule.