Skip to content

feat(verfication): trusted root fetch command#4829

Merged
brandtkeller merged 6 commits intomainfrom
4570_trusted_root_cmd
Apr 22, 2026
Merged

feat(verfication): trusted root fetch command#4829
brandtkeller merged 6 commits intomainfrom
4570_trusted_root_cmd

Conversation

@brandtkeller
Copy link
Copy Markdown
Member

@brandtkeller brandtkeller commented Apr 16, 2026

Description

This implements a zarf tools trusted-root create command to retrieve the Trusted Root via TUF (The Update Framework).

This mirrors cosign as opposed to embedding the cobra command directly as documented in the code.

This will then allow us to reliably and reproducibly fetch the trusted root for either embedding in zarf AND/OR external users getting an update trusted root under the circumstances they cannot upgrade to a Zarf version containing the updated embedded certificate.

More details can be found in #4289 - this trusted root will only be used for non-key signing verification.

Related Issue

Fixes #4570

Checklist before merging

Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for zarf-docs ready!

Name Link
🔨 Latest commit 9b44f28
🔍 Latest deploy log https://app.netlify.com/projects/zarf-docs/deploys/69e7dd0ca21f0f00081b1640
😎 Deploy Preview https://deploy-preview-4829--zarf-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

❌ Patch coverage is 75.94937% with 19 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cmd/tools_trustedroot.go 75.64% 18 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ
src/cmd/tools.go 91.17% <100.00%> (+0.26%) ⬆️
src/cmd/tools_trustedroot.go 75.64% <75.64%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
Signed-off-by: Brandt Keller <brandt.keller@defenseunicorns.com>
@brandtkeller brandtkeller marked this pull request as ready for review April 21, 2026 21:11
@brandtkeller brandtkeller requested review from a team as code owners April 21, 2026 21:11
Copy link
Copy Markdown
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@brandtkeller brandtkeller added this pull request to the merge queue Apr 22, 2026
Merged via the queue into main with commit 73825da Apr 22, 2026
44 checks passed
@brandtkeller brandtkeller deleted the 4570_trusted_root_cmd branch April 22, 2026 17:12
@github-project-automation github-project-automation Bot moved this to Done in Zarf Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Support natively retrieving a Trusted Root

2 participants