fix: relax secrets env var denylist for model providers (#24344)

Previously we reserved some env vars that may collide with AI gateway.
These were incomplete and take away flexibility from the user, which
we're prioritizing in the first iteration of the feature.
This commit is contained in:
Zach
2026-04-14 12:44:55 -06:00
committed by GitHub
parent 7e68d18e04
commit 0832033a73
4 changed files with 60 additions and 125 deletions
-14
View File
@@ -8249,20 +8249,6 @@ export interface UserSecret {
readonly updated_at: string;
}
// From codersdk/usersecretvalidation.go
/**
* UserSecretEnvValidationOptions controls deployment-aware behavior
* in environment variable name validation.
*/
export interface UserSecretEnvValidationOptions {
/**
* AIGatewayEnabled indicates that the deployment has AI Gateway
* configured. When true, AI Gateway environment variables
* (OPENAI_API_KEY, etc.) are reserved to prevent conflicts.
*/
readonly AIGatewayEnabled: boolean;
}
// From codersdk/users.go
export type UserStatus = "active" | "dormant" | "suspended";