Commit 236a418
fix(credentials): address Wave 5 code review findings (RHOAIENG-55817)
- RoleBinding name now includes session SA name to prevent subject
collision when concurrent sessions in the same project share a provider
(was credential-token-reader-{provider}, now {session-sa}-credential-{provider})
- clear_runtime_credentials() now removes GOOGLE_APPLICATION_CREDENTIALS
path in addition to the hardcoded workspace credentials path, preventing
SA key files from leaking across turns when GOOGLE_APPLICATION_CREDENTIALS
is set to a non-default path
- Simplified test_returns_empty_when_no_credential_id_for_provider to use
monkeypatch instead of redundant nested patch.dict + pop pattern
- Updated control-plane-development.md to clarify that credential scope
filtering is server-side (RBAC), not implemented in resolveCredentialIDs
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 79e1772 commit 236a418
4 files changed
Lines changed: 35 additions & 33 deletions
File tree
- .claude/context
- components
- ambient-control-plane/internal/reconciler
- runners/ambient-runner
- ambient_runner/platform
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
650 | | - | |
| 650 | + | |
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
| |||
Lines changed: 19 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
461 | 468 | | |
462 | 469 | | |
463 | 470 | | |
| |||
Lines changed: 14 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
364 | | - | |
| 364 | + | |
365 | 365 | | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
378 | 371 | | |
379 | 372 | | |
380 | 373 | | |
| |||
442 | 435 | | |
443 | 436 | | |
444 | 437 | | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
451 | 446 | | |
452 | 447 | | |
453 | 448 | | |
| |||
0 commit comments