-
Notifications
You must be signed in to change notification settings - Fork 92
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
install: Verify target image fetch by default #182
Conversation
Prep for verifying it before we do an install. Signed-off-by: Colin Walters <[email protected]>
ebefeb9
to
e6f92ee
Compare
Hooray, CI successfully failed |
Now that we've dropped the `--net=none` by default, let's avoid two major footguns by verifying the target image specification by default. - Forgetting to use `--target-no-signature-verification` (most people are going to need this in demos right now) - When the target OS requires an authenticated pull, but one didn't embed the pull secret in the target OS Signed-off-by: Colin Walters <[email protected]>
e6f92ee
to
be35678
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
If you are pushing an unsigned image, you must specify `bootc install --target-no-signature-verification`. | ||
|
||
Additionally note that to perform an install from an authenticated registry, you must also embed | ||
the pull secret into the image to pass this check. If you are fetching |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last sentence is incomplete.
What does it mean in detail to "embed the pull secret into the image to pass this check"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that! I think it was sufficiently embarrassing state of things that I context switched to look at improving it and didn't switch back. Finished the doc comment in #186
Followup to containers#182 (comment) Signed-off-by: Colin Walters <[email protected]>
Followup to containers#182 (comment) Signed-off-by: Colin Walters <[email protected]>
install: Compute target image reference upfront
Prep for verifying it before we do an install.
Signed-off-by: Colin Walters [email protected]
install: Verify target image fetch by default
Now that we've dropped the
--net=none
by default, let'savoid two major footguns by verifying the target image specification
by default.
--target-no-signature-verification
(most people are going to need this in demos right now)Signed-off-by: Colin Walters [email protected]