-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Builder no longer trusted when using --trust-builder
with Pack 0.35.0
#2228
Comments
--trust-builder
--trust-builder
with Pack 0.35.0
@edmorley I think this behavior is expected, as #2221 does apply to trusted builders ( I get what you're saying here, it is annoying that there isn't any way to get the old behavior. Perhaps we need something like |
I guess in my mental model I was thinking:
|
Yeah that would work. It seems like there might be use-cases where someone might want to pass only one of |
@edmorley would you want |
A single |
* Bump buildpacks/github-actions from 5.7.1 to 5.7.4 Bumps [buildpacks/github-actions](https://github.com/buildpacks/github-actions) from 5.7.1 to 5.7.4. - [Release notes](https://github.com/buildpacks/github-actions/releases) - [Commits](buildpacks/github-actions@v5.7.1...v5.7.4) --- updated-dependencies: - dependency-name: buildpacks/github-actions dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Use `--trust-extra-buildpacks` with `pack build` in CI To work around: buildpacks/pack#2228 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ed Morley <[email protected]>
Summary
In Pack v0.35.0 (which includes 16f4932, the fix for #2221), the untrusted builder workflow is now used even when the user explicitly requests that the builder be treated as trusted using
--trust-builder
.This impacts our CNB integration test framework, which runs tests using
pack build --builder <...> --buildpack <local_dev_buildpack> --trust-builder
, as it:[builder]
log line prefixes now added in untrusted mode.buildpacksio/lifecycle
plus running the build flow in separate containers).It seems this change may have been unintentional, since the security issue mentioned in #2221 doesn't apply to
--trust-builder
, where the user has explicitly requested that the builder be trusted.Reproduction
Steps
pack build --trust-builder --builder heroku/builder:24 --buildpack packaged/aarch64-unknown-linux-musl/debug/heroku_python --path tests/fixtures/python_3.12/ test-app --verbose
(or any similar command with a local buildpack passed via
--buildpack
)Current behavior
Expected behavior
To not see:
...and for the build to proceed in trusted mode.
Environment
pack info
docker info
N/A
The text was updated successfully, but these errors were encountered: