Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 441d66b

Browse files
feat: allow setting custom CA for generic webhooks (#207)
* feat: allow setting custom CA for generic webhooks PiperOrigin-RevId: 408995680 Source-Link: googleapis/googleapis@76f7f48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/9e5faa62a238bd42c1350d3e51a6540af7337587 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWU1ZmFhNjJhMjM4YmQ0MmMxMzUwZDNlNTFhNjU0MGFmNzMzNzU4NyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8c361a7 commit 441d66b

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

google/cloud/dialogflowcx_v3beta1/types/webhook.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,30 @@ class GenericWebService(proto.Message):
9898
request_headers (Sequence[google.cloud.dialogflowcx_v3beta1.types.Webhook.GenericWebService.RequestHeadersEntry]):
9999
The HTTP request headers to send together
100100
with webhook requests.
101+
allowed_ca_certs (Sequence[bytes]):
102+
Optional. Specifies a list of allowed custom
103+
CA certificates (in DER format) for HTTPS
104+
verification. This overrides the default SSL
105+
trust store. If this is empty or unspecified,
106+
Dialogflow will use Google's default trust store
107+
to verify certificates.
108+
N.B. Make sure the HTTPS server certificates are
109+
signed with "subject alt name". For instance a
110+
certificate can be self-signed using the
111+
following command,
112+
openssl x509 -req -days 200 -in
113+
example.com.csr \ -signkey example.com.key
114+
\
115+
-out example.com.crt \
116+
-extfile <(printf
117+
"\nsubjectAltName='DNS:www.example.com'")
101118
"""
102119

103120
uri = proto.Field(proto.STRING, number=1,)
104121
username = proto.Field(proto.STRING, number=2,)
105122
password = proto.Field(proto.STRING, number=3,)
106123
request_headers = proto.MapField(proto.STRING, proto.STRING, number=4,)
124+
allowed_ca_certs = proto.RepeatedField(proto.BYTES, number=5,)
107125

108126
class ServiceDirectoryConfig(proto.Message):
109127
r"""Represents configuration for a `Service

0 commit comments

Comments
 (0)