Penstock

Guide / Every rule

Secret defined in one environment and missing in another

The check connections/secret-missing-in-env, in the group Connections.

ErrorPro

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

Idconnections/secret-missing-in-env
GroupConnections
LevelError: the diagram or the process is wrong

Read more: Connections map. All rules: Every rule.