Skip to content

Commit 51d713b

Browse files
feat: Document env var redaction on deployment and app reads
1 parent e8641eb commit 51d713b

7 files changed

Lines changed: 36 additions & 8 deletions

‎.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/kernel/types/app_list_response.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ class AppListResponse(BaseModel):
2525
"""Deployment ID"""
2626

2727
env_vars: Dict[str, str]
28-
"""Environment variables configured for this app version"""
28+
"""Environment variables configured for this app version.
29+
30+
Values are redacted for API key, OAuth, and managed-auth callers, which receive
31+
every key with an empty string value. Only dashboard sessions receive the actual
32+
values.
33+
"""
2934

3035
region: Literal["aws.us-east-1a"]
3136
"""Deployment region code"""

‎src/kernel/types/deployment_create_response.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ class DeploymentCreateResponse(BaseModel):
2828
"""Relative path to the application entrypoint"""
2929

3030
env_vars: Optional[Dict[str, str]] = None
31-
"""Environment variables configured for this deployment"""
31+
"""Environment variables configured for this deployment.
32+
33+
Values are redacted for API key, OAuth, and managed-auth callers, which receive
34+
every key with an empty string value. Only dashboard sessions receive the actual
35+
values.
36+
"""
3237

3338
status_reason: Optional[str] = None
3439
"""Status reason"""

‎src/kernel/types/deployment_follow_response.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ class AppVersionSummaryEvent(BaseModel):
4040
"""Version label for the application"""
4141

4242
env_vars: Optional[Dict[str, str]] = None
43-
"""Environment variables configured for this app version"""
43+
"""Environment variables configured for this app version.
44+
45+
Not currently populated on streamed app_version_summary events.
46+
"""
4447

4548

4649
DeploymentFollowResponse: TypeAlias = Annotated[

‎src/kernel/types/deployment_list_response.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ class DeploymentListResponse(BaseModel):
2828
"""Relative path to the application entrypoint"""
2929

3030
env_vars: Optional[Dict[str, str]] = None
31-
"""Environment variables configured for this deployment"""
31+
"""Environment variables configured for this deployment.
32+
33+
Values are redacted for API key, OAuth, and managed-auth callers, which receive
34+
every key with an empty string value. Only dashboard sessions receive the actual
35+
values.
36+
"""
3237

3338
status_reason: Optional[str] = None
3439
"""Status reason"""

‎src/kernel/types/deployment_retrieve_response.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ class DeploymentRetrieveResponse(BaseModel):
2828
"""Relative path to the application entrypoint"""
2929

3030
env_vars: Optional[Dict[str, str]] = None
31-
"""Environment variables configured for this deployment"""
31+
"""Environment variables configured for this deployment.
32+
33+
Values are redacted for API key, OAuth, and managed-auth callers, which receive
34+
every key with an empty string value. Only dashboard sessions receive the actual
35+
values.
36+
"""
3237

3338
status_reason: Optional[str] = None
3439
"""Status reason"""

‎src/kernel/types/deployment_state_event.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ class Deployment(BaseModel):
2828
"""Relative path to the application entrypoint"""
2929

3030
env_vars: Optional[Dict[str, str]] = None
31-
"""Environment variables configured for this deployment"""
31+
"""Environment variables configured for this deployment.
32+
33+
Values are redacted for API key, OAuth, and managed-auth callers, which receive
34+
every key with an empty string value. Only dashboard sessions receive the actual
35+
values.
36+
"""
3237

3338
status_reason: Optional[str] = None
3439
"""Status reason"""

0 commit comments

Comments
 (0)