Commit 153d0e9
Add -run flag support for restorer in Platform API 0.14
This implements the missing feature from Platform API 0.14 where the
restorer should accept a -run flag to enable read access validation
for run images selected by extensions during the restore phase.
When extensions switch the run image to one listed in run.toml, the
restorer needs to verify accessibility using the platform's
authentication context (CNB_REGISTRY_AUTH). This prevents builds from
proceeding with images the system cannot actually access.
Changes:
- Add -run flag to restorer when Platform API >= 0.14
- Write run.toml file via WriteRunToml operation
- Add tests verifying flag is present for Platform API >= 0.14
- Add tests verifying flag is absent for Platform API < 0.14
Fixes #2515
References:
- Spec PR: buildpacks/spec#408
- Lifecycle PR: buildpacks/lifecycle#1364
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Signed-off-by: Juan Bustamante <bustamantejj@gmail.com>1 parent 94348a5 commit 153d0e9
2 files changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
554 | 561 | | |
555 | 562 | | |
556 | 563 | | |
| |||
607 | 614 | | |
608 | 615 | | |
609 | 616 | | |
| 617 | + | |
610 | 618 | | |
611 | 619 | | |
612 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2046 | 2046 | | |
2047 | 2047 | | |
2048 | 2048 | | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
| 2066 | + | |
| 2067 | + | |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
2049 | 2071 | | |
2050 | 2072 | | |
2051 | 2073 | | |
| |||
0 commit comments