-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the SLSA provenance predicate to v1
Signed-off-by: Marcela Melara <[email protected]>
- Loading branch information
1 parent
060338a
commit 6397dc4
Showing
3 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
protos/in_toto_attestation/predicates/provenance/v1/provenance.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
syntax = "proto3"; | ||
|
||
package in_toto_attestation.predicates.provenance.v1; | ||
|
||
import "in_toto_attestation/v1/resource_descriptor.proto"; | ||
import "google/protobuf/struct.proto"; | ||
import "google/protobuf/timestamp.proto"; | ||
|
||
option go_package = "github.com/in-toto/attestation/go/predicates/provenance/v1"; | ||
option java_package = "io.github.intoto.attestation.predicates.provenance.v1"; | ||
|
||
// Proto representation of predicate type https://slsa.dev/provenance/v1 | ||
// Validation of all fields is left to the users of this proto. | ||
message Provenance { | ||
BuildDefinition build_definition = 1; | ||
RunDetails run_details = 2; | ||
} | ||
|
||
message BuildDefinition { | ||
string build_type = 1; | ||
google.protobuf.Struct external_parameters = 2; | ||
google.protobuf.Struct internal_parameters = 3; | ||
repeated in_toto_attestation.v1.ResourceDescriptor resolved_dependencies = 4; | ||
} | ||
|
||
message RunDetails { | ||
Builder builder = 1; | ||
BuildMetadata metadata = 2; | ||
repeated in_toto_attestation.v1.ResourceDescriptor byproducts = 3; | ||
} | ||
|
||
message Builder { | ||
string id = 1; | ||
map<string, string> version = 2; | ||
repeated in_toto_attestation.v1.ResourceDescriptor builder_dependencies = 3; | ||
} | ||
|
||
message BuildMetadata { | ||
string invocation_id = 1; | ||
google.protobuf.Timestamp started_on = 2; | ||
google.protobuf.Timestamp finished_on = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
# MOVED: SLSA Provenance | ||
# Predicate type: SLSA Provenance | ||
|
||
Deprecated Type URI: `https://in-toto.io/Provenance/v0.1` | ||
Type URI: https://slsa.dev/provenance | ||
|
||
This predicate has been renamed to [https://slsa.dev/provenance](https://slsa.dev/provenance) to reflect | ||
Version: 1.0 | ||
|
||
## Specification | ||
|
||
Please visit the [SLSA Provenance spec] for information on purpose, schema, | ||
parsing rules, etc. | ||
|
||
## Changelog and Migrations | ||
|
||
### New in v1.0 | ||
|
||
- See the SLSA Provenance [v1 change history]. | ||
|
||
### New in v0.2 | ||
|
||
- Deprecated Type URI: `https://in-toto.io/Provenance/v0.1` | ||
- This predicate has been renamed to [https://slsa.dev/provenance](https://slsa.dev/provenance) to reflect | ||
that it was designed specifically for [SLSA](https://slsa.dev). Please update | ||
references accordingly. | ||
- More info at [v0.2 change history] | ||
|
||
[SLSA Provenance spec]: https://slsa.dev/provenance/v1 | ||
[v0.2 change history]: https://slsa.dev/provenance/v1#v02 | ||
[v1 change history]: https://slsa.dev/provenance/v1#change-history |