You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #5529
Add provenance related data into TaskRun/PipelineRun status to record some authenticated metadata about how a software artifact was built i.e. the sources where remote resource came from.
typeProvenanceDatastruct {
ConfigSource*intoto.ConfigSource// In future, we can add more provenance-related fields here as needed that can // be piped from pipeline side.
}
Use case
Recently there is a clear requirement that the provenance needs to record the remote source information of the remote data in order to link the config file back to its origin. The commit sha for git resolver used at the moment of resolving the remote resource is the important information to record in the provenance when users only provide the branch/tag name for the resolver. Additionally, the url and the entrypoint (a path to a configuration file) are the source info to be recorded as well.
To give us the flexibility to add more provenance-related data into Run.Status, we aim to create the ProvenanceData type that is designed to wrap all the data needed including the ConfigSource.
Without having the structured type in Run.Status and ResolutionRequest.Status, the only way to achieve this is to passing the data through annotations, which has a couple of drawbacks.
unstructured data
hard to maintain and make changes in future if more provenance-related data is needed to be piped to Run object so that Chains can pick them up and record in the provenance
implementation challenges: passing/spreading around annotation maps is not elegant as opposed to a structured&standardized data type.
Feature request
Related to #5529
Add provenance related data into TaskRun/PipelineRun status to record some authenticated metadata about how a software artifact was built i.e. the sources where remote resource came from.
TaskRunStatusFieldswill bePipelineRunStatusFieldswill bewith
ProvenanceDatastruct:Use case
Recently there is a clear requirement that the provenance needs to record the remote source information of the remote data in order to link the config file back to its origin. The commit sha for git resolver used at the moment of resolving the remote resource is the important information to record in the provenance when users only provide the branch/tag name for the resolver. Additionally, the url and the entrypoint (a path to a configuration file) are the source info to be recorded as well.
ConfigSourcestruct. And the data is piped from remote resolver'sResolutionRequest's status as proposed in Add provenance-related field inResolutionRequest.Status#5529.ProvenanceDatatype that is designed to wrap all the data needed including theConfigSource.Without having the structured type in
Run.StatusandResolutionRequest.Status, the only way to achieve this is to passing the data through annotations, which has a couple of drawbacks.Data flow