Skip to content

feat: --require-digest option for bootc upgrade/switch#2291

Closed
HastD wants to merge 1 commit into
bootc-dev:mainfrom
HastD:require-digest
Closed

feat: --require-digest option for bootc upgrade/switch#2291
HastD wants to merge 1 commit into
bootc-dev:mainfrom
HastD:require-digest

Conversation

@HastD

@HastD HastD commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Add a new option, --require-digest, to bootc upgrade and bootc switch. When provided, bootc checks that the image to be downloaded/staged has the given digest; if it does not, the operation will fail with an error message.

This is useful for avoiding TOCTOU issues when performing some external checks (such as provenance verification) on an image before updating to that image.

Resolves #2279.

Add a new option, `--require-digest`, to `bootc upgrade` and `bootc
switch`. When provided, bootc checks that the image to be
downloaded/staged has the given digest; if it does not, the operation
will fail with an error message.

This is useful for avoiding TOCTOU issues when performing some external
checks (such as provenance verification) on an image before updating to
that image.

Signed-off-by: Daniel Hast <hast.daniel@protonmail.com>
@bootc-bot
bootc-bot Bot requested a review from gursewak1997 July 7, 2026 20:26
@HastD
HastD marked this pull request as draft July 7, 2026 20:59
@HastD

HastD commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Marking as draft for now since we're discussing at #2279 whether this is a good way to solve the problem.

@HastD

HastD commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Closing per discussion at #2279 that concluded that this isn't necessary.

@HastD HastD closed this Jul 7, 2026
@HastD
HastD deleted the require-digest branch July 7, 2026 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request] Option to require specific digest for bootc upgrade

1 participant