Skip to content

Commit c3f4571

Browse files
feat: Add encrypted per-proxy CA bundle for BYO MITM proxies
1 parent b1d01e9 commit c3f4571

7 files changed

Lines changed: 24 additions & 2 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 127
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-904fd6fd50970ea07ec05c51b1ae0819ffb64cbf0921fff9daed6792b64f1dc9.yml
3-
openapi_spec_hash: cbd6626bdac7beaa768abb346e03fb74
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-32a5ef4f5def9dde3ed7acc2b6159b143194e224ceaad2dbbbcb766cac90602e.yml
3+
openapi_spec_hash: 3f514f770bb352d98bd3dbcf865a077f
44
config_hash: 77ee715aa17061166f9a02b264a21b8d

src/kernel/types/proxy_check_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class ConfigCustomProxyConfig(BaseModel):
7878
port: int
7979
"""Proxy port."""
8080

81+
has_ca_bundle: Optional[bool] = None
82+
"""Whether the proxy has a custom CA bundle configured."""
83+
8184
has_password: Optional[bool] = None
8285
"""Whether the proxy has a password."""
8386

src/kernel/types/proxy_create_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,13 @@ class ConfigCreateCustomProxyConfig(TypedDict, total=False):
100100
port: Required[int]
101101
"""Proxy port."""
102102

103+
ca_bundle: str
104+
"""PEM-encoded CA certificate bundle the proxy re-signs upstream TLS with.
105+
106+
Provide when the proxy terminates TLS (MITM) so the browser trusts its
107+
certificates. May contain multiple concatenated certificates.
108+
"""
109+
103110
password: str
104111
"""Password for proxy authentication."""
105112

src/kernel/types/proxy_create_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class ConfigCustomProxyConfig(BaseModel):
7878
port: int
7979
"""Proxy port."""
8080

81+
has_ca_bundle: Optional[bool] = None
82+
"""Whether the proxy has a custom CA bundle configured."""
83+
8184
has_password: Optional[bool] = None
8285
"""Whether the proxy has a password."""
8386

src/kernel/types/proxy_list_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class ConfigCustomProxyConfig(BaseModel):
7878
port: int
7979
"""Proxy port."""
8080

81+
has_ca_bundle: Optional[bool] = None
82+
"""Whether the proxy has a custom CA bundle configured."""
83+
8184
has_password: Optional[bool] = None
8285
"""Whether the proxy has a password."""
8386

src/kernel/types/proxy_retrieve_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class ConfigCustomProxyConfig(BaseModel):
7878
port: int
7979
"""Proxy port."""
8080

81+
has_ca_bundle: Optional[bool] = None
82+
"""Whether the proxy has a custom CA bundle configured."""
83+
8184
has_password: Optional[bool] = None
8285
"""Whether the proxy has a password."""
8386

src/kernel/types/proxy_update_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ class ConfigCustomProxyConfig(BaseModel):
7878
port: int
7979
"""Proxy port."""
8080

81+
has_ca_bundle: Optional[bool] = None
82+
"""Whether the proxy has a custom CA bundle configured."""
83+
8184
has_password: Optional[bool] = None
8285
"""Whether the proxy has a password."""
8386

0 commit comments

Comments
 (0)