certs.proto 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. syntax = "proto3";
  2. package envoy.admin.v3;
  3. import "google/protobuf/timestamp.proto";
  4. import "udpa/annotations/status.proto";
  5. import "udpa/annotations/versioning.proto";
  6. option java_package = "io.envoyproxy.envoy.admin.v3";
  7. option java_outer_classname = "CertsProto";
  8. option java_multiple_files = true;
  9. option go_package = "github.com/envoyproxy/go-control-plane/envoy/admin/v3;adminv3";
  10. option (udpa.annotations.file_status).package_version_status = ACTIVE;
  11. // [#protodoc-title: Certificates]
  12. // Proto representation of certificate details. Admin endpoint uses this wrapper for `/certs` to
  13. // display certificate information. See :ref:`/certs <operations_admin_interface_certs>` for more
  14. // information.
  15. message Certificates {
  16. option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.Certificates";
  17. // List of certificates known to an Envoy.
  18. repeated Certificate certificates = 1;
  19. }
  20. message Certificate {
  21. option (udpa.annotations.versioning).previous_message_type = "envoy.admin.v2alpha.Certificate";
  22. // Details of CA certificate.
  23. repeated CertificateDetails ca_cert = 1;
  24. // Details of Certificate Chain
  25. repeated CertificateDetails cert_chain = 2;
  26. }
  27. // [#next-free-field: 8]
  28. message CertificateDetails {
  29. option (udpa.annotations.versioning).previous_message_type =
  30. "envoy.admin.v2alpha.CertificateDetails";
  31. message OcspDetails {
  32. // Indicates the time from which the OCSP response is valid.
  33. google.protobuf.Timestamp valid_from = 1;
  34. // Indicates the time at which the OCSP response expires.
  35. google.protobuf.Timestamp expiration = 2;
  36. }
  37. // Path of the certificate.
  38. string path = 1;
  39. // Certificate Serial Number.
  40. string serial_number = 2;
  41. // List of Subject Alternate names.
  42. repeated SubjectAlternateName subject_alt_names = 3;
  43. // Minimum of days until expiration of certificate and it's chain.
  44. uint64 days_until_expiration = 4;
  45. // Indicates the time from which the certificate is valid.
  46. google.protobuf.Timestamp valid_from = 5;
  47. // Indicates the time at which the certificate expires.
  48. google.protobuf.Timestamp expiration_time = 6;
  49. // Details related to the OCSP response associated with this certificate, if any.
  50. OcspDetails ocsp_details = 7;
  51. }
  52. message SubjectAlternateName {
  53. option (udpa.annotations.versioning).previous_message_type =
  54. "envoy.admin.v2alpha.SubjectAlternateName";
  55. // Subject Alternate Name.
  56. oneof name {
  57. string dns = 1;
  58. string uri = 2;
  59. string ip_address = 3;
  60. }
  61. }