build.proto 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright 2019 The Grafeas Authors. All rights reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package grafeas.v1;
  16. import "grafeas/v1/provenance.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/grafeas/v1;grafeas";
  18. option java_multiple_files = true;
  19. option java_package = "io.grafeas.v1";
  20. option objc_class_prefix = "GRA";
  21. // Note holding the version of the provider's builder and the signature of the
  22. // provenance message in the build details occurrence.
  23. message BuildNote {
  24. // Required. Immutable. Version of the builder which produced this build.
  25. string builder_version = 1;
  26. }
  27. // Details of a build occurrence.
  28. message BuildOccurrence {
  29. // Required. The actual provenance for the build.
  30. grafeas.v1.BuildProvenance provenance = 1;
  31. // Serialized JSON representation of the provenance, used in generating the
  32. // build signature in the corresponding build note. After verifying the
  33. // signature, `provenance_bytes` can be unmarshalled and compared to the
  34. // provenance to confirm that it is unchanged. A base64-encoded string
  35. // representation of the provenance bytes is used for the signature in order
  36. // to interoperate with openssl which expects this format for signature
  37. // verification.
  38. //
  39. // The serialized form is captured both to avoid ambiguity in how the
  40. // provenance is marshalled to json as well to prevent incompatibilities with
  41. // future changes.
  42. string provenance_bytes = 2;
  43. }