[api] add ability to export results as CycloneDX attestations
Issue
What is the issue?
CycloneDX supports attestations. This is their way to do standards and they have native CRE support in their attestations.
Time for us to also support CycloneDX
Find a way to make OpenCRE dump attestation documents https://cyclonedx-python-library.readthedocs.io/en/latest/autoapi/cyclonedx/model/index.html#cyclonedx.model.ExternalReferenceType.ATTESTATION
https://github.com/CycloneDX/guides/blob/main/Attestations/en/0x30-Making-Attestations.md
Hi @northdpole, this issue has been inactive for a while if there is any work needed on this issue I’d be happy to contribute !!
Hey if this issue is still available could you pls assign this to me...I'd really want to work on this..
@northdpole @robvanderveer My current understanding is: 1.CycloneDX attestations are machine-readable declarations that map standards, requirements, and compliance claims. 2.CycloneDX already supports CRE identifiers via attestations, which makes CRE a natural central reference. 3.OpenCRE could initially support this by exporting its existing CRE-to-standard mappings as CycloneDX attestation documents.
For a minimal first implementation, I’d suggest: 1.Treat CRE IDs as primary requirement identifiers. 2.Export mapped standards (ASVS, NIST, ISO) as references linked to CRE nodes. 3.Generate basic attestation claims without evidence or signatures.
Evidence handling, confidence scoring, signatures, and advanced workflows could be deferred to follow-up work.
Happy to adjust this approach based on what you feel should be in or out of scope for an initial implementation.
Hi, I'd like to work on this. I'm interested in contributing as part of GSoC 2026. Can I be assigned?
Hi, I’m interested in working on this feature and would like to confirm the expected scope.
As I understand it, the goal is to extend the OpenCRE API so that query results can be exported as CycloneDX attestations, leveraging the existing CRE support in CycloneDX and following the guidance and data model from the CycloneDX attestations documentation and Python library.
My initial approach would be to:
Integrate the CycloneDX Python library to build attestation documents from OpenCRE results.
Add an API endpoint (and/or parameter on an existing endpoint) that returns results in CycloneDX attestation format.
Ensure the exported attestations correctly embed CRE references according to the CycloneDX guides you linked.
Before I proceed, could you confirm:
Which API endpoints or result types you’d like to support first for attestation export (e.g., specific map analysis or search results)?
Whether you have any preferred file format (JSON vs XML) or version requirements for the CycloneDX attestations?
Once that’s clear, I can draft a small design (API surface, data mapping, and example attestation output) and share it here for feedback.
/assign @saksham-official
@northdpole @robvanderveer Hi, I’d be interested in working on this issue if it’s available.
I’ve started reading through the CycloneDX attestation documentation and the related Python library references to understand how OpenCRE could generate/export attestation documents with native CRE support.
I’m currently exploring the relevant parts of the codebase and would be happy to investigate and implement this feature.