Documentation
¶
Index ¶
- Constants
- Variables
- func CreateAnnotation(name string) string
- type Attestation
- func (*Attestation) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation) GetAnnotations() map[string]string
- func (x *Attestation) GetAuth() *Attestation_Auth
- func (x *Attestation) GetBlockOnPolicyViolation() bool
- func (x *Attestation) GetBypassPolicyCheck() bool
- func (x *Attestation) GetCasBackend() *Attestation_CASBackend
- func (x *Attestation) GetEnvVars() map[string]string
- func (x *Attestation) GetFinishedAt() *timestamppb.Timestamp
- func (x *Attestation) GetHead() *Commit
- func (x *Attestation) GetInitializedAt() *timestamppb.Timestamp
- func (x *Attestation) GetMaterials() map[string]*Attestation_Material
- func (x *Attestation) GetPoliciesAllowedHostnames() []string
- func (x *Attestation) GetPolicyEvaluations() []*PolicyEvaluation
- func (x *Attestation) GetRunnerEnvironment() *RunnerEnvironment
- func (x *Attestation) GetRunnerType() v1.CraftingSchema_Runner_RunnerType
- func (x *Attestation) GetRunnerUrl() string
- func (x *Attestation) GetSigningOptions() *Attestation_SigningOptions
- func (x *Attestation) GetSkipRunnerEnvVars() bool
- func (x *Attestation) GetWorkflow() *WorkflowMetadata
- func (*Attestation) ProtoMessage()
- func (x *Attestation) ProtoReflect() protoreflect.Message
- func (x *Attestation) Reset()
- func (x *Attestation) String() string
- type Attestation_Auth
- func (*Attestation_Auth) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Auth) GetId() string
- func (x *Attestation_Auth) GetType() Attestation_Auth_AuthType
- func (*Attestation_Auth) ProtoMessage()
- func (x *Attestation_Auth) ProtoReflect() protoreflect.Message
- func (x *Attestation_Auth) Reset()
- func (x *Attestation_Auth) String() string
- type Attestation_Auth_AuthType
- func (Attestation_Auth_AuthType) Descriptor() protoreflect.EnumDescriptor
- func (x Attestation_Auth_AuthType) Enum() *Attestation_Auth_AuthType
- func (Attestation_Auth_AuthType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Attestation_Auth_AuthType) Number() protoreflect.EnumNumber
- func (x Attestation_Auth_AuthType) String() string
- func (Attestation_Auth_AuthType) Type() protoreflect.EnumType
- type Attestation_CASBackend
- func (*Attestation_CASBackend) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_CASBackend) GetCasBackendId() string
- func (x *Attestation_CASBackend) GetCasBackendName() string
- func (x *Attestation_CASBackend) GetFallback() bool
- func (*Attestation_CASBackend) ProtoMessage()
- func (x *Attestation_CASBackend) ProtoReflect() protoreflect.Message
- func (x *Attestation_CASBackend) Reset()
- func (x *Attestation_CASBackend) String() string
- type Attestation_Material
- func (m *Attestation_Material) CraftingStateToIntotoDescriptor(name string) (*intoto.ResourceDescriptor, error)
- func (*Attestation_Material) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material) GetAddedAt() *timestamppb.Timestamp
- func (x *Attestation_Material) GetAnnotations() map[string]string
- func (x *Attestation_Material) GetArtifact() *Attestation_Material_Artifact
- func (x *Attestation_Material) GetContainerImage() *Attestation_Material_ContainerImage
- func (m *Attestation_Material) GetEvaluableContent(value string, content []byte) ([]byte, error)
- func (x *Attestation_Material) GetId() string
- func (x *Attestation_Material) GetInlineCas() bool
- func (x *Attestation_Material) GetM() isAttestation_Material_M
- func (x *Attestation_Material) GetMaterialType() v1.CraftingSchema_Material_MaterialType
- func (x *Attestation_Material) GetOutput() bool
- func (x *Attestation_Material) GetRequired() bool
- func (x *Attestation_Material) GetSbomArtifact() *Attestation_Material_SBOMArtifact
- func (x *Attestation_Material) GetString_() *Attestation_Material_KeyVal
- func (x *Attestation_Material) GetUploadedToCas() bool
- func (m *Attestation_Material) NormalizedOutput() (*NormalizedMaterialOutput, error)
- func (*Attestation_Material) ProtoMessage()
- func (x *Attestation_Material) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material) Reset()
- func (x *Attestation_Material) String() string
- type Attestation_Material_Artifact
- func (*Attestation_Material_Artifact) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_Artifact) GetContent() []byte
- func (x *Attestation_Material_Artifact) GetDigest() string
- func (x *Attestation_Material_Artifact) GetId() stringdeprecated
- func (x *Attestation_Material_Artifact) GetIsSubject() bool
- func (x *Attestation_Material_Artifact) GetName() string
- func (*Attestation_Material_Artifact) ProtoMessage()
- func (x *Attestation_Material_Artifact) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_Artifact) Reset()
- func (x *Attestation_Material_Artifact) String() string
- type Attestation_Material_Artifact_
- type Attestation_Material_ContainerImage
- func (*Attestation_Material_ContainerImage) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_ContainerImage) GetDigest() string
- func (x *Attestation_Material_ContainerImage) GetHasLatestTag() *wrapperspb.BoolValue
- func (x *Attestation_Material_ContainerImage) GetId() stringdeprecated
- func (x *Attestation_Material_ContainerImage) GetIsSubject() bool
- func (x *Attestation_Material_ContainerImage) GetName() string
- func (x *Attestation_Material_ContainerImage) GetSignature() string
- func (x *Attestation_Material_ContainerImage) GetSignatureDigest() string
- func (x *Attestation_Material_ContainerImage) GetSignatureProvider() string
- func (x *Attestation_Material_ContainerImage) GetTag() string
- func (*Attestation_Material_ContainerImage) ProtoMessage()
- func (x *Attestation_Material_ContainerImage) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_ContainerImage) Reset()
- func (x *Attestation_Material_ContainerImage) String() string
- type Attestation_Material_ContainerImage_
- type Attestation_Material_KeyVal
- func (*Attestation_Material_KeyVal) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_KeyVal) GetDigest() string
- func (x *Attestation_Material_KeyVal) GetId() stringdeprecated
- func (x *Attestation_Material_KeyVal) GetValue() string
- func (*Attestation_Material_KeyVal) ProtoMessage()
- func (x *Attestation_Material_KeyVal) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_KeyVal) Reset()
- func (x *Attestation_Material_KeyVal) String() string
- type Attestation_Material_SBOMArtifact
- func (*Attestation_Material_SBOMArtifact) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_SBOMArtifact) GetArtifact() *Attestation_Material_Artifact
- func (x *Attestation_Material_SBOMArtifact) GetMainComponent() *Attestation_Material_SBOMArtifact_MainComponent
- func (*Attestation_Material_SBOMArtifact) ProtoMessage()
- func (x *Attestation_Material_SBOMArtifact) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_SBOMArtifact) Reset()
- func (x *Attestation_Material_SBOMArtifact) String() string
- type Attestation_Material_SBOMArtifact_MainComponent
- func (*Attestation_Material_SBOMArtifact_MainComponent) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_Material_SBOMArtifact_MainComponent) GetKind() string
- func (x *Attestation_Material_SBOMArtifact_MainComponent) GetName() string
- func (x *Attestation_Material_SBOMArtifact_MainComponent) GetVersion() string
- func (*Attestation_Material_SBOMArtifact_MainComponent) ProtoMessage()
- func (x *Attestation_Material_SBOMArtifact_MainComponent) ProtoReflect() protoreflect.Message
- func (x *Attestation_Material_SBOMArtifact_MainComponent) Reset()
- func (x *Attestation_Material_SBOMArtifact_MainComponent) String() string
- type Attestation_Material_SbomArtifact
- type Attestation_Material_String_
- type Attestation_SigningOptions
- func (*Attestation_SigningOptions) Descriptor() ([]byte, []int)deprecated
- func (x *Attestation_SigningOptions) GetSigningCa() string
- func (x *Attestation_SigningOptions) GetTimestampAuthorityUrl() string
- func (*Attestation_SigningOptions) ProtoMessage()
- func (x *Attestation_SigningOptions) ProtoReflect() protoreflect.Message
- func (x *Attestation_SigningOptions) Reset()
- func (x *Attestation_SigningOptions) String() string
- type Commit
- func (*Commit) Descriptor() ([]byte, []int)deprecated
- func (x *Commit) GetAuthorEmail() string
- func (x *Commit) GetAuthorName() string
- func (x *Commit) GetDate() *timestamppb.Timestamp
- func (x *Commit) GetHash() string
- func (x *Commit) GetMessage() string
- func (x *Commit) GetPlatformVerification() *Commit_CommitVerification
- func (x *Commit) GetRemotes() []*Commit_Remote
- func (x *Commit) GetSignature() string
- func (*Commit) ProtoMessage()
- func (x *Commit) ProtoReflect() protoreflect.Message
- func (x *Commit) Reset()
- func (x *Commit) String() string
- type Commit_CommitVerification
- func (*Commit_CommitVerification) Descriptor() ([]byte, []int)deprecated
- func (x *Commit_CommitVerification) GetAttempted() bool
- func (x *Commit_CommitVerification) GetKeyId() string
- func (x *Commit_CommitVerification) GetPlatform() string
- func (x *Commit_CommitVerification) GetReason() string
- func (x *Commit_CommitVerification) GetSignatureAlgorithm() string
- func (x *Commit_CommitVerification) GetStatus() Commit_CommitVerification_VerificationStatus
- func (*Commit_CommitVerification) ProtoMessage()
- func (x *Commit_CommitVerification) ProtoReflect() protoreflect.Message
- func (x *Commit_CommitVerification) Reset()
- func (x *Commit_CommitVerification) String() string
- type Commit_CommitVerification_VerificationStatus
- func (Commit_CommitVerification_VerificationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x Commit_CommitVerification_VerificationStatus) Enum() *Commit_CommitVerification_VerificationStatus
- func (Commit_CommitVerification_VerificationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x Commit_CommitVerification_VerificationStatus) Number() protoreflect.EnumNumber
- func (x Commit_CommitVerification_VerificationStatus) String() string
- func (Commit_CommitVerification_VerificationStatus) Type() protoreflect.EnumType
- type Commit_Remote
- func (*Commit_Remote) Descriptor() ([]byte, []int)deprecated
- func (x *Commit_Remote) GetName() string
- func (x *Commit_Remote) GetUrl() string
- func (*Commit_Remote) ProtoMessage()
- func (x *Commit_Remote) ProtoReflect() protoreflect.Message
- func (x *Commit_Remote) Reset()
- func (x *Commit_Remote) String() string
- type CraftingState
- func (*CraftingState) Descriptor() ([]byte, []int)deprecated
- func (state *CraftingState) GetAnnotations() []*v1.Annotation
- func (x *CraftingState) GetAttestation() *Attestation
- func (x *CraftingState) GetDryRun() bool
- func (state *CraftingState) GetEnvAllowList() []string
- func (x *CraftingState) GetInputSchema() *v1.CraftingSchema
- func (state *CraftingState) GetMaterials() []*v1.CraftingSchema_Material
- func (state *CraftingState) GetPolicies() *v1.Policies
- func (state *CraftingState) GetPolicyGroups() []*v1.PolicyGroupAttachment
- func (x *CraftingState) GetSchema() isCraftingState_Schema
- func (x *CraftingState) GetSchemaV2() *v1.CraftingSchemaV2
- func (x *CraftingState) GetUiDashboardUrl() string
- func (*CraftingState) ProtoMessage()
- func (x *CraftingState) ProtoReflect() protoreflect.Message
- func (x *CraftingState) Reset()
- func (x *CraftingState) String() string
- func (state *CraftingState) ValidateComplete(dryRun bool) error
- type CraftingState_InputSchema
- type CraftingState_SchemaV2
- type NormalizedMaterialOutput
- type PolicyAssessment
- func (*PolicyAssessment) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyAssessment) GetId() string
- func (x *PolicyAssessment) GetScope() string
- func (x *PolicyAssessment) GetStatus() string
- func (*PolicyAssessment) ProtoMessage()
- func (x *PolicyAssessment) ProtoReflect() protoreflect.Message
- func (x *PolicyAssessment) Reset()
- func (x *PolicyAssessment) String() string
- type PolicyAssessmentResult
- func (*PolicyAssessmentResult) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyAssessmentResult) GetAssessments() []*PolicyAssessment
- func (x *PolicyAssessmentResult) GetEffectiveStatus() string
- func (*PolicyAssessmentResult) ProtoMessage()
- func (x *PolicyAssessmentResult) ProtoReflect() protoreflect.Message
- func (x *PolicyAssessmentResult) Reset()
- func (x *PolicyAssessmentResult) String() string
- type PolicyEvaluation
- func (*PolicyEvaluation) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluation) GetAnnotations() map[string]string
- func (x *PolicyEvaluation) GetBody() stringdeprecated
- func (x *PolicyEvaluation) GetDescription() string
- func (x *PolicyEvaluation) GetGate() bool
- func (x *PolicyEvaluation) GetGroupReference() *PolicyEvaluation_Reference
- func (x *PolicyEvaluation) GetMaterialName() string
- func (x *PolicyEvaluation) GetName() string
- func (x *PolicyEvaluation) GetPolicyReference() *PolicyEvaluation_Reference
- func (x *PolicyEvaluation) GetRawResults() []*PolicyEvaluation_RawResult
- func (x *PolicyEvaluation) GetReferenceDigest() stringdeprecated
- func (x *PolicyEvaluation) GetReferenceName() stringdeprecated
- func (x *PolicyEvaluation) GetRequirements() []string
- func (x *PolicyEvaluation) GetRuntimeInputOverrides() []string
- func (x *PolicyEvaluation) GetSkipReasons() []string
- func (x *PolicyEvaluation) GetSkipped() bool
- func (x *PolicyEvaluation) GetSources() []string
- func (x *PolicyEvaluation) GetType() v1.CraftingSchema_Material_MaterialType
- func (x *PolicyEvaluation) GetViolations() []*PolicyEvaluation_Violation
- func (x *PolicyEvaluation) GetWith() map[string]string
- func (*PolicyEvaluation) ProtoMessage()
- func (x *PolicyEvaluation) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluation) Reset()
- func (x *PolicyEvaluation) String() string
- type PolicyEvaluationBundle
- func (*PolicyEvaluationBundle) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluationBundle) GetEvaluations() []*PolicyEvaluation
- func (*PolicyEvaluationBundle) ProtoMessage()
- func (x *PolicyEvaluationBundle) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluationBundle) Reset()
- func (x *PolicyEvaluationBundle) String() string
- type PolicyEvaluation_RawResult
- func (*PolicyEvaluation_RawResult) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluation_RawResult) GetInput() []byte
- func (x *PolicyEvaluation_RawResult) GetOutput() []byte
- func (*PolicyEvaluation_RawResult) ProtoMessage()
- func (x *PolicyEvaluation_RawResult) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluation_RawResult) Reset()
- func (x *PolicyEvaluation_RawResult) String() string
- type PolicyEvaluation_Reference
- func (*PolicyEvaluation_Reference) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluation_Reference) GetDigest() string
- func (x *PolicyEvaluation_Reference) GetName() string
- func (x *PolicyEvaluation_Reference) GetOrgName() string
- func (x *PolicyEvaluation_Reference) GetUri() string
- func (*PolicyEvaluation_Reference) ProtoMessage()
- func (x *PolicyEvaluation_Reference) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluation_Reference) Reset()
- func (x *PolicyEvaluation_Reference) String() string
- type PolicyEvaluation_Violation
- func (*PolicyEvaluation_Violation) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyEvaluation_Violation) GetFinding() isPolicyEvaluation_Violation_Finding
- func (x *PolicyEvaluation_Violation) GetLicenseViolation() *PolicyLicenseViolationFinding
- func (x *PolicyEvaluation_Violation) GetMessage() string
- func (x *PolicyEvaluation_Violation) GetSast() *PolicySASTFinding
- func (x *PolicyEvaluation_Violation) GetSubject() string
- func (x *PolicyEvaluation_Violation) GetSuppress() bool
- func (x *PolicyEvaluation_Violation) GetVulnerability() *PolicyVulnerabilityFinding
- func (*PolicyEvaluation_Violation) ProtoMessage()
- func (x *PolicyEvaluation_Violation) ProtoReflect() protoreflect.Message
- func (x *PolicyEvaluation_Violation) Reset()
- func (x *PolicyEvaluation_Violation) String() string
- type PolicyEvaluation_Violation_LicenseViolation
- type PolicyEvaluation_Violation_Sast
- type PolicyEvaluation_Violation_Vulnerability
- type PolicyLicenseViolationFinding
- func (*PolicyLicenseViolationFinding) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyLicenseViolationFinding) GetAssessment() *PolicyAssessmentResult
- func (x *PolicyLicenseViolationFinding) GetComponentName() string
- func (x *PolicyLicenseViolationFinding) GetComponentVersion() string
- func (x *PolicyLicenseViolationFinding) GetLicenseId() string
- func (x *PolicyLicenseViolationFinding) GetLicenseName() string
- func (x *PolicyLicenseViolationFinding) GetMessage() string
- func (x *PolicyLicenseViolationFinding) GetPackagePurl() string
- func (x *PolicyLicenseViolationFinding) GetRecommendation() string
- func (*PolicyLicenseViolationFinding) ProtoMessage()
- func (x *PolicyLicenseViolationFinding) ProtoReflect() protoreflect.Message
- func (x *PolicyLicenseViolationFinding) Reset()
- func (x *PolicyLicenseViolationFinding) String() string
- type PolicySASTFinding
- func (*PolicySASTFinding) Descriptor() ([]byte, []int)deprecated
- func (x *PolicySASTFinding) GetAssessment() *PolicyAssessmentResult
- func (x *PolicySASTFinding) GetCodeSnippet() string
- func (x *PolicySASTFinding) GetLineNumber() int32
- func (x *PolicySASTFinding) GetLocation() string
- func (x *PolicySASTFinding) GetMessage() string
- func (x *PolicySASTFinding) GetRecommendation() string
- func (x *PolicySASTFinding) GetRuleId() string
- func (x *PolicySASTFinding) GetSeverity() string
- func (x *PolicySASTFinding) GetSeverityScore() float64
- func (*PolicySASTFinding) ProtoMessage()
- func (x *PolicySASTFinding) ProtoReflect() protoreflect.Message
- func (x *PolicySASTFinding) Reset()
- func (x *PolicySASTFinding) String() string
- type PolicyVulnerabilityFinding
- func (*PolicyVulnerabilityFinding) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyVulnerabilityFinding) GetAssessment() *PolicyAssessmentResult
- func (x *PolicyVulnerabilityFinding) GetCvssV3Score() float64
- func (x *PolicyVulnerabilityFinding) GetCwes() []string
- func (x *PolicyVulnerabilityFinding) GetDescription() string
- func (x *PolicyVulnerabilityFinding) GetExternalId() string
- func (x *PolicyVulnerabilityFinding) GetFixedVersion() string
- func (x *PolicyVulnerabilityFinding) GetMessage() string
- func (x *PolicyVulnerabilityFinding) GetPackagePurl() string
- func (x *PolicyVulnerabilityFinding) GetRecommendation() string
- func (x *PolicyVulnerabilityFinding) GetSeverity() string
- func (*PolicyVulnerabilityFinding) ProtoMessage()
- func (x *PolicyVulnerabilityFinding) ProtoReflect() protoreflect.Message
- func (x *PolicyVulnerabilityFinding) Reset()
- func (x *PolicyVulnerabilityFinding) String() string
- type ProjectVersion
- func (*ProjectVersion) Descriptor() ([]byte, []int)deprecated
- func (x *ProjectVersion) GetMarkAsReleased() bool
- func (x *ProjectVersion) GetPrerelease() bool
- func (x *ProjectVersion) GetVersion() string
- func (*ProjectVersion) ProtoMessage()
- func (x *ProjectVersion) ProtoReflect() protoreflect.Message
- func (x *ProjectVersion) Reset()
- func (x *ProjectVersion) String() string
- type ResourceDescriptor
- func (*ResourceDescriptor) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceDescriptor) GetAnnotations() *structpb.Struct
- func (x *ResourceDescriptor) GetContent() []byte
- func (x *ResourceDescriptor) GetDigest() map[string]string
- func (x *ResourceDescriptor) GetDownloadLocation() string
- func (x *ResourceDescriptor) GetMediaType() string
- func (x *ResourceDescriptor) GetName() string
- func (x *ResourceDescriptor) GetUri() string
- func (*ResourceDescriptor) ProtoMessage()
- func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message
- func (x *ResourceDescriptor) Reset()
- func (x *ResourceDescriptor) String() string
- type RunnerEnvironment
- func (*RunnerEnvironment) Descriptor() ([]byte, []int)deprecated
- func (x *RunnerEnvironment) GetAuthenticated() bool
- func (x *RunnerEnvironment) GetEnvironment() string
- func (x *RunnerEnvironment) GetType() v1.CraftingSchema_Runner_RunnerType
- func (x *RunnerEnvironment) GetUrl() string
- func (x *RunnerEnvironment) GetWorkflowFilePath() string
- func (*RunnerEnvironment) ProtoMessage()
- func (x *RunnerEnvironment) ProtoReflect() protoreflect.Message
- func (x *RunnerEnvironment) Reset()
- func (x *RunnerEnvironment) String() string
- type WorkflowMetadata
- func (*WorkflowMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *WorkflowMetadata) GetContractName() string
- func (x *WorkflowMetadata) GetName() string
- func (x *WorkflowMetadata) GetOrganization() string
- func (x *WorkflowMetadata) GetProject() string
- func (x *WorkflowMetadata) GetProjectVersion() stringdeprecated
- func (x *WorkflowMetadata) GetSchemaRevision() string
- func (x *WorkflowMetadata) GetTeam() string
- func (x *WorkflowMetadata) GetVersion() *ProjectVersion
- func (x *WorkflowMetadata) GetWorkflowId() string
- func (x *WorkflowMetadata) GetWorkflowRunId() string
- func (*WorkflowMetadata) ProtoMessage()
- func (x *WorkflowMetadata) ProtoReflect() protoreflect.Message
- func (x *WorkflowMetadata) Reset()
- func (x *WorkflowMetadata) String() string
Constants ¶
const AnnotationPrefix = "chainloop."
const AnnotationValueTrue = "true"
AnnotationValueTrue is the value of an annotation that acts as a flag. Shared so that whoever sets one and whoever reads it cannot drift apart.
Variables ¶
var ( AnnotationMaterialType = CreateAnnotation("material.type") AnnotationMaterialName = CreateAnnotation("material.name") AnnotationMaterialSignature = CreateAnnotation("material.signature") AnnotationSignatureDigest = CreateAnnotation("material.signature.digest") AnnotationSignatureProvider = CreateAnnotation("material.signature.provider") AnnotationMaterialCAS = CreateAnnotation("material.cas") AnnotationMaterialInlineCAS = CreateAnnotation("material.cas.inline") AnnotationContainerTag = CreateAnnotation("material.image.tag") AnnotationsContainerLatestTag = CreateAnnotation("material.image.is_latest_tag") AnnotationsSBOMMainComponentName = CreateAnnotation("material.sbom.main_component.name") AnnotationsSBOMMainComponentType = CreateAnnotation("material.sbom.main_component.type") AnnotationsSBOMMainComponentVersion = CreateAnnotation("material.sbom.main_component.version") // AnnotationMaterialRedacted marks a material whose stored content was // transformed by its crafter before upload, to strip secrets out of it. Two // things follow from it: the recorded digest describes the redacted artifact // rather than the file on disk, and policy evaluation must be handed that // sanitized copy explicitly, because the file on disk still holds the secrets // (see GetEvaluableContent, which fails closed without it). AnnotationMaterialRedacted = CreateAnnotation("material.redacted") // AnnotationMaterialRedactionCount is how many secrets were replaced. AnnotationMaterialRedactionCount = CreateAnnotation("material.redaction.count") // AnnotationMaterialRedactionRules lists the detection rules that matched, // so a policy can act on the kind of credential that was present. AnnotationMaterialRedactionRules = CreateAnnotation("material.redaction.rules") // AnnotationMaterialRedactionSkipped marks a material uploaded without // redaction because the operator explicitly asked for it. Recorded so the // bypass is visible to policies rather than silent. AnnotationMaterialRedactionSkipped = CreateAnnotation("material.redaction.skipped") )
var ( Attestation_Auth_AuthType_name = map[int32]string{ 0: "AUTH_TYPE_UNSPECIFIED", 1: "AUTH_TYPE_USER", 2: "AUTH_TYPE_API_TOKEN", 3: "AUTH_TYPE_FEDERATED", } Attestation_Auth_AuthType_value = map[string]int32{ "AUTH_TYPE_UNSPECIFIED": 0, "AUTH_TYPE_USER": 1, "AUTH_TYPE_API_TOKEN": 2, "AUTH_TYPE_FEDERATED": 3, } )
Enum value maps for Attestation_Auth_AuthType.
var ( Commit_CommitVerification_VerificationStatus_name = map[int32]string{ 0: "unspecified", 1: "verified", 2: "unverified", 3: "unavailable", 4: "not_applicable", } Commit_CommitVerification_VerificationStatus_value = map[string]int32{ "unspecified": 0, "verified": 1, "unverified": 2, "unavailable": 3, "not_applicable": 4, } )
Enum value maps for Commit_CommitVerification_VerificationStatus.
var ErrRedactedContentRequired = errors.New(
"sanitized content is required to evaluate a redacted material: " +
"policies must never be handed the un-redacted original")
ErrRedactedContentRequired is returned when policy evaluation is asked to resolve a material whose stored copy was sanitized, without being given that copy. There is no safe source left: the file on disk is the un-redacted original, and for a CAS-backed material the sanitized bytes were streamed away and are not on the material at all.
var File_attestation_v1_crafting_state_proto protoreflect.FileDescriptor
Functions ¶
func CreateAnnotation ¶ added in v0.97.4
Types ¶
type Attestation ¶
type Attestation struct {
InitializedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=initialized_at,json=initializedAt,proto3" json:"initialized_at,omitempty"`
FinishedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
Workflow *WorkflowMetadata `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"`
Materials map[string]*Attestation_Material `` /* 145-byte string literal not displayed */
// Annotations for the attestation
Annotations map[string]string `` /* 149-byte string literal not displayed */
// List of env variables
EnvVars map[string]string `` /* 156-byte string literal not displayed */
RunnerUrl string `protobuf:"bytes,7,opt,name=runner_url,json=runnerUrl,proto3" json:"runner_url,omitempty"`
RunnerType v1.CraftingSchema_Runner_RunnerType `` /* 150-byte string literal not displayed */
// Head Commit of the environment where the attestation was executed (optional)
Head *Commit `protobuf:"bytes,9,opt,name=head,proto3" json:"head,omitempty"`
// Policies that materials in this attestation were validated against
PolicyEvaluations []*PolicyEvaluation `protobuf:"bytes,10,rep,name=policy_evaluations,json=policyEvaluations,proto3" json:"policy_evaluations,omitempty"`
// fail the attestation if policy evaluation fails
BlockOnPolicyViolation bool `` /* 133-byte string literal not displayed */
// bypass policy check
BypassPolicyCheck bool `protobuf:"varint,14,opt,name=bypass_policy_check,json=bypassPolicyCheck,proto3" json:"bypass_policy_check,omitempty"`
// Signing options
SigningOptions *Attestation_SigningOptions `protobuf:"bytes,15,opt,name=signing_options,json=signingOptions,proto3" json:"signing_options,omitempty"`
// Runner environment in which the attestation was crafted
RunnerEnvironment *RunnerEnvironment `protobuf:"bytes,16,opt,name=runner_environment,json=runnerEnvironment,proto3" json:"runner_environment,omitempty"`
// Authentication information used during attestation
Auth *Attestation_Auth `protobuf:"bytes,17,opt,name=auth,proto3" json:"auth,omitempty"`
// array of hostnames that are allowed to be used in the policies
PoliciesAllowedHostnames []string `` /* 136-byte string literal not displayed */
// CAS backend information used during attestation
CasBackend *Attestation_CASBackend `protobuf:"bytes,19,opt,name=cas_backend,json=casBackend,proto3" json:"cas_backend,omitempty"`
// skip storing the environment variables automatically discovered by the CI runner.
// The contract's env_allow_list is not affected by this flag.
SkipRunnerEnvVars bool `protobuf:"varint,20,opt,name=skip_runner_env_vars,json=skipRunnerEnvVars,proto3" json:"skip_runner_env_vars,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation) Descriptor
deprecated
func (*Attestation) Descriptor() ([]byte, []int)
Deprecated: Use Attestation.ProtoReflect.Descriptor instead.
func (*Attestation) GetAnnotations ¶
func (x *Attestation) GetAnnotations() map[string]string
func (*Attestation) GetAuth ¶ added in v1.12.0
func (x *Attestation) GetAuth() *Attestation_Auth
func (*Attestation) GetBlockOnPolicyViolation ¶ added in v0.148.0
func (x *Attestation) GetBlockOnPolicyViolation() bool
func (*Attestation) GetBypassPolicyCheck ¶ added in v0.153.0
func (x *Attestation) GetBypassPolicyCheck() bool
func (*Attestation) GetCasBackend ¶ added in v1.67.0
func (x *Attestation) GetCasBackend() *Attestation_CASBackend
func (*Attestation) GetEnvVars ¶
func (x *Attestation) GetEnvVars() map[string]string
func (*Attestation) GetFinishedAt ¶
func (x *Attestation) GetFinishedAt() *timestamppb.Timestamp
func (*Attestation) GetHead ¶
func (x *Attestation) GetHead() *Commit
func (*Attestation) GetInitializedAt ¶
func (x *Attestation) GetInitializedAt() *timestamppb.Timestamp
func (*Attestation) GetMaterials ¶
func (x *Attestation) GetMaterials() map[string]*Attestation_Material
func (*Attestation) GetPoliciesAllowedHostnames ¶ added in v1.39.0
func (x *Attestation) GetPoliciesAllowedHostnames() []string
func (*Attestation) GetPolicyEvaluations ¶
func (x *Attestation) GetPolicyEvaluations() []*PolicyEvaluation
func (*Attestation) GetRunnerEnvironment ¶ added in v1.0.0
func (x *Attestation) GetRunnerEnvironment() *RunnerEnvironment
func (*Attestation) GetRunnerType ¶
func (x *Attestation) GetRunnerType() v1.CraftingSchema_Runner_RunnerType
func (*Attestation) GetRunnerUrl ¶
func (x *Attestation) GetRunnerUrl() string
func (*Attestation) GetSigningOptions ¶ added in v0.170.0
func (x *Attestation) GetSigningOptions() *Attestation_SigningOptions
func (*Attestation) GetSkipRunnerEnvVars ¶ added in v1.100.1
func (x *Attestation) GetSkipRunnerEnvVars() bool
func (*Attestation) GetWorkflow ¶
func (x *Attestation) GetWorkflow() *WorkflowMetadata
func (*Attestation) ProtoMessage ¶
func (*Attestation) ProtoMessage()
func (*Attestation) ProtoReflect ¶
func (x *Attestation) ProtoReflect() protoreflect.Message
func (*Attestation) Reset ¶
func (x *Attestation) Reset()
func (*Attestation) String ¶
func (x *Attestation) String() string
type Attestation_Auth ¶ added in v1.12.0
type Attestation_Auth struct {
Type Attestation_Auth_AuthType `protobuf:"varint,1,opt,name=type,proto3,enum=attestation.v1.Attestation_Auth_AuthType" json:"type,omitempty"`
// Identifier of the authentication (user ID, token ID, etc.)
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation_Auth) Descriptor
deprecated
added in
v1.12.0
func (*Attestation_Auth) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Auth.ProtoReflect.Descriptor instead.
func (*Attestation_Auth) GetId ¶ added in v1.12.0
func (x *Attestation_Auth) GetId() string
func (*Attestation_Auth) GetType ¶ added in v1.12.0
func (x *Attestation_Auth) GetType() Attestation_Auth_AuthType
func (*Attestation_Auth) ProtoMessage ¶ added in v1.12.0
func (*Attestation_Auth) ProtoMessage()
func (*Attestation_Auth) ProtoReflect ¶ added in v1.12.0
func (x *Attestation_Auth) ProtoReflect() protoreflect.Message
func (*Attestation_Auth) Reset ¶ added in v1.12.0
func (x *Attestation_Auth) Reset()
func (*Attestation_Auth) String ¶ added in v1.12.0
func (x *Attestation_Auth) String() string
type Attestation_Auth_AuthType ¶ added in v1.12.0
type Attestation_Auth_AuthType int32
const ( Attestation_Auth_AUTH_TYPE_UNSPECIFIED Attestation_Auth_AuthType = 0 Attestation_Auth_AUTH_TYPE_USER Attestation_Auth_AuthType = 1 Attestation_Auth_AUTH_TYPE_API_TOKEN Attestation_Auth_AuthType = 2 Attestation_Auth_AUTH_TYPE_FEDERATED Attestation_Auth_AuthType = 3 )
func (Attestation_Auth_AuthType) Descriptor ¶ added in v1.12.0
func (Attestation_Auth_AuthType) Descriptor() protoreflect.EnumDescriptor
func (Attestation_Auth_AuthType) Enum ¶ added in v1.12.0
func (x Attestation_Auth_AuthType) Enum() *Attestation_Auth_AuthType
func (Attestation_Auth_AuthType) EnumDescriptor
deprecated
added in
v1.12.0
func (Attestation_Auth_AuthType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Attestation_Auth_AuthType.Descriptor instead.
func (Attestation_Auth_AuthType) Number ¶ added in v1.12.0
func (x Attestation_Auth_AuthType) Number() protoreflect.EnumNumber
func (Attestation_Auth_AuthType) String ¶ added in v1.12.0
func (x Attestation_Auth_AuthType) String() string
func (Attestation_Auth_AuthType) Type ¶ added in v1.12.0
func (Attestation_Auth_AuthType) Type() protoreflect.EnumType
type Attestation_CASBackend ¶ added in v1.67.0
type Attestation_CASBackend struct {
// UUID of the CAS backend
CasBackendId string `protobuf:"bytes,1,opt,name=cas_backend_id,json=casBackendId,proto3" json:"cas_backend_id,omitempty"`
// Name of the CAS backend
CasBackendName string `protobuf:"bytes,2,opt,name=cas_backend_name,json=casBackendName,proto3" json:"cas_backend_name,omitempty"`
// Whether this is a fallback backend
Fallback bool `protobuf:"varint,3,opt,name=fallback,proto3" json:"fallback,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation_CASBackend) Descriptor
deprecated
added in
v1.67.0
func (*Attestation_CASBackend) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_CASBackend.ProtoReflect.Descriptor instead.
func (*Attestation_CASBackend) GetCasBackendId ¶ added in v1.67.0
func (x *Attestation_CASBackend) GetCasBackendId() string
func (*Attestation_CASBackend) GetCasBackendName ¶ added in v1.67.0
func (x *Attestation_CASBackend) GetCasBackendName() string
func (*Attestation_CASBackend) GetFallback ¶ added in v1.67.0
func (x *Attestation_CASBackend) GetFallback() bool
func (*Attestation_CASBackend) ProtoMessage ¶ added in v1.67.0
func (*Attestation_CASBackend) ProtoMessage()
func (*Attestation_CASBackend) ProtoReflect ¶ added in v1.67.0
func (x *Attestation_CASBackend) ProtoReflect() protoreflect.Message
func (*Attestation_CASBackend) Reset ¶ added in v1.67.0
func (x *Attestation_CASBackend) Reset()
func (*Attestation_CASBackend) String ¶ added in v1.67.0
func (x *Attestation_CASBackend) String() string
type Attestation_Material ¶
type Attestation_Material struct {
Id string `protobuf:"bytes,12,opt,name=id,proto3" json:"id,omitempty"`
// Types that are valid to be assigned to M:
//
// *Attestation_Material_String_
// *Attestation_Material_ContainerImage_
// *Attestation_Material_Artifact_
// *Attestation_Material_SbomArtifact
M isAttestation_Material_M `protobuf_oneof:"m"`
AddedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"`
MaterialType v1.CraftingSchema_Material_MaterialType `` /* 160-byte string literal not displayed */
// Whether the material has been uploaded to the CAS
UploadedToCas bool `protobuf:"varint,7,opt,name=uploaded_to_cas,json=uploadedToCas,proto3" json:"uploaded_to_cas,omitempty"`
// If the material content has been injected inline in the attestation
// leveraging a form of inline CAS
InlineCas bool `protobuf:"varint,8,opt,name=inline_cas,json=inlineCas,proto3" json:"inline_cas,omitempty"`
// Annotations for the material
Annotations map[string]string `` /* 149-byte string literal not displayed */
Output bool `protobuf:"varint,10,opt,name=output,proto3" json:"output,omitempty"`
Required bool `protobuf:"varint,11,opt,name=required,proto3" json:"required,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation_Material) CraftingStateToIntotoDescriptor ¶ added in v0.97.4
func (m *Attestation_Material) CraftingStateToIntotoDescriptor(name string) (*intoto.ResourceDescriptor, error)
CraftingStateToIntotoDescriptor creates an intoto descriptor from a material in crafting state
func (*Attestation_Material) Descriptor
deprecated
func (*Attestation_Material) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material.ProtoReflect.Descriptor instead.
func (*Attestation_Material) GetAddedAt ¶
func (x *Attestation_Material) GetAddedAt() *timestamppb.Timestamp
func (*Attestation_Material) GetAnnotations ¶
func (x *Attestation_Material) GetAnnotations() map[string]string
func (*Attestation_Material) GetArtifact ¶
func (x *Attestation_Material) GetArtifact() *Attestation_Material_Artifact
func (*Attestation_Material) GetContainerImage ¶
func (x *Attestation_Material) GetContainerImage() *Attestation_Material_ContainerImage
func (*Attestation_Material) GetEvaluableContent ¶ added in v0.97.4
func (m *Attestation_Material) GetEvaluableContent(value string, content []byte) ([]byte, error)
GetEvaluableContent returns the content to be sent to policy evaluations.
content, when non-empty, is what policies are evaluated against, overriding both the inline bytes and the file at value. Crafters that transform an artifact before it leaves the machine — redacting secrets out of an AI coding session — report the bytes they stored so that the policy engine sees exactly those, whatever CAS backend is in use. Pass nil to resolve the content from the material or the file, which is what every other material does.
A material marked redacted with no content supplied fails closed. One consequence is worth knowing: such a material's policy input cannot be reconstructed from persisted crafting state alone, so any future push-time or server-side material evaluation has to plumb the bytes through as well.
func (*Attestation_Material) GetId ¶ added in v0.150.0
func (x *Attestation_Material) GetId() string
func (*Attestation_Material) GetInlineCas ¶
func (x *Attestation_Material) GetInlineCas() bool
func (*Attestation_Material) GetM ¶
func (x *Attestation_Material) GetM() isAttestation_Material_M
func (*Attestation_Material) GetMaterialType ¶
func (x *Attestation_Material) GetMaterialType() v1.CraftingSchema_Material_MaterialType
func (*Attestation_Material) GetOutput ¶ added in v0.150.0
func (x *Attestation_Material) GetOutput() bool
func (*Attestation_Material) GetRequired ¶ added in v0.150.0
func (x *Attestation_Material) GetRequired() bool
func (*Attestation_Material) GetSbomArtifact ¶ added in v0.139.0
func (x *Attestation_Material) GetSbomArtifact() *Attestation_Material_SBOMArtifact
func (*Attestation_Material) GetString_ ¶
func (x *Attestation_Material) GetString_() *Attestation_Material_KeyVal
func (*Attestation_Material) GetUploadedToCas ¶
func (x *Attestation_Material) GetUploadedToCas() bool
func (*Attestation_Material) NormalizedOutput ¶
func (m *Attestation_Material) NormalizedOutput() (*NormalizedMaterialOutput, error)
NormalizedOutput returns a common representation of the properties of a material regardless of how it's been encoded. For example, it's common to have materials based on artifacts, so we want to normalize the output
func (*Attestation_Material) ProtoMessage ¶
func (*Attestation_Material) ProtoMessage()
func (*Attestation_Material) ProtoReflect ¶
func (x *Attestation_Material) ProtoReflect() protoreflect.Message
func (*Attestation_Material) Reset ¶
func (x *Attestation_Material) Reset()
func (*Attestation_Material) String ¶
func (x *Attestation_Material) String() string
type Attestation_Material_Artifact ¶
type Attestation_Material_Artifact struct {
// NOT USED, kept for compatibility with servers that still perform server-side validation“
// TODO: remove after some time
//
// Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// filename, use for record purposes
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// the digest is enough to retrieve the artifact since it's stored in a CAS
// which also has annotated the fileName
Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
IsSubject bool `protobuf:"varint,4,opt,name=is_subject,json=isSubject,proto3" json:"is_subject,omitempty"`
// Inline content of the artifact.
// This is optional and is used for small artifacts that can be stored inline in the attestation
Content []byte `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation_Material_Artifact) Descriptor
deprecated
func (*Attestation_Material_Artifact) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_Artifact.ProtoReflect.Descriptor instead.
func (*Attestation_Material_Artifact) GetContent ¶
func (x *Attestation_Material_Artifact) GetContent() []byte
func (*Attestation_Material_Artifact) GetDigest ¶
func (x *Attestation_Material_Artifact) GetDigest() string
func (*Attestation_Material_Artifact) GetId
deprecated
func (x *Attestation_Material_Artifact) GetId() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*Attestation_Material_Artifact) GetIsSubject ¶
func (x *Attestation_Material_Artifact) GetIsSubject() bool
func (*Attestation_Material_Artifact) GetName ¶
func (x *Attestation_Material_Artifact) GetName() string
func (*Attestation_Material_Artifact) ProtoMessage ¶
func (*Attestation_Material_Artifact) ProtoMessage()
func (*Attestation_Material_Artifact) ProtoReflect ¶
func (x *Attestation_Material_Artifact) ProtoReflect() protoreflect.Message
func (*Attestation_Material_Artifact) Reset ¶
func (x *Attestation_Material_Artifact) Reset()
func (*Attestation_Material_Artifact) String ¶
func (x *Attestation_Material_Artifact) String() string
type Attestation_Material_Artifact_ ¶
type Attestation_Material_Artifact_ struct {
Artifact *Attestation_Material_Artifact `protobuf:"bytes,3,opt,name=artifact,proto3,oneof"`
}
type Attestation_Material_ContainerImage ¶
type Attestation_Material_ContainerImage struct {
// NOT USED, kept for compatibility with servers that still perform server-side validation“
// TODO: remove after some time
//
// Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
IsSubject bool `protobuf:"varint,4,opt,name=is_subject,json=isSubject,proto3" json:"is_subject,omitempty"`
// provided tag
Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"`
// Digest of the found signature for the image
SignatureDigest string `protobuf:"bytes,6,opt,name=signature_digest,json=signatureDigest,proto3" json:"signature_digest,omitempty"`
// The provider in charge of the signature
SignatureProvider string `protobuf:"bytes,7,opt,name=signature_provider,json=signatureProvider,proto3" json:"signature_provider,omitempty"`
// Base64 encoded signature payload, aka the OCI Signature Manifest
Signature string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`
// Indicates if the image has the latest tag. The image being checked
// might not explicitly have the latest tag, but it could also be tagged
// with the latest tag.
HasLatestTag *wrapperspb.BoolValue `protobuf:"bytes,9,opt,name=has_latest_tag,json=hasLatestTag,proto3" json:"has_latest_tag,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation_Material_ContainerImage) Descriptor
deprecated
func (*Attestation_Material_ContainerImage) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_ContainerImage.ProtoReflect.Descriptor instead.
func (*Attestation_Material_ContainerImage) GetDigest ¶
func (x *Attestation_Material_ContainerImage) GetDigest() string
func (*Attestation_Material_ContainerImage) GetHasLatestTag ¶ added in v0.139.0
func (x *Attestation_Material_ContainerImage) GetHasLatestTag() *wrapperspb.BoolValue
func (*Attestation_Material_ContainerImage) GetId
deprecated
func (x *Attestation_Material_ContainerImage) GetId() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*Attestation_Material_ContainerImage) GetIsSubject ¶
func (x *Attestation_Material_ContainerImage) GetIsSubject() bool
func (*Attestation_Material_ContainerImage) GetName ¶
func (x *Attestation_Material_ContainerImage) GetName() string
func (*Attestation_Material_ContainerImage) GetSignature ¶ added in v0.96.13
func (x *Attestation_Material_ContainerImage) GetSignature() string
func (*Attestation_Material_ContainerImage) GetSignatureDigest ¶ added in v0.96.13
func (x *Attestation_Material_ContainerImage) GetSignatureDigest() string
func (*Attestation_Material_ContainerImage) GetSignatureProvider ¶ added in v0.96.13
func (x *Attestation_Material_ContainerImage) GetSignatureProvider() string
func (*Attestation_Material_ContainerImage) GetTag ¶
func (x *Attestation_Material_ContainerImage) GetTag() string
func (*Attestation_Material_ContainerImage) ProtoMessage ¶
func (*Attestation_Material_ContainerImage) ProtoMessage()
func (*Attestation_Material_ContainerImage) ProtoReflect ¶
func (x *Attestation_Material_ContainerImage) ProtoReflect() protoreflect.Message
func (*Attestation_Material_ContainerImage) Reset ¶
func (x *Attestation_Material_ContainerImage) Reset()
func (*Attestation_Material_ContainerImage) String ¶
func (x *Attestation_Material_ContainerImage) String() string
type Attestation_Material_ContainerImage_ ¶
type Attestation_Material_ContainerImage_ struct {
ContainerImage *Attestation_Material_ContainerImage `protobuf:"bytes,2,opt,name=container_image,json=containerImage,proto3,oneof"`
}
type Attestation_Material_KeyVal ¶
type Attestation_Material_KeyVal struct {
// NOT USED, kept for compatibility with servers that still perform server-side validation“
// TODO: remove after some time
//
// Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation_Material_KeyVal) Descriptor
deprecated
func (*Attestation_Material_KeyVal) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_KeyVal.ProtoReflect.Descriptor instead.
func (*Attestation_Material_KeyVal) GetDigest ¶ added in v0.146.0
func (x *Attestation_Material_KeyVal) GetDigest() string
func (*Attestation_Material_KeyVal) GetId
deprecated
func (x *Attestation_Material_KeyVal) GetId() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*Attestation_Material_KeyVal) GetValue ¶
func (x *Attestation_Material_KeyVal) GetValue() string
func (*Attestation_Material_KeyVal) ProtoMessage ¶
func (*Attestation_Material_KeyVal) ProtoMessage()
func (*Attestation_Material_KeyVal) ProtoReflect ¶
func (x *Attestation_Material_KeyVal) ProtoReflect() protoreflect.Message
func (*Attestation_Material_KeyVal) Reset ¶
func (x *Attestation_Material_KeyVal) Reset()
func (*Attestation_Material_KeyVal) String ¶
func (x *Attestation_Material_KeyVal) String() string
type Attestation_Material_SBOMArtifact ¶ added in v0.139.0
type Attestation_Material_SBOMArtifact struct {
// The actual SBOM artifact
Artifact *Attestation_Material_Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"`
// The Main component if any the SBOM is related to
MainComponent *Attestation_Material_SBOMArtifact_MainComponent `protobuf:"bytes,2,opt,name=main_component,json=mainComponent,proto3" json:"main_component,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation_Material_SBOMArtifact) Descriptor
deprecated
added in
v0.139.0
func (*Attestation_Material_SBOMArtifact) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_SBOMArtifact.ProtoReflect.Descriptor instead.
func (*Attestation_Material_SBOMArtifact) GetArtifact ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) GetArtifact() *Attestation_Material_Artifact
func (*Attestation_Material_SBOMArtifact) GetMainComponent ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) GetMainComponent() *Attestation_Material_SBOMArtifact_MainComponent
func (*Attestation_Material_SBOMArtifact) ProtoMessage ¶ added in v0.139.0
func (*Attestation_Material_SBOMArtifact) ProtoMessage()
func (*Attestation_Material_SBOMArtifact) ProtoReflect ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) ProtoReflect() protoreflect.Message
func (*Attestation_Material_SBOMArtifact) Reset ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) Reset()
func (*Attestation_Material_SBOMArtifact) String ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact) String() string
type Attestation_Material_SBOMArtifact_MainComponent ¶ added in v0.139.0
type Attestation_Material_SBOMArtifact_MainComponent struct {
// The name of the main component
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The version of the main component
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// The kind of the main component
Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
// contains filtered or unexported fields
}
The main component of the SBOM
func (*Attestation_Material_SBOMArtifact_MainComponent) Descriptor
deprecated
added in
v0.139.0
func (*Attestation_Material_SBOMArtifact_MainComponent) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_Material_SBOMArtifact_MainComponent.ProtoReflect.Descriptor instead.
func (*Attestation_Material_SBOMArtifact_MainComponent) GetKind ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) GetKind() string
func (*Attestation_Material_SBOMArtifact_MainComponent) GetName ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) GetName() string
func (*Attestation_Material_SBOMArtifact_MainComponent) GetVersion ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) GetVersion() string
func (*Attestation_Material_SBOMArtifact_MainComponent) ProtoMessage ¶ added in v0.139.0
func (*Attestation_Material_SBOMArtifact_MainComponent) ProtoMessage()
func (*Attestation_Material_SBOMArtifact_MainComponent) ProtoReflect ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) ProtoReflect() protoreflect.Message
func (*Attestation_Material_SBOMArtifact_MainComponent) Reset ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) Reset()
func (*Attestation_Material_SBOMArtifact_MainComponent) String ¶ added in v0.139.0
func (x *Attestation_Material_SBOMArtifact_MainComponent) String() string
type Attestation_Material_SbomArtifact ¶ added in v0.139.0
type Attestation_Material_SbomArtifact struct {
SbomArtifact *Attestation_Material_SBOMArtifact `protobuf:"bytes,4,opt,name=sbom_artifact,json=sbomArtifact,proto3,oneof"`
}
type Attestation_Material_String_ ¶
type Attestation_Material_String_ struct {
String_ *Attestation_Material_KeyVal `protobuf:"bytes,1,opt,name=string,proto3,oneof"`
}
type Attestation_SigningOptions ¶ added in v0.170.0
type Attestation_SigningOptions struct {
// TSA URL
TimestampAuthorityUrl string `` /* 126-byte string literal not displayed */
// Signing CA to be used for signing
SigningCa string `protobuf:"bytes,2,opt,name=signing_ca,json=signingCa,proto3" json:"signing_ca,omitempty"`
// contains filtered or unexported fields
}
func (*Attestation_SigningOptions) Descriptor
deprecated
added in
v0.170.0
func (*Attestation_SigningOptions) Descriptor() ([]byte, []int)
Deprecated: Use Attestation_SigningOptions.ProtoReflect.Descriptor instead.
func (*Attestation_SigningOptions) GetSigningCa ¶ added in v1.0.0
func (x *Attestation_SigningOptions) GetSigningCa() string
func (*Attestation_SigningOptions) GetTimestampAuthorityUrl ¶ added in v0.170.0
func (x *Attestation_SigningOptions) GetTimestampAuthorityUrl() string
func (*Attestation_SigningOptions) ProtoMessage ¶ added in v0.170.0
func (*Attestation_SigningOptions) ProtoMessage()
func (*Attestation_SigningOptions) ProtoReflect ¶ added in v0.170.0
func (x *Attestation_SigningOptions) ProtoReflect() protoreflect.Message
func (*Attestation_SigningOptions) Reset ¶ added in v0.170.0
func (x *Attestation_SigningOptions) Reset()
func (*Attestation_SigningOptions) String ¶ added in v0.170.0
func (x *Attestation_SigningOptions) String() string
type Commit ¶
type Commit struct {
Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
// Commit authors might not include email i.e "Flux <>"
AuthorEmail string `protobuf:"bytes,2,opt,name=author_email,json=authorEmail,proto3" json:"author_email,omitempty"`
AuthorName string `protobuf:"bytes,3,opt,name=author_name,json=authorName,proto3" json:"author_name,omitempty"`
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
Date *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=date,proto3" json:"date,omitempty"`
Remotes []*Commit_Remote `protobuf:"bytes,6,rep,name=remotes,proto3" json:"remotes,omitempty"`
Signature string `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
// Platform verification information (GitHub/GitLab signature verification)
PlatformVerification *Commit_CommitVerification `` /* 127-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Commit) Descriptor
deprecated
func (*Commit) GetAuthorEmail ¶
func (*Commit) GetAuthorName ¶
func (*Commit) GetDate ¶
func (x *Commit) GetDate() *timestamppb.Timestamp
func (*Commit) GetMessage ¶
func (*Commit) GetPlatformVerification ¶ added in v1.70.0
func (x *Commit) GetPlatformVerification() *Commit_CommitVerification
func (*Commit) GetRemotes ¶
func (x *Commit) GetRemotes() []*Commit_Remote
func (*Commit) GetSignature ¶ added in v0.114.0
func (*Commit) ProtoMessage ¶
func (*Commit) ProtoMessage()
func (*Commit) ProtoReflect ¶
func (x *Commit) ProtoReflect() protoreflect.Message
type Commit_CommitVerification ¶ added in v1.70.0
type Commit_CommitVerification struct {
// Whether verification was attempted
Attempted bool `protobuf:"varint,1,opt,name=attempted,proto3" json:"attempted,omitempty"`
// Verification status
Status Commit_CommitVerification_VerificationStatus `` /* 131-byte string literal not displayed */
// Human-readable reason for the status
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
// Platform that performed the verification (e.g., "github", "gitlab")
Platform string `protobuf:"bytes,4,opt,name=platform,proto3" json:"platform,omitempty"`
// Optional: The signing key ID if verified
KeyId string `protobuf:"bytes,5,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
// Optional: The signature algorithm used
SignatureAlgorithm string `protobuf:"bytes,6,opt,name=signature_algorithm,json=signatureAlgorithm,proto3" json:"signature_algorithm,omitempty"`
// contains filtered or unexported fields
}
func (*Commit_CommitVerification) Descriptor
deprecated
added in
v1.70.0
func (*Commit_CommitVerification) Descriptor() ([]byte, []int)
Deprecated: Use Commit_CommitVerification.ProtoReflect.Descriptor instead.
func (*Commit_CommitVerification) GetAttempted ¶ added in v1.70.0
func (x *Commit_CommitVerification) GetAttempted() bool
func (*Commit_CommitVerification) GetKeyId ¶ added in v1.70.0
func (x *Commit_CommitVerification) GetKeyId() string
func (*Commit_CommitVerification) GetPlatform ¶ added in v1.70.0
func (x *Commit_CommitVerification) GetPlatform() string
func (*Commit_CommitVerification) GetReason ¶ added in v1.70.0
func (x *Commit_CommitVerification) GetReason() string
func (*Commit_CommitVerification) GetSignatureAlgorithm ¶ added in v1.70.0
func (x *Commit_CommitVerification) GetSignatureAlgorithm() string
func (*Commit_CommitVerification) GetStatus ¶ added in v1.70.0
func (x *Commit_CommitVerification) GetStatus() Commit_CommitVerification_VerificationStatus
func (*Commit_CommitVerification) ProtoMessage ¶ added in v1.70.0
func (*Commit_CommitVerification) ProtoMessage()
func (*Commit_CommitVerification) ProtoReflect ¶ added in v1.70.0
func (x *Commit_CommitVerification) ProtoReflect() protoreflect.Message
func (*Commit_CommitVerification) Reset ¶ added in v1.70.0
func (x *Commit_CommitVerification) Reset()
func (*Commit_CommitVerification) String ¶ added in v1.70.0
func (x *Commit_CommitVerification) String() string
type Commit_CommitVerification_VerificationStatus ¶ added in v1.70.0
type Commit_CommitVerification_VerificationStatus int32
buf:lint:ignore ENUM_VALUE_UPPER_SNAKE_CASE buf:lint:ignore ENUM_VALUE_PREFIX buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX
const ( Commit_CommitVerification_unspecified Commit_CommitVerification_VerificationStatus = 0 // Successfully verified by platform Commit_CommitVerification_verified Commit_CommitVerification_VerificationStatus = 1 // Platform checked but signature is invalid/unverified Commit_CommitVerification_unverified Commit_CommitVerification_VerificationStatus = 2 Commit_CommitVerification_unavailable Commit_CommitVerification_VerificationStatus = 3 // Platform doesn't support verification or no commit signature present Commit_CommitVerification_not_applicable Commit_CommitVerification_VerificationStatus = 4 )
func (Commit_CommitVerification_VerificationStatus) Descriptor ¶ added in v1.70.0
func (Commit_CommitVerification_VerificationStatus) Descriptor() protoreflect.EnumDescriptor
func (Commit_CommitVerification_VerificationStatus) EnumDescriptor
deprecated
added in
v1.70.0
func (Commit_CommitVerification_VerificationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Commit_CommitVerification_VerificationStatus.Descriptor instead.
func (Commit_CommitVerification_VerificationStatus) Number ¶ added in v1.70.0
func (x Commit_CommitVerification_VerificationStatus) Number() protoreflect.EnumNumber
func (Commit_CommitVerification_VerificationStatus) String ¶ added in v1.70.0
func (x Commit_CommitVerification_VerificationStatus) String() string
func (Commit_CommitVerification_VerificationStatus) Type ¶ added in v1.70.0
func (Commit_CommitVerification_VerificationStatus) Type() protoreflect.EnumType
type Commit_Remote ¶
type Commit_Remote struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
func (*Commit_Remote) Descriptor
deprecated
func (*Commit_Remote) Descriptor() ([]byte, []int)
Deprecated: Use Commit_Remote.ProtoReflect.Descriptor instead.
func (*Commit_Remote) GetName ¶
func (x *Commit_Remote) GetName() string
func (*Commit_Remote) GetUrl ¶
func (x *Commit_Remote) GetUrl() string
func (*Commit_Remote) ProtoMessage ¶
func (*Commit_Remote) ProtoMessage()
func (*Commit_Remote) ProtoReflect ¶
func (x *Commit_Remote) ProtoReflect() protoreflect.Message
func (*Commit_Remote) Reset ¶
func (x *Commit_Remote) Reset()
func (*Commit_Remote) String ¶
func (x *Commit_Remote) String() string
type CraftingState ¶
type CraftingState struct {
// Types that are valid to be assigned to Schema:
//
// *CraftingState_InputSchema
// *CraftingState_SchemaV2
Schema isCraftingState_Schema `protobuf_oneof:"schema"`
Attestation *Attestation `protobuf:"bytes,2,opt,name=attestation,proto3" json:"attestation,omitempty"`
DryRun bool `protobuf:"varint,3,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
// External URL of the platform UI, if available
UiDashboardUrl string `protobuf:"bytes,5,opt,name=ui_dashboard_url,json=uiDashboardUrl,proto3" json:"ui_dashboard_url,omitempty"`
// contains filtered or unexported fields
}
Intermediate information that will get stored in the system while the run is being executed
func (*CraftingState) Descriptor
deprecated
func (*CraftingState) Descriptor() ([]byte, []int)
Deprecated: Use CraftingState.ProtoReflect.Descriptor instead.
func (*CraftingState) GetAnnotations ¶ added in v1.50.0
func (state *CraftingState) GetAnnotations() []*v1.Annotation
GetAnnotations returns the annotations from either v1 or v2 schema
func (*CraftingState) GetAttestation ¶
func (x *CraftingState) GetAttestation() *Attestation
func (*CraftingState) GetDryRun ¶
func (x *CraftingState) GetDryRun() bool
func (*CraftingState) GetEnvAllowList ¶ added in v1.50.0
func (state *CraftingState) GetEnvAllowList() []string
GetEnvAllowList returns the environment allow list from either v1 or v2 schema
func (*CraftingState) GetInputSchema ¶
func (x *CraftingState) GetInputSchema() *v1.CraftingSchema
func (*CraftingState) GetMaterials ¶ added in v1.50.0
func (state *CraftingState) GetMaterials() []*v1.CraftingSchema_Material
GetMaterials returns the materials from either v1 or v2 schema
func (*CraftingState) GetPolicies ¶ added in v1.50.0
func (state *CraftingState) GetPolicies() *v1.Policies
GetPolicies returns the policies from either v1 or v2 schema
func (*CraftingState) GetPolicyGroups ¶ added in v1.50.0
func (state *CraftingState) GetPolicyGroups() []*v1.PolicyGroupAttachment
GetPolicyGroups returns the policy groups from either v1 or v2 schema
func (*CraftingState) GetSchema ¶ added in v1.50.0
func (x *CraftingState) GetSchema() isCraftingState_Schema
func (*CraftingState) GetSchemaV2 ¶ added in v1.50.0
func (x *CraftingState) GetSchemaV2() *v1.CraftingSchemaV2
func (*CraftingState) GetUiDashboardUrl ¶ added in v1.72.0
func (x *CraftingState) GetUiDashboardUrl() string
func (*CraftingState) ProtoMessage ¶
func (*CraftingState) ProtoMessage()
func (*CraftingState) ProtoReflect ¶
func (x *CraftingState) ProtoReflect() protoreflect.Message
func (*CraftingState) Reset ¶
func (x *CraftingState) Reset()
func (*CraftingState) String ¶
func (x *CraftingState) String() string
func (*CraftingState) ValidateComplete ¶
func (state *CraftingState) ValidateComplete(dryRun bool) error
ValidateComplete makes sure that the crafting state has been completed before it gets passed to the renderer
type CraftingState_InputSchema ¶ added in v1.50.0
type CraftingState_InputSchema struct {
InputSchema *v1.CraftingSchema `protobuf:"bytes,1,opt,name=input_schema,json=inputSchema,proto3,oneof"`
}
type CraftingState_SchemaV2 ¶ added in v1.50.0
type CraftingState_SchemaV2 struct {
SchemaV2 *v1.CraftingSchemaV2 `protobuf:"bytes,4,opt,name=schema_v2,json=schemaV2,proto3,oneof"`
}
type PolicyAssessment ¶ added in v1.96.0
type PolicyAssessment struct {
// Platform assessment UUID.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Platform AssessmentStatus enum name, e.g. "ASSESSMENT_STATUS_NOT_AFFECTED".
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
// Platform AssessmentScope enum name, e.g. "ASSESSMENT_SCOPE_PROJECT".
Scope string `protobuf:"bytes,3,opt,name=scope,proto3" json:"scope,omitempty"`
// contains filtered or unexported fields
}
Audit-critical subset of an assessment. Full record is reachable via AssessmentService.Get on the platform using `id`.
func (*PolicyAssessment) Descriptor
deprecated
added in
v1.96.0
func (*PolicyAssessment) Descriptor() ([]byte, []int)
Deprecated: Use PolicyAssessment.ProtoReflect.Descriptor instead.
func (*PolicyAssessment) GetId ¶ added in v1.96.0
func (x *PolicyAssessment) GetId() string
func (*PolicyAssessment) GetScope ¶ added in v1.96.0
func (x *PolicyAssessment) GetScope() string
func (*PolicyAssessment) GetStatus ¶ added in v1.96.0
func (x *PolicyAssessment) GetStatus() string
func (*PolicyAssessment) ProtoMessage ¶ added in v1.96.0
func (*PolicyAssessment) ProtoMessage()
func (*PolicyAssessment) ProtoReflect ¶ added in v1.96.0
func (x *PolicyAssessment) ProtoReflect() protoreflect.Message
func (*PolicyAssessment) Reset ¶ added in v1.96.0
func (x *PolicyAssessment) Reset()
func (*PolicyAssessment) String ¶ added in v1.96.0
func (x *PolicyAssessment) String() string
type PolicyAssessmentResult ¶ added in v1.96.0
type PolicyAssessmentResult struct {
// Precedence-resolved status across `assessments`. Values use the
// platform's AssessmentStatus enum names, e.g.
// "ASSESSMENT_STATUS_NOT_AFFECTED".
EffectiveStatus string `protobuf:"bytes,1,opt,name=effective_status,json=effectiveStatus,proto3" json:"effective_status,omitempty"`
// Assessments matching the finding's identity tuple.
Assessments []*PolicyAssessment `protobuf:"bytes,2,rep,name=assessments,proto3" json:"assessments,omitempty"`
// contains filtered or unexported fields
}
Assessment context attached to a policy finding by the policy engine via the chainloop.effective_assessments builtin. Sent to CAS as part of the PolicyEvaluationBundle.
func (*PolicyAssessmentResult) Descriptor
deprecated
added in
v1.96.0
func (*PolicyAssessmentResult) Descriptor() ([]byte, []int)
Deprecated: Use PolicyAssessmentResult.ProtoReflect.Descriptor instead.
func (*PolicyAssessmentResult) GetAssessments ¶ added in v1.96.0
func (x *PolicyAssessmentResult) GetAssessments() []*PolicyAssessment
func (*PolicyAssessmentResult) GetEffectiveStatus ¶ added in v1.96.0
func (x *PolicyAssessmentResult) GetEffectiveStatus() string
func (*PolicyAssessmentResult) ProtoMessage ¶ added in v1.96.0
func (*PolicyAssessmentResult) ProtoMessage()
func (*PolicyAssessmentResult) ProtoReflect ¶ added in v1.96.0
func (x *PolicyAssessmentResult) ProtoReflect() protoreflect.Message
func (*PolicyAssessmentResult) Reset ¶ added in v1.96.0
func (x *PolicyAssessmentResult) Reset()
func (*PolicyAssessmentResult) String ¶ added in v1.96.0
func (x *PolicyAssessmentResult) String() string
type PolicyEvaluation ¶
type PolicyEvaluation struct {
// The policy name from the policy spec
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
MaterialName string `protobuf:"bytes,2,opt,name=material_name,json=materialName,proto3" json:"material_name,omitempty"`
// the body of the policy. This field will be empty if there is a FQDN reference to the policy
//
// Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
// Base64 representation of run scripts. It might be empty if there is a FQDN reference to the policy
Sources []string `protobuf:"bytes,12,rep,name=sources,proto3" json:"sources,omitempty"`
// fully qualified reference to the policy
// i.e
// http://my-domain.com/foo.yaml
// file://foo.yaml
// chainloop://my-provider.com/foo@sha256:1234
// NOTE: embedded policies will not have a reference
// Deprecated: use policy_reference instead
//
// Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
ReferenceDigest string `protobuf:"bytes,10,opt,name=reference_digest,json=referenceDigest,proto3" json:"reference_digest,omitempty"`
// Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
ReferenceName string `protobuf:"bytes,11,opt,name=reference_name,json=referenceName,proto3" json:"reference_name,omitempty"`
Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
Annotations map[string]string `` /* 149-byte string literal not displayed */
// The policy violations, if any
Violations []*PolicyEvaluation_Violation `protobuf:"bytes,4,rep,name=violations,proto3" json:"violations,omitempty"`
// arguments, as they come from the policy attachment
With map[string]string `` /* 135-byte string literal not displayed */
// material type, if any, of the evaluated policy
Type v1.CraftingSchema_Material_MaterialType `protobuf:"varint,8,opt,name=type,proto3,enum=workflowcontract.v1.CraftingSchema_Material_MaterialType" json:"type,omitempty"`
// whether this evaluation was skipped or not (because of an invalid input, for example)
Skipped bool `protobuf:"varint,13,opt,name=skipped,proto3" json:"skipped,omitempty"`
// Evaluation messages, intended to communicate evaluation errors (invalid input)
SkipReasons []string `protobuf:"bytes,14,rep,name=skip_reasons,json=skipReasons,proto3" json:"skip_reasons,omitempty"`
// Group this evaluated policy belongs to, if any
PolicyReference *PolicyEvaluation_Reference `protobuf:"bytes,15,opt,name=policy_reference,json=policyReference,proto3" json:"policy_reference,omitempty"`
GroupReference *PolicyEvaluation_Reference `protobuf:"bytes,16,opt,name=group_reference,json=groupReference,proto3" json:"group_reference,omitempty"`
// List of requirements this policy contributes to satisfy
Requirements []string `protobuf:"bytes,17,rep,name=requirements,proto3" json:"requirements,omitempty"`
// Raw inputs and outputs from the policy engine, preserved for debugging.
RawResults []*PolicyEvaluation_RawResult `protobuf:"bytes,18,rep,name=raw_results,json=rawResults,proto3" json:"raw_results,omitempty"`
// Whether the policy evaluation result should block the attestation (inherited from the policy attachment)
Gate bool `protobuf:"varint,19,opt,name=gate,proto3" json:"gate,omitempty"`
// Names of policy inputs whose values were supplied or overridden at runtime
// (e.g. via --policy-input-from-file) rather than coming solely from the
// contract. The effective merged values live in `with`; this only records
// which input names were touched at runtime. Empty means no runtime override.
RuntimeInputOverrides []string `` /* 127-byte string literal not displayed */
// contains filtered or unexported fields
}
A policy executed against an attestation or material
func (*PolicyEvaluation) Descriptor
deprecated
func (*PolicyEvaluation) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluation.ProtoReflect.Descriptor instead.
func (*PolicyEvaluation) GetAnnotations ¶
func (x *PolicyEvaluation) GetAnnotations() map[string]string
func (*PolicyEvaluation) GetBody
deprecated
func (x *PolicyEvaluation) GetBody() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*PolicyEvaluation) GetDescription ¶
func (x *PolicyEvaluation) GetDescription() string
func (*PolicyEvaluation) GetGate ¶ added in v1.64.0
func (x *PolicyEvaluation) GetGate() bool
func (*PolicyEvaluation) GetGroupReference ¶ added in v0.102.0
func (x *PolicyEvaluation) GetGroupReference() *PolicyEvaluation_Reference
func (*PolicyEvaluation) GetMaterialName ¶
func (x *PolicyEvaluation) GetMaterialName() string
func (*PolicyEvaluation) GetName ¶
func (x *PolicyEvaluation) GetName() string
func (*PolicyEvaluation) GetPolicyReference ¶ added in v0.96.5
func (x *PolicyEvaluation) GetPolicyReference() *PolicyEvaluation_Reference
func (*PolicyEvaluation) GetRawResults ¶ added in v1.42.0
func (x *PolicyEvaluation) GetRawResults() []*PolicyEvaluation_RawResult
func (*PolicyEvaluation) GetReferenceDigest
deprecated
added in
v0.96.6
func (x *PolicyEvaluation) GetReferenceDigest() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*PolicyEvaluation) GetReferenceName
deprecated
added in
v0.96.6
func (x *PolicyEvaluation) GetReferenceName() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*PolicyEvaluation) GetRequirements ¶ added in v0.112.0
func (x *PolicyEvaluation) GetRequirements() []string
func (*PolicyEvaluation) GetRuntimeInputOverrides ¶ added in v1.103.0
func (x *PolicyEvaluation) GetRuntimeInputOverrides() []string
func (*PolicyEvaluation) GetSkipReasons ¶ added in v0.96.21
func (x *PolicyEvaluation) GetSkipReasons() []string
func (*PolicyEvaluation) GetSkipped ¶ added in v0.96.21
func (x *PolicyEvaluation) GetSkipped() bool
func (*PolicyEvaluation) GetSources ¶ added in v0.96.9
func (x *PolicyEvaluation) GetSources() []string
func (*PolicyEvaluation) GetType ¶ added in v0.96.3
func (x *PolicyEvaluation) GetType() v1.CraftingSchema_Material_MaterialType
func (*PolicyEvaluation) GetViolations ¶
func (x *PolicyEvaluation) GetViolations() []*PolicyEvaluation_Violation
func (*PolicyEvaluation) GetWith ¶ added in v0.96.0
func (x *PolicyEvaluation) GetWith() map[string]string
func (*PolicyEvaluation) ProtoMessage ¶
func (*PolicyEvaluation) ProtoMessage()
func (*PolicyEvaluation) ProtoReflect ¶
func (x *PolicyEvaluation) ProtoReflect() protoreflect.Message
func (*PolicyEvaluation) Reset ¶
func (x *PolicyEvaluation) Reset()
func (*PolicyEvaluation) String ¶
func (x *PolicyEvaluation) String() string
type PolicyEvaluationBundle ¶ added in v1.89.0
type PolicyEvaluationBundle struct {
Evaluations []*PolicyEvaluation `protobuf:"bytes,1,rep,name=evaluations,proto3" json:"evaluations,omitempty"`
// contains filtered or unexported fields
}
Bundle of all policy evaluations for an attestation, stored as a CAS object.
func (*PolicyEvaluationBundle) Descriptor
deprecated
added in
v1.89.0
func (*PolicyEvaluationBundle) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluationBundle.ProtoReflect.Descriptor instead.
func (*PolicyEvaluationBundle) GetEvaluations ¶ added in v1.89.0
func (x *PolicyEvaluationBundle) GetEvaluations() []*PolicyEvaluation
func (*PolicyEvaluationBundle) ProtoMessage ¶ added in v1.89.0
func (*PolicyEvaluationBundle) ProtoMessage()
func (*PolicyEvaluationBundle) ProtoReflect ¶ added in v1.89.0
func (x *PolicyEvaluationBundle) ProtoReflect() protoreflect.Message
func (*PolicyEvaluationBundle) Reset ¶ added in v1.89.0
func (x *PolicyEvaluationBundle) Reset()
func (*PolicyEvaluationBundle) String ¶ added in v1.89.0
func (x *PolicyEvaluationBundle) String() string
type PolicyEvaluation_RawResult ¶ added in v1.42.0
type PolicyEvaluation_RawResult struct {
// Input data provided to the policy engine
Input []byte `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
// Output data returned by the policy engine
Output []byte `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
// contains filtered or unexported fields
}
func (*PolicyEvaluation_RawResult) Descriptor
deprecated
added in
v1.42.0
func (*PolicyEvaluation_RawResult) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluation_RawResult.ProtoReflect.Descriptor instead.
func (*PolicyEvaluation_RawResult) GetInput ¶ added in v1.42.0
func (x *PolicyEvaluation_RawResult) GetInput() []byte
func (*PolicyEvaluation_RawResult) GetOutput ¶ added in v1.42.0
func (x *PolicyEvaluation_RawResult) GetOutput() []byte
func (*PolicyEvaluation_RawResult) ProtoMessage ¶ added in v1.42.0
func (*PolicyEvaluation_RawResult) ProtoMessage()
func (*PolicyEvaluation_RawResult) ProtoReflect ¶ added in v1.42.0
func (x *PolicyEvaluation_RawResult) ProtoReflect() protoreflect.Message
func (*PolicyEvaluation_RawResult) Reset ¶ added in v1.42.0
func (x *PolicyEvaluation_RawResult) Reset()
func (*PolicyEvaluation_RawResult) String ¶ added in v1.42.0
func (x *PolicyEvaluation_RawResult) String() string
type PolicyEvaluation_Reference ¶ added in v0.102.0
type PolicyEvaluation_Reference struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"`
Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"`
OrgName string `protobuf:"bytes,4,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"`
// contains filtered or unexported fields
}
func (*PolicyEvaluation_Reference) Descriptor
deprecated
added in
v0.102.0
func (*PolicyEvaluation_Reference) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluation_Reference.ProtoReflect.Descriptor instead.
func (*PolicyEvaluation_Reference) GetDigest ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) GetDigest() string
func (*PolicyEvaluation_Reference) GetName ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) GetName() string
func (*PolicyEvaluation_Reference) GetOrgName ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) GetOrgName() string
func (*PolicyEvaluation_Reference) GetUri ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) GetUri() string
func (*PolicyEvaluation_Reference) ProtoMessage ¶ added in v0.102.0
func (*PolicyEvaluation_Reference) ProtoMessage()
func (*PolicyEvaluation_Reference) ProtoReflect ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) ProtoReflect() protoreflect.Message
func (*PolicyEvaluation_Reference) Reset ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) Reset()
func (*PolicyEvaluation_Reference) String ¶ added in v0.102.0
func (x *PolicyEvaluation_Reference) String() string
type PolicyEvaluation_Violation ¶
type PolicyEvaluation_Violation struct {
Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// Structured finding data, validated against the policy's declared finding_type.
// Only populated in the CAS-stored PolicyEvaluationBundle, not in the
// inline attestation predicate.
//
// Types that are valid to be assigned to Finding:
//
// *PolicyEvaluation_Violation_Vulnerability
// *PolicyEvaluation_Violation_Sast
// *PolicyEvaluation_Violation_LicenseViolation
Finding isPolicyEvaluation_Violation_Finding `protobuf_oneof:"finding"`
// Suppression hint set by the policy. When true the gate count
// excludes this entry, but it is still stored in CAS and ingested
// (audit trail preserved). Set by the policy author (typically based
// on `assessment.effective_status`) — the engine reads the bool
// without interpreting why.
Suppress bool `protobuf:"varint,6,opt,name=suppress,proto3" json:"suppress,omitempty"`
// contains filtered or unexported fields
}
func (*PolicyEvaluation_Violation) Descriptor
deprecated
func (*PolicyEvaluation_Violation) Descriptor() ([]byte, []int)
Deprecated: Use PolicyEvaluation_Violation.ProtoReflect.Descriptor instead.
func (*PolicyEvaluation_Violation) GetFinding ¶ added in v1.89.0
func (x *PolicyEvaluation_Violation) GetFinding() isPolicyEvaluation_Violation_Finding
func (*PolicyEvaluation_Violation) GetLicenseViolation ¶ added in v1.89.0
func (x *PolicyEvaluation_Violation) GetLicenseViolation() *PolicyLicenseViolationFinding
func (*PolicyEvaluation_Violation) GetMessage ¶
func (x *PolicyEvaluation_Violation) GetMessage() string
func (*PolicyEvaluation_Violation) GetSast ¶ added in v1.89.0
func (x *PolicyEvaluation_Violation) GetSast() *PolicySASTFinding
func (*PolicyEvaluation_Violation) GetSubject ¶
func (x *PolicyEvaluation_Violation) GetSubject() string
func (*PolicyEvaluation_Violation) GetSuppress ¶ added in v1.96.0
func (x *PolicyEvaluation_Violation) GetSuppress() bool
func (*PolicyEvaluation_Violation) GetVulnerability ¶ added in v1.89.0
func (x *PolicyEvaluation_Violation) GetVulnerability() *PolicyVulnerabilityFinding
func (*PolicyEvaluation_Violation) ProtoMessage ¶
func (*PolicyEvaluation_Violation) ProtoMessage()
func (*PolicyEvaluation_Violation) ProtoReflect ¶
func (x *PolicyEvaluation_Violation) ProtoReflect() protoreflect.Message
func (*PolicyEvaluation_Violation) Reset ¶
func (x *PolicyEvaluation_Violation) Reset()
func (*PolicyEvaluation_Violation) String ¶
func (x *PolicyEvaluation_Violation) String() string
type PolicyEvaluation_Violation_LicenseViolation ¶ added in v1.89.0
type PolicyEvaluation_Violation_LicenseViolation struct {
LicenseViolation *PolicyLicenseViolationFinding `protobuf:"bytes,5,opt,name=license_violation,json=licenseViolation,proto3,oneof"`
}
type PolicyEvaluation_Violation_Sast ¶ added in v1.89.0
type PolicyEvaluation_Violation_Sast struct {
Sast *PolicySASTFinding `protobuf:"bytes,4,opt,name=sast,proto3,oneof"`
}
type PolicyEvaluation_Violation_Vulnerability ¶ added in v1.89.0
type PolicyEvaluation_Violation_Vulnerability struct {
Vulnerability *PolicyVulnerabilityFinding `protobuf:"bytes,3,opt,name=vulnerability,proto3,oneof"`
}
type PolicyLicenseViolationFinding ¶ added in v1.89.0
type PolicyLicenseViolationFinding struct {
// Human-readable violation description
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// Component name (e.g., "lodash")
ComponentName string `protobuf:"bytes,2,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
// Package URL (e.g., pkg:npm/lodash@4.17.21)
PackagePurl string `protobuf:"bytes,3,opt,name=package_purl,json=packagePurl,proto3" json:"package_purl,omitempty"`
// License identifier (e.g., "GPL-3.0", "AGPL-3.0")
LicenseId string `protobuf:"bytes,4,opt,name=license_id,json=licenseId,proto3" json:"license_id,omitempty"`
// Human-readable license name
LicenseName string `protobuf:"bytes,5,opt,name=license_name,json=licenseName,proto3" json:"license_name,omitempty"`
// Component version
ComponentVersion string `protobuf:"bytes,6,opt,name=component_version,json=componentVersion,proto3" json:"component_version,omitempty"`
// Suggested fix
Recommendation string `protobuf:"bytes,7,opt,name=recommendation,proto3" json:"recommendation,omitempty"`
// Optional assessment context. See PolicyAssessmentResult.
Assessment *PolicyAssessmentResult `protobuf:"bytes,8,opt,name=assessment,proto3,oneof" json:"assessment,omitempty"`
// contains filtered or unexported fields
}
Output schema for license violation findings from policy evaluation. Used when a policy declares finding_type: LICENSE_VIOLATION.
func (*PolicyLicenseViolationFinding) Descriptor
deprecated
added in
v1.89.0
func (*PolicyLicenseViolationFinding) Descriptor() ([]byte, []int)
Deprecated: Use PolicyLicenseViolationFinding.ProtoReflect.Descriptor instead.
func (*PolicyLicenseViolationFinding) GetAssessment ¶ added in v1.96.0
func (x *PolicyLicenseViolationFinding) GetAssessment() *PolicyAssessmentResult
func (*PolicyLicenseViolationFinding) GetComponentName ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) GetComponentName() string
func (*PolicyLicenseViolationFinding) GetComponentVersion ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) GetComponentVersion() string
func (*PolicyLicenseViolationFinding) GetLicenseId ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) GetLicenseId() string
func (*PolicyLicenseViolationFinding) GetLicenseName ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) GetLicenseName() string
func (*PolicyLicenseViolationFinding) GetMessage ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) GetMessage() string
func (*PolicyLicenseViolationFinding) GetPackagePurl ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) GetPackagePurl() string
func (*PolicyLicenseViolationFinding) GetRecommendation ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) GetRecommendation() string
func (*PolicyLicenseViolationFinding) ProtoMessage ¶ added in v1.89.0
func (*PolicyLicenseViolationFinding) ProtoMessage()
func (*PolicyLicenseViolationFinding) ProtoReflect ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) ProtoReflect() protoreflect.Message
func (*PolicyLicenseViolationFinding) Reset ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) Reset()
func (*PolicyLicenseViolationFinding) String ¶ added in v1.89.0
func (x *PolicyLicenseViolationFinding) String() string
type PolicySASTFinding ¶ added in v1.89.0
type PolicySASTFinding struct {
// Human-readable violation description
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// Tool-specific rule identifier (e.g., java:S1234, go-sec:G101)
RuleId string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId,proto3" json:"rule_id,omitempty"`
// Severity level (CRITICAL, HIGH, MEDIUM, LOW)
Severity string `protobuf:"bytes,3,opt,name=severity,proto3" json:"severity,omitempty"`
// File path where the issue was found
Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
// Line number in the file
LineNumber int32 `protobuf:"varint,5,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
// Code snippet showing the issue
CodeSnippet string `protobuf:"bytes,6,opt,name=code_snippet,json=codeSnippet,proto3" json:"code_snippet,omitempty"`
// Suggested fix
Recommendation string `protobuf:"bytes,7,opt,name=recommendation,proto3" json:"recommendation,omitempty"`
// Optional numeric severity score from the scanner (scale is tool-defined)
SeverityScore *float64 `protobuf:"fixed64,8,opt,name=severity_score,json=severityScore,proto3,oneof" json:"severity_score,omitempty"`
// Optional assessment context. See PolicyAssessmentResult.
Assessment *PolicyAssessmentResult `protobuf:"bytes,9,opt,name=assessment,proto3,oneof" json:"assessment,omitempty"`
// contains filtered or unexported fields
}
Output schema for SAST findings from policy evaluation. Used when a policy declares finding_type: SAST.
func (*PolicySASTFinding) Descriptor
deprecated
added in
v1.89.0
func (*PolicySASTFinding) Descriptor() ([]byte, []int)
Deprecated: Use PolicySASTFinding.ProtoReflect.Descriptor instead.
func (*PolicySASTFinding) GetAssessment ¶ added in v1.96.0
func (x *PolicySASTFinding) GetAssessment() *PolicyAssessmentResult
func (*PolicySASTFinding) GetCodeSnippet ¶ added in v1.89.0
func (x *PolicySASTFinding) GetCodeSnippet() string
func (*PolicySASTFinding) GetLineNumber ¶ added in v1.89.0
func (x *PolicySASTFinding) GetLineNumber() int32
func (*PolicySASTFinding) GetLocation ¶ added in v1.89.0
func (x *PolicySASTFinding) GetLocation() string
func (*PolicySASTFinding) GetMessage ¶ added in v1.89.0
func (x *PolicySASTFinding) GetMessage() string
func (*PolicySASTFinding) GetRecommendation ¶ added in v1.89.0
func (x *PolicySASTFinding) GetRecommendation() string
func (*PolicySASTFinding) GetRuleId ¶ added in v1.89.0
func (x *PolicySASTFinding) GetRuleId() string
func (*PolicySASTFinding) GetSeverity ¶ added in v1.89.0
func (x *PolicySASTFinding) GetSeverity() string
func (*PolicySASTFinding) GetSeverityScore ¶ added in v1.93.1
func (x *PolicySASTFinding) GetSeverityScore() float64
func (*PolicySASTFinding) ProtoMessage ¶ added in v1.89.0
func (*PolicySASTFinding) ProtoMessage()
func (*PolicySASTFinding) ProtoReflect ¶ added in v1.89.0
func (x *PolicySASTFinding) ProtoReflect() protoreflect.Message
func (*PolicySASTFinding) Reset ¶ added in v1.89.0
func (x *PolicySASTFinding) Reset()
func (*PolicySASTFinding) String ¶ added in v1.89.0
func (x *PolicySASTFinding) String() string
type PolicyVulnerabilityFinding ¶ added in v1.89.0
type PolicyVulnerabilityFinding struct {
// Human-readable violation description
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// Vulnerability identifier (e.g., CVE-2024-1234, GHSA-xxxx)
ExternalId string `protobuf:"bytes,2,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
// Package URL of the affected component (e.g., pkg:golang/example.com/lib@v1.0.0)
PackagePurl string `protobuf:"bytes,3,opt,name=package_purl,json=packagePurl,proto3" json:"package_purl,omitempty"`
// Severity level (CRITICAL, HIGH, MEDIUM, LOW)
Severity string `protobuf:"bytes,4,opt,name=severity,proto3" json:"severity,omitempty"`
// CVSS v3 score (0.0-10.0)
CvssV3Score float64 `protobuf:"fixed64,5,opt,name=cvss_v3_score,json=cvssV3Score,proto3" json:"cvss_v3_score,omitempty"`
// CWE references (e.g., CWE-79, CWE-89)
Cwes []string `protobuf:"bytes,6,rep,name=cwes,proto3" json:"cwes,omitempty"`
// Suggested fix or upgrade path
Recommendation string `protobuf:"bytes,7,opt,name=recommendation,proto3" json:"recommendation,omitempty"`
// Optional longer description of the vulnerability
Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
// Version that fixes the vulnerability (e.g., "2.0.1", "1.3.4-patch1")
FixedVersion string `protobuf:"bytes,9,opt,name=fixed_version,json=fixedVersion,proto3" json:"fixed_version,omitempty"`
// Optional assessment context. See PolicyAssessmentResult.
Assessment *PolicyAssessmentResult `protobuf:"bytes,10,opt,name=assessment,proto3,oneof" json:"assessment,omitempty"`
// contains filtered or unexported fields
}
Output schema for vulnerability findings from policy evaluation. Used when a policy declares finding_type: VULNERABILITY.
func (*PolicyVulnerabilityFinding) Descriptor
deprecated
added in
v1.89.0
func (*PolicyVulnerabilityFinding) Descriptor() ([]byte, []int)
Deprecated: Use PolicyVulnerabilityFinding.ProtoReflect.Descriptor instead.
func (*PolicyVulnerabilityFinding) GetAssessment ¶ added in v1.96.0
func (x *PolicyVulnerabilityFinding) GetAssessment() *PolicyAssessmentResult
func (*PolicyVulnerabilityFinding) GetCvssV3Score ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) GetCvssV3Score() float64
func (*PolicyVulnerabilityFinding) GetCwes ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) GetCwes() []string
func (*PolicyVulnerabilityFinding) GetDescription ¶ added in v1.89.8
func (x *PolicyVulnerabilityFinding) GetDescription() string
func (*PolicyVulnerabilityFinding) GetExternalId ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) GetExternalId() string
func (*PolicyVulnerabilityFinding) GetFixedVersion ¶ added in v1.89.9
func (x *PolicyVulnerabilityFinding) GetFixedVersion() string
func (*PolicyVulnerabilityFinding) GetMessage ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) GetMessage() string
func (*PolicyVulnerabilityFinding) GetPackagePurl ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) GetPackagePurl() string
func (*PolicyVulnerabilityFinding) GetRecommendation ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) GetRecommendation() string
func (*PolicyVulnerabilityFinding) GetSeverity ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) GetSeverity() string
func (*PolicyVulnerabilityFinding) ProtoMessage ¶ added in v1.89.0
func (*PolicyVulnerabilityFinding) ProtoMessage()
func (*PolicyVulnerabilityFinding) ProtoReflect ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) ProtoReflect() protoreflect.Message
func (*PolicyVulnerabilityFinding) Reset ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) Reset()
func (*PolicyVulnerabilityFinding) String ¶ added in v1.89.0
func (x *PolicyVulnerabilityFinding) String() string
type ProjectVersion ¶ added in v0.98.0
type ProjectVersion struct {
Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
// if it's pre-release
Prerelease bool `protobuf:"varint,2,opt,name=prerelease,proto3" json:"prerelease,omitempty"`
MarkAsReleased bool `protobuf:"varint,3,opt,name=mark_as_released,json=markAsReleased,proto3" json:"mark_as_released,omitempty"`
// contains filtered or unexported fields
}
func (*ProjectVersion) Descriptor
deprecated
added in
v0.98.0
func (*ProjectVersion) Descriptor() ([]byte, []int)
Deprecated: Use ProjectVersion.ProtoReflect.Descriptor instead.
func (*ProjectVersion) GetMarkAsReleased ¶ added in v0.98.0
func (x *ProjectVersion) GetMarkAsReleased() bool
func (*ProjectVersion) GetPrerelease ¶ added in v0.98.0
func (x *ProjectVersion) GetPrerelease() bool
func (*ProjectVersion) GetVersion ¶ added in v0.98.0
func (x *ProjectVersion) GetVersion() string
func (*ProjectVersion) ProtoMessage ¶ added in v0.98.0
func (*ProjectVersion) ProtoMessage()
func (*ProjectVersion) ProtoReflect ¶ added in v0.98.0
func (x *ProjectVersion) ProtoReflect() protoreflect.Message
func (*ProjectVersion) Reset ¶ added in v0.98.0
func (x *ProjectVersion) Reset()
func (*ProjectVersion) String ¶ added in v0.98.0
func (x *ProjectVersion) String() string
type ResourceDescriptor ¶ added in v0.96.5
type ResourceDescriptor struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
Digest map[string]string `` /* 139-byte string literal not displayed */
Content []byte `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
DownloadLocation string `protobuf:"bytes,5,opt,name=download_location,json=downloadLocation,proto3" json:"download_location,omitempty"`
MediaType string `protobuf:"bytes,6,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
// Per the Struct protobuf spec, this type corresponds to
// a JSON Object, which is truly a map<string, Value> under the hood.
// So, the Struct a) is still consistent with our specification for
// the `annotations` field, and b) has native support in some language
// bindings making their use easier in implementations.
// See: https://pkg.go.dev/google.golang.org/protobuf/types/known/structpb#Struct
Annotations *structpb.Struct `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations,omitempty"`
// contains filtered or unexported fields
}
Proto representation of the in-toto v1 ResourceDescriptor. https://github.com/in-toto/attestation/blob/main/spec/v1/resource_descriptor.md Validation of all fields is left to the users of this proto.
func (*ResourceDescriptor) Descriptor
deprecated
added in
v0.96.5
func (*ResourceDescriptor) Descriptor() ([]byte, []int)
Deprecated: Use ResourceDescriptor.ProtoReflect.Descriptor instead.
func (*ResourceDescriptor) GetAnnotations ¶ added in v0.96.5
func (x *ResourceDescriptor) GetAnnotations() *structpb.Struct
func (*ResourceDescriptor) GetContent ¶ added in v0.96.5
func (x *ResourceDescriptor) GetContent() []byte
func (*ResourceDescriptor) GetDigest ¶ added in v0.96.5
func (x *ResourceDescriptor) GetDigest() map[string]string
func (*ResourceDescriptor) GetDownloadLocation ¶ added in v0.96.5
func (x *ResourceDescriptor) GetDownloadLocation() string
func (*ResourceDescriptor) GetMediaType ¶ added in v0.96.5
func (x *ResourceDescriptor) GetMediaType() string
func (*ResourceDescriptor) GetName ¶ added in v0.96.5
func (x *ResourceDescriptor) GetName() string
func (*ResourceDescriptor) GetUri ¶ added in v0.96.5
func (x *ResourceDescriptor) GetUri() string
func (*ResourceDescriptor) ProtoMessage ¶ added in v0.96.5
func (*ResourceDescriptor) ProtoMessage()
func (*ResourceDescriptor) ProtoReflect ¶ added in v0.96.5
func (x *ResourceDescriptor) ProtoReflect() protoreflect.Message
func (*ResourceDescriptor) Reset ¶ added in v0.96.5
func (x *ResourceDescriptor) Reset()
func (*ResourceDescriptor) String ¶ added in v0.96.5
func (x *ResourceDescriptor) String() string
type RunnerEnvironment ¶ added in v1.0.0
type RunnerEnvironment struct {
// Workflow file path that was used during build
WorkflowFilePath string `protobuf:"bytes,1,opt,name=workflow_file_path,json=workflowFilePath,proto3" json:"workflow_file_path,omitempty"`
// Runner environment name, i.e. github-hosted
Environment string `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"`
// Whether the runner is authenticated, i.e. via the OIDC token
Authenticated bool `protobuf:"varint,3,opt,name=authenticated,proto3" json:"authenticated,omitempty"`
// Runner type
Type v1.CraftingSchema_Runner_RunnerType `protobuf:"varint,4,opt,name=type,proto3,enum=workflowcontract.v1.CraftingSchema_Runner_RunnerType" json:"type,omitempty"`
// Runner URL
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
The runner environment in which the attestation was crafted
func (*RunnerEnvironment) Descriptor
deprecated
added in
v1.0.0
func (*RunnerEnvironment) Descriptor() ([]byte, []int)
Deprecated: Use RunnerEnvironment.ProtoReflect.Descriptor instead.
func (*RunnerEnvironment) GetAuthenticated ¶ added in v1.0.0
func (x *RunnerEnvironment) GetAuthenticated() bool
func (*RunnerEnvironment) GetEnvironment ¶ added in v1.0.0
func (x *RunnerEnvironment) GetEnvironment() string
func (*RunnerEnvironment) GetType ¶ added in v1.0.0
func (x *RunnerEnvironment) GetType() v1.CraftingSchema_Runner_RunnerType
func (*RunnerEnvironment) GetUrl ¶ added in v1.0.0
func (x *RunnerEnvironment) GetUrl() string
func (*RunnerEnvironment) GetWorkflowFilePath ¶ added in v1.0.0
func (x *RunnerEnvironment) GetWorkflowFilePath() string
func (*RunnerEnvironment) ProtoMessage ¶ added in v1.0.0
func (*RunnerEnvironment) ProtoMessage()
func (*RunnerEnvironment) ProtoReflect ¶ added in v1.0.0
func (x *RunnerEnvironment) ProtoReflect() protoreflect.Message
func (*RunnerEnvironment) Reset ¶ added in v1.0.0
func (x *RunnerEnvironment) Reset()
func (*RunnerEnvironment) String ¶ added in v1.0.0
func (x *RunnerEnvironment) String() string
type WorkflowMetadata ¶
type WorkflowMetadata struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
// kept for backwards compatibility with remote state storage
//
// Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
ProjectVersion string `protobuf:"bytes,9,opt,name=project_version,json=projectVersion,proto3" json:"project_version,omitempty"`
// project version
Version *ProjectVersion `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"`
Team string `protobuf:"bytes,3,opt,name=team,proto3" json:"team,omitempty"`
WorkflowId string `protobuf:"bytes,5,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"`
WorkflowRunId string `protobuf:"bytes,6,opt,name=workflow_run_id,json=workflowRunId,proto3" json:"workflow_run_id,omitempty"` // Not required since we might be doing a dry-run
SchemaRevision string `protobuf:"bytes,7,opt,name=schema_revision,json=schemaRevision,proto3" json:"schema_revision,omitempty"`
// contract name (contract version is "schema_revision")
ContractName string `protobuf:"bytes,11,opt,name=contract_name,json=contractName,proto3" json:"contract_name,omitempty"`
// organization name
Organization string `protobuf:"bytes,8,opt,name=organization,proto3" json:"organization,omitempty"`
// contains filtered or unexported fields
}
func (*WorkflowMetadata) Descriptor
deprecated
func (*WorkflowMetadata) Descriptor() ([]byte, []int)
Deprecated: Use WorkflowMetadata.ProtoReflect.Descriptor instead.
func (*WorkflowMetadata) GetContractName ¶ added in v0.146.0
func (x *WorkflowMetadata) GetContractName() string
func (*WorkflowMetadata) GetName ¶
func (x *WorkflowMetadata) GetName() string
func (*WorkflowMetadata) GetOrganization ¶
func (x *WorkflowMetadata) GetOrganization() string
func (*WorkflowMetadata) GetProject ¶
func (x *WorkflowMetadata) GetProject() string
func (*WorkflowMetadata) GetProjectVersion
deprecated
added in
v0.97.5
func (x *WorkflowMetadata) GetProjectVersion() string
Deprecated: Marked as deprecated in attestation/v1/crafting_state.proto.
func (*WorkflowMetadata) GetSchemaRevision ¶
func (x *WorkflowMetadata) GetSchemaRevision() string
func (*WorkflowMetadata) GetTeam ¶
func (x *WorkflowMetadata) GetTeam() string
func (*WorkflowMetadata) GetVersion ¶ added in v0.98.1
func (x *WorkflowMetadata) GetVersion() *ProjectVersion
func (*WorkflowMetadata) GetWorkflowId ¶
func (x *WorkflowMetadata) GetWorkflowId() string
func (*WorkflowMetadata) GetWorkflowRunId ¶
func (x *WorkflowMetadata) GetWorkflowRunId() string
func (*WorkflowMetadata) ProtoMessage ¶
func (*WorkflowMetadata) ProtoMessage()
func (*WorkflowMetadata) ProtoReflect ¶
func (x *WorkflowMetadata) ProtoReflect() protoreflect.Message
func (*WorkflowMetadata) Reset ¶
func (x *WorkflowMetadata) Reset()
func (*WorkflowMetadata) String ¶
func (x *WorkflowMetadata) String() string