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

🌱 SBOM #51

Closed
2 tasks
Tracked by #215 ...
mudler opened this issue Aug 1, 2022 · 3 comments · Fixed by kairos-io/provider-kairos#256
Closed
2 tasks
Tracked by #215 ...

🌱 SBOM #51

mudler opened this issue Aug 1, 2022 · 3 comments · Fixed by kairos-io/provider-kairos#256
Assignees
Labels

Comments

@mudler
Copy link
Member

mudler commented Aug 1, 2022

In order to keep track and be transparent on what is shipped on each release, would be preferred to have an automated process that collects SBOM information in c3os context

Action items

On releases, we should attach among artifacts:

Open questions

  • How to collect k3s in SBOM?
  • How to collect bundles SBOM?

We use

  • K3s
  • Base distro packages (kernel, systemd, grub, etc)
  • Our packages
  • Elemental-cli (fork)
  • EdgeVPN (uses libp2p)
  • Luet
  • KubeVIP

Deliverables

(those might already exist, to 👀 )

  • tool to create spdx files out from OS packages information
  • tool to create spdx files out from luet installed packages

Already existing tools

Action Items

  • SBOM attached to releases for kairos-io/kairos
  • SBOM attached to releases for kairos-io/provider-kairos
@mudler mudler added the enhancement New feature or request label Aug 10, 2022
@mudler mudler mentioned this issue Dec 16, 2022
5 tasks
@mudler mudler changed the title SBOM 🌱 SBOM Mar 1, 2023
@mudler mudler mentioned this issue Mar 1, 2023
35 tasks
@mudler
Copy link
Member Author

mudler commented Mar 1, 2023

with syft seems already promising. I get a full list of OS level + golang binary mod dependency list at file level. I'd say that would cover all the above:

syft:
    FROM anchore/syft:latest
    SAVE ARTIFACT /syft syft

image-sbom:
    FROM +docker
    WORKDIR /build
    COPY +version/VERSION ./
    ARG VERSION=$(cat VERSION)
    ARG FLAVOR
    COPY +syft/syft /usr/bin/syft
    RUN syft / -o json=sbom.syft.json -o spdx-json=sbom.spdx.json
    SAVE ARTIFACT /build/sbom.syft.json sbom.syft.json AS LOCAL core-${FLAVOR}-${VERSION}-sbom.syft.json
    SAVE ARTIFACT /build/sbom.spdx.json sbom.spdx.json AS LOCAL core-${FLAVOR}-${VERSION}-sbom.spdx.json

core-debian-v1.6.0-14-g193c740-dirty-sbom.s.zip

@mudler
Copy link
Member Author

mudler commented Mar 1, 2023

#998 covers kairos-io/kairos. we need to do the same for kairos-io/provider-kairos

@mudler
Copy link
Member Author

mudler commented Mar 2, 2023

opened kairos-io/provider-kairos#256 for provider-kairos

mudler added a commit to kairos-io/provider-kairos that referenced this issue Mar 2, 2023
Closes: kairos-io/kairos#51

---------

Signed-off-by: mudler <mudler@c3os.io>
@mudler mudler mentioned this issue Mar 7, 2023
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant