This repository was archived by the owner on Mar 6, 2026. It is now read-only.
Commit 99be2ce
authored
feat: Add trust boundary support for service accounts and impersonation. (#1778)
* feat: adds trust boundary lookup support for SA and impersonated credentials
* Add feature flag, fix ud bug, and update no-op response.
* Add _build_trust_boundary_lookup_url to external account.
* Implement additional unit tests for the trust boundary
* implement trust boundary in compute_engine to support GCE instances.
* Fix failing unit test, and change acceptable values for the env variable
* Add unit tests for gce trust boundary.
* Use no op method instead of directly comparing values
* fix a typo in calling the method noop
* Add x-allowed-location header to all IAM requests.
* Support self-signed jwt and refactor refresh to handle refreshing trust boundary in the base class.
* Fix failing unit tests
* Revert changes to external account class file.
* Additional unit tests and update some old ones.
* Revert changes to idtoken
* Revert the self signed jwt token workaround
* revert idtoken and jwt trust boundary tests.
* Fix failing github check
* Fix failing unit tests in compute engine
* fix linter issues
* Fix linter issues
* remove trust boundary related code from idtoken as it is not a supported credential type
* remove unused line in test1 parent 2dafdb2 commit 99be2ce
17 files changed
Lines changed: 1840 additions & 124 deletions
File tree
- google
- auth
- compute_engine
- oauth2
- tests
- compute_engine
- oauth2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
287 | 288 | | |
288 | 289 | | |
289 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
290 | 331 | | |
291 | 332 | | |
292 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| 42 | + | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| 69 | + | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
| |||
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| 85 | + | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
| |||
86 | 93 | | |
87 | 94 | | |
88 | 95 | | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
103 | 117 | | |
104 | 118 | | |
105 | 119 | | |
106 | 120 | | |
107 | | - | |
| 121 | + | |
108 | 122 | | |
109 | 123 | | |
110 | 124 | | |
111 | 125 | | |
112 | | - | |
| 126 | + | |
113 | 127 | | |
114 | 128 | | |
115 | 129 | | |
| |||
132 | 146 | | |
133 | 147 | | |
134 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
135 | 180 | | |
136 | 181 | | |
137 | 182 | | |
| |||
173 | 218 | | |
174 | 219 | | |
175 | 220 | | |
| 221 | + | |
| 222 | + | |
176 | 223 | | |
177 | | - | |
178 | 224 | | |
179 | 225 | | |
180 | 226 | | |
| |||
188 | 234 | | |
189 | 235 | | |
190 | 236 | | |
| 237 | + | |
| 238 | + | |
191 | 239 | | |
192 | | - | |
193 | 240 | | |
194 | 241 | | |
195 | 242 | | |
| |||
200 | 247 | | |
201 | 248 | | |
202 | 249 | | |
| 250 | + | |
203 | 251 | | |
204 | 252 | | |
205 | 253 | | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
206 | 267 | | |
207 | 268 | | |
208 | 269 | | |
| |||
275 | 336 | | |
276 | 337 | | |
277 | 338 | | |
278 | | - | |
| 339 | + | |
279 | 340 | | |
280 | 341 | | |
281 | 342 | | |
| |||
366 | 427 | | |
367 | 428 | | |
368 | 429 | | |
369 | | - | |
| 430 | + | |
370 | 431 | | |
371 | 432 | | |
372 | 433 | | |
| |||
0 commit comments