You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
cratis build run --docker hands the builder token to the container over standard input only. The token no longer appears in the container's environment or on the docker run command line. (#678)
Before it sends the token, cratis build run --docker checks that the selected image, for the platform Docker will run, carries the label io.cratis.builder.handoff=stdin-v1. An image without it is refused with instructions to update it; there is no fallback to the environment variable. The builder images from Cratis Grip 1.1.0 onward carry the label. This needs Docker API 1.49 or later with an image store that reports manifests.
If the run is cancelled or the handoff fails, the CLI removes the container it created.
The local builders guide documents the image requirement. A container started without cratis build run --docker, for example in a pipeline, still reads the token from CRATIS_BUILDER_TOKEN.