Skip to content
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

cli: add "debug sbom" command? #14408

Open
bradfitz opened this issue Dec 17, 2024 · 2 comments
Open

cli: add "debug sbom" command? #14408

bradfitz opened this issue Dec 17, 2024 · 2 comments
Labels
security Issues involving security in the Tailscale product or infrastructure

Comments

@bradfitz
Copy link
Member

bradfitz commented Dec 17, 2024

Maybe we should add a command like: tailscale debug sbom to effectively run go version -m against the CLI and/or daemon and print out the SBOM (software bill of materials).

We'd probably want a LocalAPI endpoint to return it so the CLI can ask the tailscaled for its SBOM and print it. And CLI's SBOM too might be interesting. Maybe we merge the two. Or force you say which binary you want with a flag to the sbom subcommand.

/cc @KayLEvans @awly @patrickod

@bradfitz bradfitz added the security Issues involving security in the Tailscale product or infrastructure label Dec 17, 2024
@ionrover2
Copy link

I wish I was more intimately familiar with the codebase, but I wanted to take a stab at this.

PR #14484 doesn't create a local api endpoint, but it does add the ability to print the debug.ReadBuildInfo() to stdout

tailscale prints this info when tailscale debug go-buildinfo is called.

I'm unsure if by SBOM you're referring to any modules or software that wouldn't be baked into the static binary. If you need to go even further up to get verifiable bits in the toolchain used to build go itself or other components, I would imagine that my PR can be safely closed without merging.

ionrover2 pushed a commit to ionrover2/tailscale that referenced this issue Dec 27, 2024
ionrover2 pushed a commit to ionrover2/tailscale that referenced this issue Dec 27, 2024
@awly
Copy link
Contributor

awly commented Jan 2, 2025

note: users might expect some standard SBOM format in the output, like CycloneDX or SPDX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security Issues involving security in the Tailscale product or infrastructure
Projects
None yet
Development

No branches or pull requests

3 participants