secret.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. syntax = "proto3";
  2. package envoy.api.v2.auth;
  3. import "envoy/api/v2/auth/common.proto";
  4. import "envoy/api/v2/core/base.proto";
  5. import "envoy/api/v2/core/config_source.proto";
  6. import "udpa/annotations/migrate.proto";
  7. import "udpa/annotations/sensitive.proto";
  8. import "udpa/annotations/status.proto";
  9. option java_package = "io.envoyproxy.envoy.api.v2.auth";
  10. option java_outer_classname = "SecretProto";
  11. option java_multiple_files = true;
  12. option go_package = "github.com/envoyproxy/go-control-plane/envoy/api/v2/auth";
  13. option (udpa.annotations.file_migrate).move_to_package =
  14. "envoy.extensions.transport_sockets.tls.v3";
  15. option (udpa.annotations.file_status).package_version_status = FROZEN;
  16. // [#protodoc-title: Secrets configuration]
  17. message GenericSecret {
  18. // Secret of generic type and is available to filters.
  19. core.DataSource secret = 1 [(udpa.annotations.sensitive) = true];
  20. }
  21. message SdsSecretConfig {
  22. // Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
  23. // When both name and config are specified, then secret can be fetched and/or reloaded via
  24. // SDS. When only name is specified, then secret will be loaded from static resources.
  25. string name = 1;
  26. core.ConfigSource sds_config = 2;
  27. }
  28. // [#next-free-field: 6]
  29. message Secret {
  30. // Name (FQDN, UUID, SPKI, SHA256, etc.) by which the secret can be uniquely referred to.
  31. string name = 1;
  32. oneof type {
  33. TlsCertificate tls_certificate = 2;
  34. TlsSessionTicketKeys session_ticket_keys = 3;
  35. CertificateValidationContext validation_context = 4;
  36. GenericSecret generic_secret = 5;
  37. }
  38. }