certs.proto 1.7 KB

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