VerificationRuleResponse class
Specifies verification rules for evaluating the SLSA attestations including: which builders to trust, where to fetch the SLSA attestations generated by those builders, and other builder-specific evaluation rules such as which source repositories are trusted. An image is considered verified by the rule if any of the fetched SLSA attestations is verified.
Constructors
-
VerificationRuleResponse({required Input<
AttestationSourceResponse> attestationSource, required Input<bool> configBasedBuildRequired, required Input<String> trustedBuilder, required Input<List< trustedSourceRepoPatterns})String> > -
Creates a new VerificationRuleResponse.
attestationSourceSpecifies where to fetch the provenances attestations generated by the builder (group).configBasedBuildRequiredIf true, require the image to be built from a top-level configuration.trusted_source_repo_patternsspecifies the repositories containing this configuration.trustedBuilderEach verification rule is used for evaluation against provenances generated by a specific builder (group). For some of the builders, such as the Google Cloud Build, users don't need to explicitly specify their roots of trust in the policy since the evaluation service can automatically fetch them based on the builder (group).trustedSourceRepoPatternsList of trusted source code repository URL patterns. These patterns match the full repository URL without its scheme (e.g.https://). The patterns must not include schemes. For example, the patternsource.cloud.google.com/my-project/my-repo-namematches the following URLs: -source.cloud.google.com/my-project/my-repo-name-git+ssh://source.cloud.google.com/my-project/my-repo-name-https://source.cloud.google.com/my-project/my-repo-nameA pattern matches a URL either exactly or with*wildcards.*can be used in only two ways: 1. trailing*after hosturi/ to match varying endings; 2. trailing**after hosturi/ to match/as well.*and**can only be used as wildcards and can only occur at the end of the pattern after a/. (So it's not possible to match a URL that contains literal*.) For example: -github.com/my-project/my-repois valid to match a single repo -github.com/my-project/*will match all direct repos inmy-project-github.com/**matches all repos in GitHubconst -
VerificationRuleResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
attestationSource
→ Input<
AttestationSourceResponse> -
Specifies where to fetch the provenances attestations generated by the builder (group).
final
-
configBasedBuildRequired
→ Input<
bool> -
If true, require the image to be built from a top-level configuration.
trusted_source_repo_patternsspecifies the repositories containing this configuration.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
trustedBuilder
→ Input<
String> -
Each verification rule is used for evaluation against provenances generated by a specific builder (group). For some of the builders, such as the Google Cloud Build, users don't need to explicitly specify their roots of trust in the policy since the evaluation service can automatically fetch them based on the builder (group).
final
-
trustedSourceRepoPatterns
→ Input<
List< String> > -
List of trusted source code repository URL patterns. These patterns match the full repository URL without its scheme (e.g.
https://). The patterns must not include schemes. For example, the patternsource.cloud.google.com/my-project/my-repo-namematches the following URLs: -source.cloud.google.com/my-project/my-repo-name-git+ssh://source.cloud.google.com/my-project/my-repo-name-https://source.cloud.google.com/my-project/my-repo-nameA pattern matches a URL either exactly or with*wildcards.*can be used in only two ways: 1. trailing*after hosturi/ to match varying endings; 2. trailing**after hosturi/ to match/as well.*and**can only be used as wildcards and can only occur at the end of the pattern after a/. (So it's not possible to match a URL that contains literal*.) For example: -github.com/my-project/my-repois valid to match a single repo -github.com/my-project/*will match all direct repos inmy-project-github.com/**matches all repos in GitHubfinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited