generated.proto 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. /*
  2. Copyright The Kubernetes Authors.
  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. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // This file was autogenerated by go-to-protobuf. Do not edit it manually!
  14. syntax = "proto2";
  15. package k8s.io.api.certificates.v1beta1;
  16. import "k8s.io/api/core/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  18. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  19. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  20. // Package-wide variables from generator "generated".
  21. option go_package = "v1beta1";
  22. // Describes a certificate signing request
  23. message CertificateSigningRequest {
  24. // +optional
  25. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  26. // The certificate request itself and any additional information.
  27. // +optional
  28. optional CertificateSigningRequestSpec spec = 2;
  29. // Derived information about the request.
  30. // +optional
  31. optional CertificateSigningRequestStatus status = 3;
  32. }
  33. message CertificateSigningRequestCondition {
  34. // type of the condition. Known conditions include "Approved", "Denied", and "Failed".
  35. optional string type = 1;
  36. // Status of the condition, one of True, False, Unknown.
  37. // Approved, Denied, and Failed conditions may not be "False" or "Unknown".
  38. // Defaults to "True".
  39. // If unset, should be treated as "True".
  40. // +optional
  41. optional string status = 6;
  42. // brief reason for the request state
  43. // +optional
  44. optional string reason = 2;
  45. // human readable message with details about the request state
  46. // +optional
  47. optional string message = 3;
  48. // timestamp for the last update to this condition
  49. // +optional
  50. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 4;
  51. // lastTransitionTime is the time the condition last transitioned from one status to another.
  52. // If unset, when a new condition type is added or an existing condition's status is changed,
  53. // the server defaults this to the current time.
  54. // +optional
  55. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 5;
  56. }
  57. message CertificateSigningRequestList {
  58. // +optional
  59. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  60. repeated CertificateSigningRequest items = 2;
  61. }
  62. // This information is immutable after the request is created. Only the Request
  63. // and Usages fields can be set on creation, other fields are derived by
  64. // Kubernetes and cannot be modified by users.
  65. message CertificateSigningRequestSpec {
  66. // Base64-encoded PKCS#10 CSR data
  67. // +listType=atomic
  68. optional bytes request = 1;
  69. // Requested signer for the request. It is a qualified name in the form:
  70. // `scope-hostname.io/name`.
  71. // If empty, it will be defaulted:
  72. // 1. If it's a kubelet client certificate, it is assigned
  73. // "kubernetes.io/kube-apiserver-client-kubelet".
  74. // 2. If it's a kubelet serving certificate, it is assigned
  75. // "kubernetes.io/kubelet-serving".
  76. // 3. Otherwise, it is assigned "kubernetes.io/legacy-unknown".
  77. // Distribution of trust for signers happens out of band.
  78. // You can select on this field using `spec.signerName`.
  79. // +optional
  80. optional string signerName = 7;
  81. // allowedUsages specifies a set of usage contexts the key will be
  82. // valid for.
  83. // See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3
  84. // https://tools.ietf.org/html/rfc5280#section-4.2.1.12
  85. // Valid values are:
  86. // "signing",
  87. // "digital signature",
  88. // "content commitment",
  89. // "key encipherment",
  90. // "key agreement",
  91. // "data encipherment",
  92. // "cert sign",
  93. // "crl sign",
  94. // "encipher only",
  95. // "decipher only",
  96. // "any",
  97. // "server auth",
  98. // "client auth",
  99. // "code signing",
  100. // "email protection",
  101. // "s/mime",
  102. // "ipsec end system",
  103. // "ipsec tunnel",
  104. // "ipsec user",
  105. // "timestamping",
  106. // "ocsp signing",
  107. // "microsoft sgc",
  108. // "netscape sgc"
  109. // +listType=atomic
  110. repeated string usages = 5;
  111. // Information about the requesting user.
  112. // See user.Info interface for details.
  113. // +optional
  114. optional string username = 2;
  115. // UID information about the requesting user.
  116. // See user.Info interface for details.
  117. // +optional
  118. optional string uid = 3;
  119. // Group information about the requesting user.
  120. // See user.Info interface for details.
  121. // +listType=atomic
  122. // +optional
  123. repeated string groups = 4;
  124. // Extra information about the requesting user.
  125. // See user.Info interface for details.
  126. // +optional
  127. map<string, ExtraValue> extra = 6;
  128. }
  129. message CertificateSigningRequestStatus {
  130. // Conditions applied to the request, such as approval or denial.
  131. // +listType=map
  132. // +listMapKey=type
  133. // +optional
  134. repeated CertificateSigningRequestCondition conditions = 1;
  135. // If request was approved, the controller will place the issued certificate here.
  136. // +listType=atomic
  137. // +optional
  138. optional bytes certificate = 2;
  139. }
  140. // ExtraValue masks the value so protobuf can generate
  141. // +protobuf.nullable=true
  142. // +protobuf.options.(gogoproto.goproto_stringer)=false
  143. message ExtraValue {
  144. // items, if empty, will result in an empty slice
  145. repeated string items = 1;
  146. }