Skip to content

fix: clarify env variable deny-list error message#2813

Open
bfirsh wants to merge 1 commit intomainfrom
fix/env-denylist-error-message
Open

fix: clarify env variable deny-list error message#2813
bfirsh wants to merge 1 commit intomainfrom
fix/env-denylist-error-message

Conversation

@bfirsh
Copy link
Member

@bfirsh bfirsh commented Mar 5, 2026

Summary

  • Changes the environment variable deny-list error from the opaque "environment variable %q is not allowed" to "environment variable %q is not allowed: reserved for internal use", so users understand why the variable is rejected.
  • Updates corresponding test assertions in env_variables_test.go to match.

The error from validateEnvName said 'is not allowed' without explaining
why. Changed to 'is not allowed: reserved for internal use' so users
understand these variables are reserved by Cog for build/runtime.
@bfirsh bfirsh requested a review from a team as a code owner March 5, 2026 02:16
@michaeldwan michaeldwan added this to the 0.18.0 milestone Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants