Skip to content

Missing environment binding error names the route but not the variable #1062

Closed

Description

@jimhoyd

From PR #1060 (the native-storage proof). When a function route binds an environment variable that is missing, the error is Route /api/notes: Missing required environment binding. It names the route but not the binding or the variable, so the operator has to read the YAML to learn that URLCODE_DATA_DIR is unset.

Expected: the refusal names the binding and the environment variable (e.g. Route /api/notes: environment binding DATA_DIR reads URLCODE_DATA_DIR, which is not set), consistent with the grant-denial messages that already name them. Keep secrets out of the message; name the variable only, never a value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions