generators.external-secrets.io_mfas.yaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. apiVersion: apiextensions.k8s.io/v1
  2. kind: CustomResourceDefinition
  3. metadata:
  4. annotations:
  5. controller-gen.kubebuilder.io/version: v0.19.0
  6. labels:
  7. external-secrets.io/component: controller
  8. name: mfas.generators.external-secrets.io
  9. spec:
  10. group: generators.external-secrets.io
  11. names:
  12. categories:
  13. - external-secrets
  14. - external-secrets-generators
  15. kind: MFA
  16. listKind: MFAList
  17. plural: mfas
  18. singular: mfa
  19. scope: Namespaced
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. description: MFA generates a new TOTP token that is compliant with RFC 6238.
  25. properties:
  26. apiVersion:
  27. description: |-
  28. APIVersion defines the versioned schema of this representation of an object.
  29. Servers should convert recognized schemas to the latest internal value, and
  30. may reject unrecognized values.
  31. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  32. type: string
  33. kind:
  34. description: |-
  35. Kind is a string value representing the REST resource this object represents.
  36. Servers may infer this from the endpoint the client submits requests to.
  37. Cannot be updated.
  38. In CamelCase.
  39. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  40. type: string
  41. metadata:
  42. type: object
  43. spec:
  44. description: MFASpec controls the behavior of the mfa generator.
  45. properties:
  46. algorithm:
  47. description: Algorithm to use for encoding. Defaults to SHA1 as per
  48. the RFC.
  49. type: string
  50. length:
  51. description: Length defines the token length. Defaults to 6 characters.
  52. type: integer
  53. secret:
  54. description: Secret is a secret selector to a secret containing the
  55. seed secret to generate the TOTP value from.
  56. properties:
  57. key:
  58. description: |-
  59. A key in the referenced Secret.
  60. Some instances of this field may be defaulted, in others it may be required.
  61. maxLength: 253
  62. minLength: 1
  63. pattern: ^[-._a-zA-Z0-9]+$
  64. type: string
  65. name:
  66. description: The name of the Secret resource being referred to.
  67. maxLength: 253
  68. minLength: 1
  69. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  70. type: string
  71. namespace:
  72. description: |-
  73. The namespace of the Secret resource being referred to.
  74. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  75. maxLength: 63
  76. minLength: 1
  77. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  78. type: string
  79. type: object
  80. timePeriod:
  81. description: TimePeriod defines how long the token can be active.
  82. Defaults to 30 seconds.
  83. type: integer
  84. when:
  85. description: When defines a time parameter that can be used to pin
  86. the origin time of the generated token.
  87. format: date-time
  88. type: string
  89. required:
  90. - secret
  91. type: object
  92. type: object
  93. served: true
  94. storage: true
  95. subresources:
  96. status: {}