From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: buildroot@buildroot.org, Thomas Perale <thomas.perale@mind.be>,
Thomas Perale <thomas.perale@essensium.com>
Subject: Re: [Buildroot] [RFC PATCH 0/5] Support SBOM in CycloneDX format
Date: Mon, 8 Apr 2024 21:15:06 +0200 [thread overview]
Message-ID: <ZhRCOocYgxC-C5GL@landeda> (raw)
In-Reply-To: <20240407231500.2248bc22@windsurf>
Thomas², All,
On 2024-04-07 23:15 +0200, Thomas Petazzoni via buildroot spake thusly:
> On Thu, 4 Apr 2024 14:43:24 +0200
> Thomas Perale <thomas.perale@essensium.com> wrote:
>
> > This RFC patch series propose to add support for the CycloneDX
> > SBOM format.
> >
> > There is a growing need to generate SBOM from buildroot
> > configurations. Right now, there are different solutions available
> > for buildroot users `show-info`, `legal-info` and `pkg-stats`.
> > They all generate similar information (`show-info` showing more) but
> > in a format that is specific to buildroot.
>
> Thanks a lot for your work on this, this is really useful.
>
> My initial reaction is whether it is really the right solution to have
> "make" spit out the CycloneDX format, or whether we should use "make
> show-info", and then process the JSON output using some Python script
> to generate the CycloneDX SBoM. Some of the mangling needed to generate
> the CycloneDX stuff is a bit tricky to write in make, and having a
> utility Python script doing that work based on a JSON input would I
> believe be simpler and easier to extend. Have you explored this idea?
>
> Of course, if "make show-info" doesn't provide enough information in
> the generated JSON blurb, we can always extend that with more
> information.
This was also my reaction: when I introduced show-info, the goal was to
expose details about the current configuration, so that it could be
digested by various scripts to generate the required SBOM formats.
I would prefer that we do get a support/script/cyclonedx script (python
or whatever) that gets show-info output and generates CycloneDX SBOM.
> > This is a first sketch and I hope to gather comments on functionality
> > the community want me to include. I already have a todo list of feature
> > I plan to work on:
> >
> > - [ ] Find a solution to handle versioning. The "version" property
> > should be incremented every SBOM generation.
>
> Perhaps easier to handle this with the Python script approach proposed
> above.
Also I don't see how that versioning works.
If it gets incremented everytime the SBOM is generated, then (with the
current state of this series):
git clone blablabla/buildroot
make -C buildroot foo_defconfig
make -C buildroot cyclonedx
make -C buildroot cyclonedx
would yield two different versions, although nothing changed in-between.
Also:
git clone blablabla/buildroot
make -C buildroot foo_defconfig
make -C buildroot
make -C buildroot cyclonedx
rm -rf buildroot
git clone blablabla/buildroot
make -C buildroot foo_defconfig
make -C buildroot
make -C buildroot cyclonedx
would have to yield two different versions, but where would the "latest"
version be stored? Certainly not in the user's home directory.
And arguably, if two different people build the cyclonedx SBOM for the
same project, on two different machines (with an otherwise identical
environment), at different time, then how do they know the version used
by the other? This also applies to "two CI pipelines" instead of "two
users".
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-04-08 19:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-04 12:43 [Buildroot] [RFC PATCH 0/5] Support SBOM in CycloneDX format Thomas Perale via buildroot
2024-04-04 12:43 ` [Buildroot] [RFC PATCH 1/5] package/pkg-generic.mk: add PURL package variable Thomas Perale via buildroot
2024-04-04 12:43 ` [Buildroot] [RFC PATCH 2/5] package/pkg-utils.mk: urlencode/urldecode macros Thomas Perale via buildroot
2024-04-07 17:44 ` Yann E. MORIN
2024-04-07 19:21 ` Arnout Vandecappelle via buildroot
2024-04-04 12:43 ` [Buildroot] [RFC PATCH 3/5] support/misc/cyclonedx.mk: support CycloneDX format Thomas Perale via buildroot
2024-04-04 12:43 ` [Buildroot] [RFC PATCH 4/5] support/misc/cyclonedx.mk: support spdx license check Thomas Perale via buildroot
2024-04-04 12:43 ` [Buildroot] [RFC PATCH 5/5] Makefile: add command to generate SBOM in CycloneDX format Thomas Perale via buildroot
2024-04-05 9:21 ` [Buildroot] [RFC PATCH 0/5] Support " Michael Nosthoff via buildroot
2024-04-05 21:31 ` Thomas Perale via buildroot
2024-04-07 21:15 ` Thomas Petazzoni via buildroot
2024-04-08 19:15 ` Yann E. MORIN [this message]
2024-04-09 12:17 ` Arnout Vandecappelle via buildroot
2024-04-10 17:21 ` Yann E. MORIN
2024-04-10 19:26 ` Arnout Vandecappelle via buildroot
2024-04-10 20:10 ` Thomas Petazzoni via buildroot
2024-04-10 20:55 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZhRCOocYgxC-C5GL@landeda \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=thomas.perale@essensium.com \
--cc=thomas.perale@mind.be \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox