security.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. // THIS FILE IS DEPRECATED
  2. // Users should instead use the corresponding proto in the xds tree.
  3. // No new changes will be accepted here.
  4. syntax = "proto3";
  5. package udpa.annotations;
  6. import "udpa/annotations/status.proto";
  7. import "google/protobuf/descriptor.proto";
  8. option go_package = "github.com/cncf/xds/go/annotations";
  9. // All annotations in this file are experimental and subject to change. Their
  10. // only consumer today is the Envoy APIs and SecuritAnnotationValidator protoc
  11. // plugin in this repository.
  12. option (udpa.annotations.file_status).work_in_progress = true;
  13. extend google.protobuf.FieldOptions {
  14. // Magic number is the 28 most significant bits in the sha256sum of
  15. // "udpa.annotations.security".
  16. FieldSecurityAnnotation security = 11122993;
  17. }
  18. // These annotations indicate metadata for the purpose of understanding the
  19. // security significance of fields.
  20. message FieldSecurityAnnotation {
  21. // Field should be set in the presence of untrusted downstreams.
  22. bool configure_for_untrusted_downstream = 1;
  23. // Field should be set in the presence of untrusted upstreams.
  24. bool configure_for_untrusted_upstream = 2;
  25. }