{{ message }}
Commit af19393
authored
feat(auth): make RAB feature production ready (#17390)
This PR resolves issues identified during verification of gcloud
Regional Access Boundary (RAB) flows and enables RAB verification by
default:
* Removes the client-side environment variable feature gate
(`GOOGLE_AUTH_TRUST_BOUNDARY_ENABLED`) to execute RAB lookups by default
across standard credential classes.
* Updates the Python auth SDK to recognize mTLS regional endpoints
(`.rep.mtls.googleapis.com`), bypassing redundant RAB lookups on secure
transport boundaries.
* Defers Service Account impersonation setup until HTTP request
execution before_request, propagating active cached tokens downward onto
the inner credential to guarantee that access tokens restored across
external CLI entrypoints correctly delegate regional access boundary
(RAB) lookups to target Service Account endpoints without forcing
redundant STS network renewal.1 parent 00ec9bf commit af19393
12 files changed
Lines changed: 318 additions & 201 deletions
File tree
- packages/google-auth
- google/auth
- tests
- compute_engine
Lines changed: 0 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
849 | 847 | | |
850 | 848 | | |
851 | 849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
452 | 456 | | |
453 | 457 | | |
454 | 458 | | |
| |||
484 | 488 | | |
485 | 489 | | |
486 | 490 | | |
487 | | - | |
488 | | - | |
| 491 | + | |
489 | 492 | | |
490 | 493 | | |
491 | 494 | | |
492 | 495 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
| 204 | + | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| |||
213 | 215 | | |
214 | 216 | | |
215 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
216 | 227 | | |
217 | 228 | | |
218 | 229 | | |
| |||
444 | 455 | | |
445 | 456 | | |
446 | 457 | | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
447 | 469 | | |
448 | 470 | | |
449 | 471 | | |
| |||
462 | 484 | | |
463 | 485 | | |
464 | 486 | | |
465 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
466 | 492 | | |
467 | 493 | | |
468 | 494 | | |
| |||
581 | 607 | | |
582 | 608 | | |
583 | 609 | | |
| 610 | + | |
584 | 611 | | |
585 | | - | |
586 | | - | |
| 612 | + | |
| 613 | + | |
587 | 614 | | |
588 | 615 | | |
589 | 616 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
530 | | - | |
| 529 | + | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
| |||
Lines changed: 35 additions & 15 deletions

0 commit comments