Skip to content

Commit 194c060

Browse files
fix(gateway): reject keyless HEADER auth_mechanism at admission and in looper (#11120)
1 parent 4dd9edd commit 194c060

3 files changed

Lines changed: 10 additions & 4 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: 121
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-2b4c651a27238a14ac7bd03ba582183d14f9622bdb5ea292c2cea97acc4c727e.yml
3-
openapi_spec_hash: 8a933236116d07c8a060b6eadd205feb
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-f8c19bf9329a554bedfbb8678d6d3cb8881a285d27b3d8ba078e2a573b597a17.yml
3+
openapi_spec_hash: 0c3d490050a9bbaa5cb7378bf55e8f37
44
config_hash: 7afcebea2dd638ed0cf0d5367f820f73

src/runloop_api_client/types/shared/auth_mechanism.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ class AuthMechanism(BaseModel):
1919
"""
2020

2121
key: Optional[str] = None
22-
"""Only valid for 'header' type: the header name (e.g., 'x-api-key')."""
22+
"""The header name (e.g., 'x-api-key').
23+
24+
Required for 'header' type; invalid for other types.
25+
"""

src/runloop_api_client/types/shared_params/auth_mechanism.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ class AuthMechanism(TypedDict, total=False):
2020
"""
2121

2222
key: Optional[str]
23-
"""Only valid for 'header' type: the header name (e.g., 'x-api-key')."""
23+
"""The header name (e.g., 'x-api-key').
24+
25+
Required for 'header' type; invalid for other types.
26+
"""

0 commit comments

Comments
 (0)