This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Commit 0b9107d
authored
feat: Recognize workload certificate config in has_default_client_cert_source for mTLS for Agentic Identities (#1907)
feat: Recognize workload certificate config in
`mTLS.has_default_client_cert_source` for mTLS for Agentic Identities.
This is done as part of a fix for auto-enablement of mTLS, which depends
on `mTLS.has_default_client_cert_source`. This method returned `False`
because it only checked for gcloud cert configs and secure connect
metadata, but not the workload-provided certificate_config.json. Thus,
this change is necessary to help enable mTLS for Agentic Identities on
GKE and Cloud Run Workloads.
---------
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>1 parent 59a5f58 commit 0b9107dCopy full SHA for 0b9107d
2 files changed
+89-14Lines changed: 89 additions & 14 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- google/auth/transport
- tests/transport
Expand file treeCollapse file tree
Open diff view settings
Collapse file
google/auth/transport/mtls.py
Copy file name to clipboardExpand all lines: google/auth/transport/mtls.py+8Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
| 18 | + |
17 | 19 | |
18 | 20 | |
19 | 21 | |
| ||
36 | 38 | |
37 | 39 | |
38 | 40 | |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
39 | 47 | |
40 | 48 | |
41 | 49 | |
|
Collapse file
tests/transport/test_mtls.py
Copy file name to clipboardExpand all lines: tests/transport/test_mtls.py+81-14Lines changed: 81 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
21 | 21 | |
22 | 22 | |
23 | 23 | |
24 | | - |
25 | | - |
26 | | - |
27 | | - |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
28 | 29 | |
29 | | - |
30 | | - |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
31 | 60 | |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
| 61 | + |
| 62 | + |
38 | 63 | |
39 | | - |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
40 | 94 | |
41 | 95 | |
42 | | - |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
| 108 | + |
43 | 109 | |
| 110 | + |
44 | 111 | |
45 | 112 | |
46 | 113 | |
|
0 commit comments