Skip to content

Commit aff324f

Browse files
feat: Document env var redaction on deployment and app reads
1 parent 83fd84c commit aff324f

3 files changed

Lines changed: 19 additions & 8 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 125
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-83323f87ab825547b6cd11caa46e2643ebb0a68bbd326d4e07ccab970638fc03.yml
3-
openapi_spec_hash: 69ed04a66b4ef68e97f7bdc07dfe6df2
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-89a500b26fe8126183d55aaca53f5615c6a25561d8e01e907f4998239ccc7a0b.yml
3+
openapi_spec_hash: 50236a5e713d5424ca35c0883926b0a5
44
config_hash: 06186eb40e0058a2a87ac251fc07415d

src/resources/apps.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ export interface AppListResponse {
4747
deployment: string;
4848

4949
/**
50-
* Environment variables configured for this app version
50+
* Environment variables configured for this app version. Values are redacted for
51+
* API key, OAuth, and managed-auth callers, which receive every key with an empty
52+
* string value. Only dashboard sessions receive the actual values.
5153
*/
5254
env_vars: { [key: string]: string };
5355

src/resources/deployments.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ export namespace DeploymentStateEvent {
159159
entrypoint_rel_path?: string;
160160

161161
/**
162-
* Environment variables configured for this deployment
162+
* Environment variables configured for this deployment. Values are redacted for
163+
* API key, OAuth, and managed-auth callers, which receive every key with an empty
164+
* string value. Only dashboard sessions receive the actual values.
163165
*/
164166
env_vars?: { [key: string]: string };
165167

@@ -205,7 +207,9 @@ export interface DeploymentCreateResponse {
205207
entrypoint_rel_path?: string;
206208

207209
/**
208-
* Environment variables configured for this deployment
210+
* Environment variables configured for this deployment. Values are redacted for
211+
* API key, OAuth, and managed-auth callers, which receive every key with an empty
212+
* string value. Only dashboard sessions receive the actual values.
209213
*/
210214
env_vars?: { [key: string]: string };
211215

@@ -250,7 +254,9 @@ export interface DeploymentRetrieveResponse {
250254
entrypoint_rel_path?: string;
251255

252256
/**
253-
* Environment variables configured for this deployment
257+
* Environment variables configured for this deployment. Values are redacted for
258+
* API key, OAuth, and managed-auth callers, which receive every key with an empty
259+
* string value. Only dashboard sessions receive the actual values.
254260
*/
255261
env_vars?: { [key: string]: string };
256262

@@ -295,7 +301,9 @@ export interface DeploymentListResponse {
295301
entrypoint_rel_path?: string;
296302

297303
/**
298-
* Environment variables configured for this deployment
304+
* Environment variables configured for this deployment. Values are redacted for
305+
* API key, OAuth, and managed-auth callers, which receive every key with an empty
306+
* string value. Only dashboard sessions receive the actual values.
299307
*/
300308
env_vars?: { [key: string]: string };
301309

@@ -361,7 +369,8 @@ export namespace DeploymentFollowResponse {
361369
version: string;
362370

363371
/**
364-
* Environment variables configured for this app version
372+
* Environment variables configured for this app version. Not currently populated
373+
* on streamed app_version_summary events.
365374
*/
366375
env_vars?: { [key: string]: string };
367376
}

0 commit comments

Comments
 (0)