Penstock

Guide / Every rule

Secret that is defined without the configured prefix

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

Advice

Why it matters

When a secret prefix is configured, the connector runtime reads only the environment variables that start with it, so a variable of the right name without the prefix is ignored.

How to fix it

Rename the variable to the prefix followed by the secret name, or remove the prefix setting.

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-prefix. It also appears in the SARIF and GitHub outputs. This check is free.

Rule details

Idconnections/secret-prefix
GroupConnections
LevelAdvice: it works, and reads or runs better without it

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