Skip to content

feat(extensions): show required materials - #173

Merged
migmartri merged 1 commit into
chainloop-dev:mainfrom
migmartri:subscribed-types
Jun 15, 2023
Merged

feat(extensions): show required materials#173
migmartri merged 1 commit into
chainloop-dev:mainfrom
migmartri:subscribed-types

Conversation

@migmartri

@migmartri migmartri commented Jun 15, 2023

Copy link
Copy Markdown
Member

Shows the list of required materials that an extension is subscribed to. This can be useful so the user knows what kind of material they need to setup in their contract to be picked up by the extension.

I do not indicate that an extension is triggered on attestation because I don't think it's that relevant for the configuration of the extension.

Additionally, I updated the API to leave room to future extension types

┌─────────────────┬─────────┬──────────────────────────────────────┬───────────────────────────────────────────────────────────┐
│ ID              │ VERSION │ MATERIAL REQUIREMENT                 │ DESCRIPTION                                               │
├─────────────────┼─────────┼──────────────────────────────────────┼───────────────────────────────────────────────────────────┤
│ dependencytrack │ 0.2     │ SBOM_CYCLONEDX_JSON, CONTAINER_IMAGE │ Send CycloneDX SBOMs to your Dependency-Track instance    │
├─────────────────┼─────────┼──────────────────────────────────────┼───────────────────────────────────────────────────────────┤
│ smtp            │ 0.1     │                                      │ Send emails with information about a received attestation │
├─────────────────┼─────────┼──────────────────────────────────────┼───────────────────────────────────────────────────────────┤
│ oci-registry    │ 0.1     │                                      │ Send attestations to a compatible OCI registry            │
└─────────────────┴─────────┴──────────────────────────────────────┴───────────────────────────────────────────────────────────┘

closes #170
refs #38

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri
migmartri requested a review from danlishka June 15, 2023 11:51

@danlishka danlishka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@migmartri
migmartri merged commit b2309f2 into chainloop-dev:main Jun 15, 2023
@migmartri
migmartri deleted the subscribed-types branch June 15, 2023 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[extensions SDK] show subscribed input types

2 participants