generators.external-secrets.io_clustergenerators.yaml 130 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231
  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: clustergenerators.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: ClusterGenerator
  16. listKind: ClusterGeneratorList
  17. plural: clustergenerators
  18. singular: clustergenerator
  19. scope: Cluster
  20. versions:
  21. - name: v1alpha1
  22. schema:
  23. openAPIV3Schema:
  24. description: ClusterGenerator represents a cluster-wide generator which can
  25. be referenced as part of `generatorRef` fields.
  26. properties:
  27. apiVersion:
  28. description: |-
  29. APIVersion defines the versioned schema of this representation of an object.
  30. Servers should convert recognized schemas to the latest internal value, and
  31. may reject unrecognized values.
  32. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  33. type: string
  34. kind:
  35. description: |-
  36. Kind is a string value representing the REST resource this object represents.
  37. Servers may infer this from the endpoint the client submits requests to.
  38. Cannot be updated.
  39. In CamelCase.
  40. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  41. type: string
  42. metadata:
  43. type: object
  44. spec:
  45. description: ClusterGeneratorSpec defines the desired state of a ClusterGenerator.
  46. properties:
  47. generator:
  48. description: Generator the spec for this generator, must match the
  49. kind.
  50. maxProperties: 1
  51. minProperties: 1
  52. properties:
  53. acrAccessTokenSpec:
  54. description: |-
  55. ACRAccessTokenSpec defines how to generate the access token
  56. e.g. how to authenticate and which registry to use.
  57. see: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md#overview
  58. properties:
  59. auth:
  60. description: ACRAuth defines the authentication methods for
  61. Azure Container Registry.
  62. properties:
  63. managedIdentity:
  64. description: ManagedIdentity uses Azure Managed Identity
  65. to authenticate with Azure.
  66. properties:
  67. identityId:
  68. description: If multiple Managed Identity is assigned
  69. to the pod, you can select the one to be used
  70. type: string
  71. type: object
  72. servicePrincipal:
  73. description: ServicePrincipal uses Azure Service Principal
  74. credentials to authenticate with Azure.
  75. properties:
  76. secretRef:
  77. description: |-
  78. AzureACRServicePrincipalAuthSecretRef defines the secret references for Azure Service Principal authentication.
  79. It uses static credentials stored in a Kind=Secret.
  80. properties:
  81. clientId:
  82. description: The Azure clientId of the service
  83. principle used for authentication.
  84. properties:
  85. key:
  86. description: |-
  87. A key in the referenced Secret.
  88. Some instances of this field may be defaulted, in others it may be required.
  89. maxLength: 253
  90. minLength: 1
  91. pattern: ^[-._a-zA-Z0-9]+$
  92. type: string
  93. name:
  94. description: The name of the Secret resource
  95. being referred to.
  96. maxLength: 253
  97. minLength: 1
  98. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  99. type: string
  100. namespace:
  101. description: |-
  102. The namespace of the Secret resource being referred to.
  103. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  104. maxLength: 63
  105. minLength: 1
  106. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  107. type: string
  108. type: object
  109. clientSecret:
  110. description: The Azure ClientSecret of the service
  111. principle used for authentication.
  112. properties:
  113. key:
  114. description: |-
  115. A key in the referenced Secret.
  116. Some instances of this field may be defaulted, in others it may be required.
  117. maxLength: 253
  118. minLength: 1
  119. pattern: ^[-._a-zA-Z0-9]+$
  120. type: string
  121. name:
  122. description: The name of the Secret resource
  123. being referred to.
  124. maxLength: 253
  125. minLength: 1
  126. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  127. type: string
  128. namespace:
  129. description: |-
  130. The namespace of the Secret resource being referred to.
  131. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  132. maxLength: 63
  133. minLength: 1
  134. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  135. type: string
  136. type: object
  137. type: object
  138. required:
  139. - secretRef
  140. type: object
  141. workloadIdentity:
  142. description: WorkloadIdentity uses Azure Workload Identity
  143. to authenticate with Azure.
  144. properties:
  145. serviceAccountRef:
  146. description: |-
  147. ServiceAccountRef specified the service account
  148. that should be used when authenticating with WorkloadIdentity.
  149. properties:
  150. audiences:
  151. description: |-
  152. Audience specifies the `aud` claim for the service account token
  153. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  154. then this audiences will be appended to the list
  155. items:
  156. type: string
  157. type: array
  158. name:
  159. description: The name of the ServiceAccount resource
  160. being referred to.
  161. maxLength: 253
  162. minLength: 1
  163. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  164. type: string
  165. namespace:
  166. description: |-
  167. Namespace of the resource being referred to.
  168. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  169. maxLength: 63
  170. minLength: 1
  171. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  172. type: string
  173. required:
  174. - name
  175. type: object
  176. type: object
  177. type: object
  178. environmentType:
  179. default: PublicCloud
  180. description: |-
  181. EnvironmentType specifies the Azure cloud environment endpoints to use for
  182. connecting and authenticating with Azure. By default, it points to the public cloud AAD endpoint.
  183. The following endpoints are available, also see here: https://github.com/Azure/go-autorest/blob/main/autorest/azure/environments.go#L152
  184. PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud
  185. enum:
  186. - PublicCloud
  187. - USGovernmentCloud
  188. - ChinaCloud
  189. - GermanCloud
  190. - AzureStackCloud
  191. type: string
  192. registry:
  193. description: |-
  194. the domain name of the ACR registry
  195. e.g. foobarexample.azurecr.io
  196. type: string
  197. scope:
  198. description: |-
  199. Define the scope for the access token, e.g. pull/push access for a repository.
  200. if not provided it will return a refresh token that has full scope.
  201. Note: you need to pin it down to the repository level, there is no wildcard available.
  202. examples:
  203. repository:my-repository:pull,push
  204. repository:my-repository:pull
  205. see docs for details: https://docs.docker.com/registry/spec/auth/scope/
  206. type: string
  207. tenantId:
  208. description: TenantID configures the Azure Tenant to send
  209. requests to. Required for ServicePrincipal auth type.
  210. type: string
  211. required:
  212. - auth
  213. - registry
  214. type: object
  215. cloudsmithAccessTokenSpec:
  216. description: CloudsmithAccessTokenSpec defines the configuration
  217. for generating a Cloudsmith access token using OIDC authentication.
  218. properties:
  219. apiUrl:
  220. description: APIURL configures the Cloudsmith API URL. Defaults
  221. to https://api.cloudsmith.io.
  222. type: string
  223. orgSlug:
  224. description: OrgSlug is the organization slug in Cloudsmith
  225. type: string
  226. serviceAccountRef:
  227. description: Name of the service account you are federating
  228. with
  229. properties:
  230. audiences:
  231. description: |-
  232. Audience specifies the `aud` claim for the service account token
  233. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  234. then this audiences will be appended to the list
  235. items:
  236. type: string
  237. type: array
  238. name:
  239. description: The name of the ServiceAccount resource being
  240. referred to.
  241. maxLength: 253
  242. minLength: 1
  243. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  244. type: string
  245. namespace:
  246. description: |-
  247. Namespace of the resource being referred to.
  248. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  249. maxLength: 63
  250. minLength: 1
  251. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  252. type: string
  253. required:
  254. - name
  255. type: object
  256. serviceSlug:
  257. description: ServiceSlug is the service slug in Cloudsmith
  258. for OIDC authentication
  259. type: string
  260. required:
  261. - orgSlug
  262. - serviceAccountRef
  263. - serviceSlug
  264. type: object
  265. ecrAuthorizationTokenSpec:
  266. description: ECRAuthorizationTokenSpec defines the desired state
  267. to generate an AWS ECR authorization token.
  268. properties:
  269. auth:
  270. description: Auth defines how to authenticate with AWS
  271. properties:
  272. jwt:
  273. description: AWSJWTAuth provides configuration to authenticate
  274. against AWS using service account tokens.
  275. properties:
  276. serviceAccountRef:
  277. description: ServiceAccountSelector is a reference
  278. to a ServiceAccount resource.
  279. properties:
  280. audiences:
  281. description: |-
  282. Audience specifies the `aud` claim for the service account token
  283. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  284. then this audiences will be appended to the list
  285. items:
  286. type: string
  287. type: array
  288. name:
  289. description: The name of the ServiceAccount resource
  290. being referred to.
  291. maxLength: 253
  292. minLength: 1
  293. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  294. type: string
  295. namespace:
  296. description: |-
  297. Namespace of the resource being referred to.
  298. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  299. maxLength: 63
  300. minLength: 1
  301. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  302. type: string
  303. required:
  304. - name
  305. type: object
  306. type: object
  307. secretRef:
  308. description: |-
  309. AWSAuthSecretRef holds secret references for AWS credentials
  310. both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.
  311. properties:
  312. accessKeyIDSecretRef:
  313. description: The AccessKeyID is used for authentication
  314. properties:
  315. key:
  316. description: |-
  317. A key in the referenced Secret.
  318. Some instances of this field may be defaulted, in others it may be required.
  319. maxLength: 253
  320. minLength: 1
  321. pattern: ^[-._a-zA-Z0-9]+$
  322. type: string
  323. name:
  324. description: The name of the Secret resource being
  325. referred to.
  326. maxLength: 253
  327. minLength: 1
  328. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  329. type: string
  330. namespace:
  331. description: |-
  332. The namespace of the Secret resource being referred to.
  333. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  334. maxLength: 63
  335. minLength: 1
  336. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  337. type: string
  338. type: object
  339. secretAccessKeySecretRef:
  340. description: The SecretAccessKey is used for authentication
  341. properties:
  342. key:
  343. description: |-
  344. A key in the referenced Secret.
  345. Some instances of this field may be defaulted, in others it may be required.
  346. maxLength: 253
  347. minLength: 1
  348. pattern: ^[-._a-zA-Z0-9]+$
  349. type: string
  350. name:
  351. description: The name of the Secret resource being
  352. referred to.
  353. maxLength: 253
  354. minLength: 1
  355. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  356. type: string
  357. namespace:
  358. description: |-
  359. The namespace of the Secret resource being referred to.
  360. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  361. maxLength: 63
  362. minLength: 1
  363. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  364. type: string
  365. type: object
  366. sessionTokenSecretRef:
  367. description: |-
  368. The SessionToken used for authentication
  369. This must be defined if AccessKeyID and SecretAccessKey are temporary credentials
  370. see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
  371. properties:
  372. key:
  373. description: |-
  374. A key in the referenced Secret.
  375. Some instances of this field may be defaulted, in others it may be required.
  376. maxLength: 253
  377. minLength: 1
  378. pattern: ^[-._a-zA-Z0-9]+$
  379. type: string
  380. name:
  381. description: The name of the Secret resource being
  382. referred to.
  383. maxLength: 253
  384. minLength: 1
  385. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  386. type: string
  387. namespace:
  388. description: |-
  389. The namespace of the Secret resource being referred to.
  390. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  391. maxLength: 63
  392. minLength: 1
  393. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  394. type: string
  395. type: object
  396. type: object
  397. type: object
  398. region:
  399. description: Region specifies the region to operate in.
  400. type: string
  401. role:
  402. description: |-
  403. You can assume a role before making calls to the
  404. desired AWS service.
  405. type: string
  406. scope:
  407. description: |-
  408. Scope specifies the ECR service scope.
  409. Valid options are private and public.
  410. type: string
  411. required:
  412. - region
  413. type: object
  414. fakeSpec:
  415. description: FakeSpec contains the static data.
  416. properties:
  417. controller:
  418. description: |-
  419. Used to select the correct ESO controller (think: ingress.ingressClassName)
  420. The ESO controller is instantiated with a specific controller name and filters VDS based on this property
  421. type: string
  422. data:
  423. additionalProperties:
  424. type: string
  425. description: |-
  426. Data defines the static data returned
  427. by this generator.
  428. type: object
  429. type: object
  430. gcrAccessTokenSpec:
  431. description: GCRAccessTokenSpec defines the desired state to generate
  432. a Google Container Registry access token.
  433. properties:
  434. auth:
  435. description: Auth defines the means for authenticating with
  436. GCP
  437. properties:
  438. secretRef:
  439. description: GCPSMAuthSecretRef defines the reference
  440. to a secret containing Google Cloud Platform credentials.
  441. properties:
  442. secretAccessKeySecretRef:
  443. description: The SecretAccessKey is used for authentication
  444. properties:
  445. key:
  446. description: |-
  447. A key in the referenced Secret.
  448. Some instances of this field may be defaulted, in others it may be required.
  449. maxLength: 253
  450. minLength: 1
  451. pattern: ^[-._a-zA-Z0-9]+$
  452. type: string
  453. name:
  454. description: The name of the Secret resource being
  455. referred to.
  456. maxLength: 253
  457. minLength: 1
  458. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  459. type: string
  460. namespace:
  461. description: |-
  462. The namespace of the Secret resource being referred to.
  463. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  464. maxLength: 63
  465. minLength: 1
  466. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  467. type: string
  468. type: object
  469. type: object
  470. workloadIdentity:
  471. description: GCPWorkloadIdentity defines the configuration
  472. for using GCP Workload Identity authentication.
  473. properties:
  474. clusterLocation:
  475. type: string
  476. clusterName:
  477. type: string
  478. clusterProjectID:
  479. type: string
  480. serviceAccountRef:
  481. description: ServiceAccountSelector is a reference
  482. to a ServiceAccount resource.
  483. properties:
  484. audiences:
  485. description: |-
  486. Audience specifies the `aud` claim for the service account token
  487. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  488. then this audiences will be appended to the list
  489. items:
  490. type: string
  491. type: array
  492. name:
  493. description: The name of the ServiceAccount resource
  494. being referred to.
  495. maxLength: 253
  496. minLength: 1
  497. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  498. type: string
  499. namespace:
  500. description: |-
  501. Namespace of the resource being referred to.
  502. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  503. maxLength: 63
  504. minLength: 1
  505. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  506. type: string
  507. required:
  508. - name
  509. type: object
  510. required:
  511. - clusterLocation
  512. - clusterName
  513. - serviceAccountRef
  514. type: object
  515. workloadIdentityFederation:
  516. description: GCPWorkloadIdentityFederation holds the configurations
  517. required for generating federated access tokens.
  518. properties:
  519. audience:
  520. description: |-
  521. audience is the Secure Token Service (STS) audience which contains the resource name for the workload identity pool and the provider identifier in that pool.
  522. If specified, Audience found in the external account credential config will be overridden with the configured value.
  523. audience must be provided when serviceAccountRef or awsSecurityCredentials is configured.
  524. type: string
  525. awsSecurityCredentials:
  526. description: |-
  527. awsSecurityCredentials is for configuring AWS region and credentials to use for obtaining the access token,
  528. when using the AWS metadata server is not an option.
  529. properties:
  530. awsCredentialsSecretRef:
  531. description: |-
  532. awsCredentialsSecretRef is the reference to the secret which holds the AWS credentials.
  533. Secret should be created with below names for keys
  534. - aws_access_key_id: Access Key ID, which is the unique identifier for the AWS account or the IAM user.
  535. - aws_secret_access_key: Secret Access Key, which is used to authenticate requests made to AWS services.
  536. - aws_session_token: Session Token, is the short-lived token to authenticate requests made to AWS services.
  537. properties:
  538. name:
  539. description: name of the secret.
  540. maxLength: 253
  541. minLength: 1
  542. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  543. type: string
  544. namespace:
  545. description: namespace in which the secret
  546. exists. If empty, secret will looked up
  547. in local namespace.
  548. maxLength: 63
  549. minLength: 1
  550. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  551. type: string
  552. required:
  553. - name
  554. type: object
  555. region:
  556. description: region is for configuring the AWS
  557. region to be used.
  558. example: ap-south-1
  559. maxLength: 50
  560. minLength: 1
  561. pattern: ^[a-z0-9-]+$
  562. type: string
  563. required:
  564. - awsCredentialsSecretRef
  565. - region
  566. type: object
  567. credConfig:
  568. description: |-
  569. credConfig holds the configmap reference containing the GCP external account credential configuration in JSON format and the key name containing the json data.
  570. For using Kubernetes cluster as the identity provider, use serviceAccountRef instead. Operators mounted serviceaccount token cannot be used as the token source, instead
  571. serviceAccountRef must be used by providing operators service account details.
  572. properties:
  573. key:
  574. description: key name holding the external account
  575. credential config.
  576. maxLength: 253
  577. minLength: 1
  578. pattern: ^[-._a-zA-Z0-9]+$
  579. type: string
  580. name:
  581. description: name of the configmap.
  582. maxLength: 253
  583. minLength: 1
  584. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  585. type: string
  586. namespace:
  587. description: namespace in which the configmap
  588. exists. If empty, configmap will looked up in
  589. local namespace.
  590. maxLength: 63
  591. minLength: 1
  592. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  593. type: string
  594. required:
  595. - key
  596. - name
  597. type: object
  598. externalTokenEndpoint:
  599. description: |-
  600. externalTokenEndpoint is the endpoint explicitly set up to provide tokens, which will be matched against the
  601. credential_source.url in the provided credConfig. This field is merely to double-check the external token source
  602. URL is having the expected value.
  603. type: string
  604. serviceAccountRef:
  605. description: |-
  606. serviceAccountRef is the reference to the kubernetes ServiceAccount to be used for obtaining the tokens,
  607. when Kubernetes is configured as provider in workload identity pool.
  608. properties:
  609. audiences:
  610. description: |-
  611. Audience specifies the `aud` claim for the service account token
  612. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  613. then this audiences will be appended to the list
  614. items:
  615. type: string
  616. type: array
  617. name:
  618. description: The name of the ServiceAccount resource
  619. being referred to.
  620. maxLength: 253
  621. minLength: 1
  622. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  623. type: string
  624. namespace:
  625. description: |-
  626. Namespace of the resource being referred to.
  627. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  628. maxLength: 63
  629. minLength: 1
  630. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  631. type: string
  632. required:
  633. - name
  634. type: object
  635. type: object
  636. type: object
  637. projectID:
  638. description: ProjectID defines which project to use to authenticate
  639. with
  640. type: string
  641. required:
  642. - auth
  643. - projectID
  644. type: object
  645. githubAccessTokenSpec:
  646. description: GithubAccessTokenSpec defines the desired state to
  647. generate a GitHub access token.
  648. properties:
  649. appID:
  650. type: string
  651. auth:
  652. description: Auth configures how ESO authenticates with a
  653. Github instance.
  654. properties:
  655. privateKey:
  656. description: GithubSecretRef references a secret containing
  657. GitHub credentials.
  658. properties:
  659. secretRef:
  660. description: |-
  661. SecretKeySelector is a reference to a specific 'key' within a Secret resource.
  662. In some instances, `key` is a required field.
  663. properties:
  664. key:
  665. description: |-
  666. A key in the referenced Secret.
  667. Some instances of this field may be defaulted, in others it may be required.
  668. maxLength: 253
  669. minLength: 1
  670. pattern: ^[-._a-zA-Z0-9]+$
  671. type: string
  672. name:
  673. description: The name of the Secret resource being
  674. referred to.
  675. maxLength: 253
  676. minLength: 1
  677. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  678. type: string
  679. namespace:
  680. description: |-
  681. The namespace of the Secret resource being referred to.
  682. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  683. maxLength: 63
  684. minLength: 1
  685. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  686. type: string
  687. type: object
  688. required:
  689. - secretRef
  690. type: object
  691. required:
  692. - privateKey
  693. type: object
  694. installID:
  695. type: string
  696. permissions:
  697. additionalProperties:
  698. type: string
  699. description: Map of permissions the token will have. If omitted,
  700. defaults to all permissions the GitHub App has.
  701. type: object
  702. repositories:
  703. description: |-
  704. List of repositories the token will have access to. If omitted, defaults to all repositories the GitHub App
  705. is installed to.
  706. items:
  707. type: string
  708. type: array
  709. url:
  710. description: URL configures the GitHub instance URL. Defaults
  711. to https://github.com/.
  712. type: string
  713. required:
  714. - appID
  715. - auth
  716. - installID
  717. type: object
  718. grafanaSpec:
  719. description: GrafanaSpec controls the behavior of the grafana
  720. generator.
  721. properties:
  722. auth:
  723. description: |-
  724. Auth is the authentication configuration to authenticate
  725. against the Grafana instance.
  726. properties:
  727. basic:
  728. description: |-
  729. Basic auth credentials used to authenticate against the Grafana instance.
  730. Note: you need a token which has elevated permissions to create service accounts.
  731. See here for the documentation on basic roles offered by Grafana:
  732. https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/rbac-fixed-basic-role-definitions/
  733. properties:
  734. password:
  735. description: A basic auth password used to authenticate
  736. against the Grafana instance.
  737. properties:
  738. key:
  739. description: The key where the token is found.
  740. maxLength: 253
  741. minLength: 1
  742. pattern: ^[-._a-zA-Z0-9]+$
  743. type: string
  744. name:
  745. description: The name of the Secret resource being
  746. referred to.
  747. maxLength: 253
  748. minLength: 1
  749. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  750. type: string
  751. type: object
  752. username:
  753. description: A basic auth username used to authenticate
  754. against the Grafana instance.
  755. type: string
  756. required:
  757. - password
  758. - username
  759. type: object
  760. token:
  761. description: |-
  762. A service account token used to authenticate against the Grafana instance.
  763. Note: you need a token which has elevated permissions to create service accounts.
  764. See here for the documentation on basic roles offered by Grafana:
  765. https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/rbac-fixed-basic-role-definitions/
  766. properties:
  767. key:
  768. description: The key where the token is found.
  769. maxLength: 253
  770. minLength: 1
  771. pattern: ^[-._a-zA-Z0-9]+$
  772. type: string
  773. name:
  774. description: The name of the Secret resource being
  775. referred to.
  776. maxLength: 253
  777. minLength: 1
  778. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  779. type: string
  780. type: object
  781. type: object
  782. serviceAccount:
  783. description: |-
  784. ServiceAccount is the configuration for the service account that
  785. is supposed to be generated by the generator.
  786. properties:
  787. name:
  788. description: Name is the name of the service account that
  789. will be created by ESO.
  790. type: string
  791. role:
  792. description: |-
  793. Role is the role of the service account.
  794. See here for the documentation on basic roles offered by Grafana:
  795. https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/access-control/rbac-fixed-basic-role-definitions/
  796. type: string
  797. required:
  798. - name
  799. - role
  800. type: object
  801. url:
  802. description: URL is the URL of the Grafana instance.
  803. type: string
  804. required:
  805. - auth
  806. - serviceAccount
  807. - url
  808. type: object
  809. mfaSpec:
  810. description: MFASpec controls the behavior of the mfa generator.
  811. properties:
  812. algorithm:
  813. description: Algorithm to use for encoding. Defaults to SHA1
  814. as per the RFC.
  815. type: string
  816. length:
  817. description: Length defines the token length. Defaults to
  818. 6 characters.
  819. type: integer
  820. secret:
  821. description: Secret is a secret selector to a secret containing
  822. the seed secret to generate the TOTP value from.
  823. properties:
  824. key:
  825. description: |-
  826. A key in the referenced Secret.
  827. Some instances of this field may be defaulted, in others it may be required.
  828. maxLength: 253
  829. minLength: 1
  830. pattern: ^[-._a-zA-Z0-9]+$
  831. type: string
  832. name:
  833. description: The name of the Secret resource being referred
  834. to.
  835. maxLength: 253
  836. minLength: 1
  837. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  838. type: string
  839. namespace:
  840. description: |-
  841. The namespace of the Secret resource being referred to.
  842. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  843. maxLength: 63
  844. minLength: 1
  845. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  846. type: string
  847. type: object
  848. timePeriod:
  849. description: TimePeriod defines how long the token can be
  850. active. Defaults to 30 seconds.
  851. type: integer
  852. when:
  853. description: When defines a time parameter that can be used
  854. to pin the origin time of the generated token.
  855. format: date-time
  856. type: string
  857. required:
  858. - secret
  859. type: object
  860. passwordSpec:
  861. description: PasswordSpec controls the behavior of the password
  862. generator.
  863. properties:
  864. allowRepeat:
  865. default: false
  866. description: set AllowRepeat to true to allow repeating characters.
  867. type: boolean
  868. digits:
  869. description: |-
  870. Digits specifies the number of digits in the generated
  871. password. If omitted it defaults to 25% of the length of the password
  872. type: integer
  873. encoding:
  874. default: raw
  875. description: |-
  876. Encoding specifies the encoding of the generated password.
  877. Valid values are:
  878. - "raw" (default): no encoding
  879. - "base64": standard base64 encoding
  880. - "base64url": base64url encoding
  881. - "base32": base32 encoding
  882. - "hex": hexadecimal encoding
  883. enum:
  884. - base64
  885. - base64url
  886. - base32
  887. - hex
  888. - raw
  889. type: string
  890. length:
  891. default: 24
  892. description: |-
  893. Length of the password to be generated.
  894. Defaults to 24
  895. type: integer
  896. noUpper:
  897. default: false
  898. description: Set NoUpper to disable uppercase characters
  899. type: boolean
  900. symbolCharacters:
  901. description: |-
  902. SymbolCharacters specifies the special characters that should be used
  903. in the generated password.
  904. type: string
  905. symbols:
  906. description: |-
  907. Symbols specifies the number of symbol characters in the generated
  908. password. If omitted it defaults to 25% of the length of the password
  909. type: integer
  910. required:
  911. - allowRepeat
  912. - length
  913. - noUpper
  914. type: object
  915. quayAccessTokenSpec:
  916. description: QuayAccessTokenSpec defines the desired state to
  917. generate a Quay access token.
  918. properties:
  919. robotAccount:
  920. description: Name of the robot account you are federating
  921. with
  922. type: string
  923. serviceAccountRef:
  924. description: Name of the service account you are federating
  925. with
  926. properties:
  927. audiences:
  928. description: |-
  929. Audience specifies the `aud` claim for the service account token
  930. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  931. then this audiences will be appended to the list
  932. items:
  933. type: string
  934. type: array
  935. name:
  936. description: The name of the ServiceAccount resource being
  937. referred to.
  938. maxLength: 253
  939. minLength: 1
  940. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  941. type: string
  942. namespace:
  943. description: |-
  944. Namespace of the resource being referred to.
  945. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  946. maxLength: 63
  947. minLength: 1
  948. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  949. type: string
  950. required:
  951. - name
  952. type: object
  953. url:
  954. description: URL configures the Quay instance URL. Defaults
  955. to quay.io.
  956. type: string
  957. required:
  958. - robotAccount
  959. - serviceAccountRef
  960. type: object
  961. sshKeySpec:
  962. description: SSHKeySpec controls the behavior of the ssh key generator.
  963. properties:
  964. comment:
  965. description: Comment specifies an optional comment for the
  966. SSH key
  967. type: string
  968. keySize:
  969. description: |-
  970. KeySize specifies the key size for RSA keys (default: 2048) and ECDSA keys (default: 256).
  971. For RSA keys: 2048, 3072, 4096
  972. For ECDSA keys: 256, 384, 521
  973. Ignored for ed25519 keys
  974. maximum: 8192
  975. minimum: 256
  976. type: integer
  977. keyType:
  978. default: rsa
  979. description: KeyType specifies the SSH key type (rsa, ecdsa,
  980. ed25519)
  981. enum:
  982. - rsa
  983. - ecdsa
  984. - ed25519
  985. type: string
  986. type: object
  987. stsSessionTokenSpec:
  988. description: STSSessionTokenSpec defines the desired state to
  989. generate an AWS STS session token.
  990. properties:
  991. auth:
  992. description: Auth defines how to authenticate with AWS
  993. properties:
  994. jwt:
  995. description: AWSJWTAuth provides configuration to authenticate
  996. against AWS using service account tokens.
  997. properties:
  998. serviceAccountRef:
  999. description: ServiceAccountSelector is a reference
  1000. to a ServiceAccount resource.
  1001. properties:
  1002. audiences:
  1003. description: |-
  1004. Audience specifies the `aud` claim for the service account token
  1005. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  1006. then this audiences will be appended to the list
  1007. items:
  1008. type: string
  1009. type: array
  1010. name:
  1011. description: The name of the ServiceAccount resource
  1012. being referred to.
  1013. maxLength: 253
  1014. minLength: 1
  1015. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1016. type: string
  1017. namespace:
  1018. description: |-
  1019. Namespace of the resource being referred to.
  1020. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1021. maxLength: 63
  1022. minLength: 1
  1023. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1024. type: string
  1025. required:
  1026. - name
  1027. type: object
  1028. type: object
  1029. secretRef:
  1030. description: |-
  1031. AWSAuthSecretRef holds secret references for AWS credentials
  1032. both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.
  1033. properties:
  1034. accessKeyIDSecretRef:
  1035. description: The AccessKeyID is used for authentication
  1036. properties:
  1037. key:
  1038. description: |-
  1039. A key in the referenced Secret.
  1040. Some instances of this field may be defaulted, in others it may be required.
  1041. maxLength: 253
  1042. minLength: 1
  1043. pattern: ^[-._a-zA-Z0-9]+$
  1044. type: string
  1045. name:
  1046. description: The name of the Secret resource being
  1047. referred to.
  1048. maxLength: 253
  1049. minLength: 1
  1050. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1051. type: string
  1052. namespace:
  1053. description: |-
  1054. The namespace of the Secret resource being referred to.
  1055. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1056. maxLength: 63
  1057. minLength: 1
  1058. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1059. type: string
  1060. type: object
  1061. secretAccessKeySecretRef:
  1062. description: The SecretAccessKey is used for authentication
  1063. properties:
  1064. key:
  1065. description: |-
  1066. A key in the referenced Secret.
  1067. Some instances of this field may be defaulted, in others it may be required.
  1068. maxLength: 253
  1069. minLength: 1
  1070. pattern: ^[-._a-zA-Z0-9]+$
  1071. type: string
  1072. name:
  1073. description: The name of the Secret resource being
  1074. referred to.
  1075. maxLength: 253
  1076. minLength: 1
  1077. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1078. type: string
  1079. namespace:
  1080. description: |-
  1081. The namespace of the Secret resource being referred to.
  1082. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1083. maxLength: 63
  1084. minLength: 1
  1085. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1086. type: string
  1087. type: object
  1088. sessionTokenSecretRef:
  1089. description: |-
  1090. The SessionToken used for authentication
  1091. This must be defined if AccessKeyID and SecretAccessKey are temporary credentials
  1092. see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
  1093. properties:
  1094. key:
  1095. description: |-
  1096. A key in the referenced Secret.
  1097. Some instances of this field may be defaulted, in others it may be required.
  1098. maxLength: 253
  1099. minLength: 1
  1100. pattern: ^[-._a-zA-Z0-9]+$
  1101. type: string
  1102. name:
  1103. description: The name of the Secret resource being
  1104. referred to.
  1105. maxLength: 253
  1106. minLength: 1
  1107. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1108. type: string
  1109. namespace:
  1110. description: |-
  1111. The namespace of the Secret resource being referred to.
  1112. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1113. maxLength: 63
  1114. minLength: 1
  1115. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1116. type: string
  1117. type: object
  1118. type: object
  1119. type: object
  1120. region:
  1121. description: Region specifies the region to operate in.
  1122. type: string
  1123. requestParameters:
  1124. description: RequestParameters contains parameters that can
  1125. be passed to the STS service.
  1126. properties:
  1127. serialNumber:
  1128. description: |-
  1129. SerialNumber is the identification number of the MFA device that is associated with the IAM user who is making
  1130. the GetSessionToken call.
  1131. Possible values: hardware device (such as GAHT12345678) or an Amazon Resource Name (ARN) for a virtual device
  1132. (such as arn:aws:iam::123456789012:mfa/user)
  1133. type: string
  1134. sessionDuration:
  1135. format: int32
  1136. type: integer
  1137. tokenCode:
  1138. description: TokenCode is the value provided by the MFA
  1139. device, if MFA is required.
  1140. type: string
  1141. type: object
  1142. role:
  1143. description: |-
  1144. You can assume a role before making calls to the
  1145. desired AWS service.
  1146. type: string
  1147. required:
  1148. - region
  1149. type: object
  1150. uuidSpec:
  1151. description: UUIDSpec controls the behavior of the uuid generator.
  1152. type: object
  1153. vaultDynamicSecretSpec:
  1154. description: VaultDynamicSecretSpec defines the desired spec of
  1155. VaultDynamicSecret.
  1156. properties:
  1157. allowEmptyResponse:
  1158. default: false
  1159. description: Do not fail if no secrets are found. Useful for
  1160. requests where no data is expected.
  1161. type: boolean
  1162. controller:
  1163. description: |-
  1164. Used to select the correct ESO controller (think: ingress.ingressClassName)
  1165. The ESO controller is instantiated with a specific controller name and filters VDS based on this property
  1166. type: string
  1167. method:
  1168. description: Vault API method to use (GET/POST/other)
  1169. type: string
  1170. parameters:
  1171. description: Parameters to pass to Vault write (for non-GET
  1172. methods)
  1173. x-kubernetes-preserve-unknown-fields: true
  1174. path:
  1175. description: Vault path to obtain the dynamic secret from
  1176. type: string
  1177. provider:
  1178. description: Vault provider common spec
  1179. properties:
  1180. auth:
  1181. description: Auth configures how secret-manager authenticates
  1182. with the Vault server.
  1183. properties:
  1184. appRole:
  1185. description: |-
  1186. AppRole authenticates with Vault using the App Role auth mechanism,
  1187. with the role and secret stored in a Kubernetes Secret resource.
  1188. properties:
  1189. path:
  1190. default: approle
  1191. description: |-
  1192. Path where the App Role authentication backend is mounted
  1193. in Vault, e.g: "approle"
  1194. type: string
  1195. roleId:
  1196. description: |-
  1197. RoleID configured in the App Role authentication backend when setting
  1198. up the authentication backend in Vault.
  1199. type: string
  1200. roleRef:
  1201. description: |-
  1202. Reference to a key in a Secret that contains the App Role ID used
  1203. to authenticate with Vault.
  1204. The `key` field must be specified and denotes which entry within the Secret
  1205. resource is used as the app role id.
  1206. properties:
  1207. key:
  1208. description: |-
  1209. A key in the referenced Secret.
  1210. Some instances of this field may be defaulted, in others it may be required.
  1211. maxLength: 253
  1212. minLength: 1
  1213. pattern: ^[-._a-zA-Z0-9]+$
  1214. type: string
  1215. name:
  1216. description: The name of the Secret resource
  1217. being referred to.
  1218. maxLength: 253
  1219. minLength: 1
  1220. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1221. type: string
  1222. namespace:
  1223. description: |-
  1224. The namespace of the Secret resource being referred to.
  1225. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1226. maxLength: 63
  1227. minLength: 1
  1228. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1229. type: string
  1230. type: object
  1231. secretRef:
  1232. description: |-
  1233. Reference to a key in a Secret that contains the App Role secret used
  1234. to authenticate with Vault.
  1235. The `key` field must be specified and denotes which entry within the Secret
  1236. resource is used as the app role secret.
  1237. properties:
  1238. key:
  1239. description: |-
  1240. A key in the referenced Secret.
  1241. Some instances of this field may be defaulted, in others it may be required.
  1242. maxLength: 253
  1243. minLength: 1
  1244. pattern: ^[-._a-zA-Z0-9]+$
  1245. type: string
  1246. name:
  1247. description: The name of the Secret resource
  1248. being referred to.
  1249. maxLength: 253
  1250. minLength: 1
  1251. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1252. type: string
  1253. namespace:
  1254. description: |-
  1255. The namespace of the Secret resource being referred to.
  1256. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1257. maxLength: 63
  1258. minLength: 1
  1259. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1260. type: string
  1261. type: object
  1262. required:
  1263. - path
  1264. - secretRef
  1265. type: object
  1266. cert:
  1267. description: |-
  1268. Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate
  1269. Cert authentication method
  1270. properties:
  1271. clientCert:
  1272. description: |-
  1273. ClientCert is a certificate to authenticate using the Cert Vault
  1274. authentication method
  1275. properties:
  1276. key:
  1277. description: |-
  1278. A key in the referenced Secret.
  1279. Some instances of this field may be defaulted, in others it may be required.
  1280. maxLength: 253
  1281. minLength: 1
  1282. pattern: ^[-._a-zA-Z0-9]+$
  1283. type: string
  1284. name:
  1285. description: The name of the Secret resource
  1286. being referred to.
  1287. maxLength: 253
  1288. minLength: 1
  1289. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1290. type: string
  1291. namespace:
  1292. description: |-
  1293. The namespace of the Secret resource being referred to.
  1294. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1295. maxLength: 63
  1296. minLength: 1
  1297. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1298. type: string
  1299. type: object
  1300. path:
  1301. default: cert
  1302. description: |-
  1303. Path where the Certificate authentication backend is mounted
  1304. in Vault, e.g: "cert"
  1305. type: string
  1306. secretRef:
  1307. description: |-
  1308. SecretRef to a key in a Secret resource containing client private key to
  1309. authenticate with Vault using the Cert authentication method
  1310. properties:
  1311. key:
  1312. description: |-
  1313. A key in the referenced Secret.
  1314. Some instances of this field may be defaulted, in others it may be required.
  1315. maxLength: 253
  1316. minLength: 1
  1317. pattern: ^[-._a-zA-Z0-9]+$
  1318. type: string
  1319. name:
  1320. description: The name of the Secret resource
  1321. being referred to.
  1322. maxLength: 253
  1323. minLength: 1
  1324. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1325. type: string
  1326. namespace:
  1327. description: |-
  1328. The namespace of the Secret resource being referred to.
  1329. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1330. maxLength: 63
  1331. minLength: 1
  1332. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1333. type: string
  1334. type: object
  1335. type: object
  1336. iam:
  1337. description: |-
  1338. Iam authenticates with vault by passing a special AWS request signed with AWS IAM credentials
  1339. AWS IAM authentication method
  1340. properties:
  1341. externalID:
  1342. description: AWS External ID set on assumed IAM
  1343. roles
  1344. type: string
  1345. jwt:
  1346. description: Specify a service account with IRSA
  1347. enabled
  1348. properties:
  1349. serviceAccountRef:
  1350. description: ServiceAccountSelector is a reference
  1351. to a ServiceAccount resource.
  1352. properties:
  1353. audiences:
  1354. description: |-
  1355. Audience specifies the `aud` claim for the service account token
  1356. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  1357. then this audiences will be appended to the list
  1358. items:
  1359. type: string
  1360. type: array
  1361. name:
  1362. description: The name of the ServiceAccount
  1363. resource being referred to.
  1364. maxLength: 253
  1365. minLength: 1
  1366. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1367. type: string
  1368. namespace:
  1369. description: |-
  1370. Namespace of the resource being referred to.
  1371. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1372. maxLength: 63
  1373. minLength: 1
  1374. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1375. type: string
  1376. required:
  1377. - name
  1378. type: object
  1379. type: object
  1380. path:
  1381. description: 'Path where the AWS auth method is
  1382. enabled in Vault, e.g: "aws"'
  1383. type: string
  1384. region:
  1385. description: AWS region
  1386. type: string
  1387. role:
  1388. description: This is the AWS role to be assumed
  1389. before talking to vault
  1390. type: string
  1391. secretRef:
  1392. description: Specify credentials in a Secret object
  1393. properties:
  1394. accessKeyIDSecretRef:
  1395. description: The AccessKeyID is used for authentication
  1396. properties:
  1397. key:
  1398. description: |-
  1399. A key in the referenced Secret.
  1400. Some instances of this field may be defaulted, in others it may be required.
  1401. maxLength: 253
  1402. minLength: 1
  1403. pattern: ^[-._a-zA-Z0-9]+$
  1404. type: string
  1405. name:
  1406. description: The name of the Secret resource
  1407. being referred to.
  1408. maxLength: 253
  1409. minLength: 1
  1410. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1411. type: string
  1412. namespace:
  1413. description: |-
  1414. The namespace of the Secret resource being referred to.
  1415. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1416. maxLength: 63
  1417. minLength: 1
  1418. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1419. type: string
  1420. type: object
  1421. secretAccessKeySecretRef:
  1422. description: The SecretAccessKey is used for
  1423. authentication
  1424. properties:
  1425. key:
  1426. description: |-
  1427. A key in the referenced Secret.
  1428. Some instances of this field may be defaulted, in others it may be required.
  1429. maxLength: 253
  1430. minLength: 1
  1431. pattern: ^[-._a-zA-Z0-9]+$
  1432. type: string
  1433. name:
  1434. description: The name of the Secret resource
  1435. being referred to.
  1436. maxLength: 253
  1437. minLength: 1
  1438. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1439. type: string
  1440. namespace:
  1441. description: |-
  1442. The namespace of the Secret resource being referred to.
  1443. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1444. maxLength: 63
  1445. minLength: 1
  1446. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1447. type: string
  1448. type: object
  1449. sessionTokenSecretRef:
  1450. description: |-
  1451. The SessionToken used for authentication
  1452. This must be defined if AccessKeyID and SecretAccessKey are temporary credentials
  1453. see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html
  1454. properties:
  1455. key:
  1456. description: |-
  1457. A key in the referenced Secret.
  1458. Some instances of this field may be defaulted, in others it may be required.
  1459. maxLength: 253
  1460. minLength: 1
  1461. pattern: ^[-._a-zA-Z0-9]+$
  1462. type: string
  1463. name:
  1464. description: The name of the Secret resource
  1465. being referred to.
  1466. maxLength: 253
  1467. minLength: 1
  1468. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1469. type: string
  1470. namespace:
  1471. description: |-
  1472. The namespace of the Secret resource being referred to.
  1473. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1474. maxLength: 63
  1475. minLength: 1
  1476. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1477. type: string
  1478. type: object
  1479. type: object
  1480. vaultAwsIamServerID:
  1481. description: 'X-Vault-AWS-IAM-Server-ID is an
  1482. additional header used by Vault IAM auth method
  1483. to mitigate against different types of replay
  1484. attacks. More details here: https://developer.hashicorp.com/vault/docs/auth/aws'
  1485. type: string
  1486. vaultRole:
  1487. description: Vault Role. In vault, a role describes
  1488. an identity with a set of permissions, groups,
  1489. or policies you want to attach a user of the
  1490. secrets engine
  1491. type: string
  1492. required:
  1493. - vaultRole
  1494. type: object
  1495. jwt:
  1496. description: |-
  1497. Jwt authenticates with Vault by passing role and JWT token using the
  1498. JWT/OIDC authentication method
  1499. properties:
  1500. kubernetesServiceAccountToken:
  1501. description: |-
  1502. Optional ServiceAccountToken specifies the Kubernetes service account for which to request
  1503. a token for with the `TokenRequest` API.
  1504. properties:
  1505. audiences:
  1506. description: |-
  1507. Optional audiences field that will be used to request a temporary Kubernetes service
  1508. account token for the service account referenced by `serviceAccountRef`.
  1509. Defaults to a single audience `vault` it not specified.
  1510. Deprecated: use serviceAccountRef.Audiences instead
  1511. items:
  1512. type: string
  1513. type: array
  1514. expirationSeconds:
  1515. description: |-
  1516. Optional expiration time in seconds that will be used to request a temporary
  1517. Kubernetes service account token for the service account referenced by
  1518. `serviceAccountRef`.
  1519. Deprecated: this will be removed in the future.
  1520. Defaults to 10 minutes.
  1521. format: int64
  1522. type: integer
  1523. serviceAccountRef:
  1524. description: Service account field containing
  1525. the name of a kubernetes ServiceAccount.
  1526. properties:
  1527. audiences:
  1528. description: |-
  1529. Audience specifies the `aud` claim for the service account token
  1530. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  1531. then this audiences will be appended to the list
  1532. items:
  1533. type: string
  1534. type: array
  1535. name:
  1536. description: The name of the ServiceAccount
  1537. resource being referred to.
  1538. maxLength: 253
  1539. minLength: 1
  1540. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1541. type: string
  1542. namespace:
  1543. description: |-
  1544. Namespace of the resource being referred to.
  1545. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1546. maxLength: 63
  1547. minLength: 1
  1548. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1549. type: string
  1550. required:
  1551. - name
  1552. type: object
  1553. required:
  1554. - serviceAccountRef
  1555. type: object
  1556. path:
  1557. default: jwt
  1558. description: |-
  1559. Path where the JWT authentication backend is mounted
  1560. in Vault, e.g: "jwt"
  1561. type: string
  1562. role:
  1563. description: |-
  1564. Role is a JWT role to authenticate using the JWT/OIDC Vault
  1565. authentication method
  1566. type: string
  1567. secretRef:
  1568. description: |-
  1569. Optional SecretRef that refers to a key in a Secret resource containing JWT token to
  1570. authenticate with Vault using the JWT/OIDC authentication method.
  1571. properties:
  1572. key:
  1573. description: |-
  1574. A key in the referenced Secret.
  1575. Some instances of this field may be defaulted, in others it may be required.
  1576. maxLength: 253
  1577. minLength: 1
  1578. pattern: ^[-._a-zA-Z0-9]+$
  1579. type: string
  1580. name:
  1581. description: The name of the Secret resource
  1582. being referred to.
  1583. maxLength: 253
  1584. minLength: 1
  1585. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1586. type: string
  1587. namespace:
  1588. description: |-
  1589. The namespace of the Secret resource being referred to.
  1590. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1591. maxLength: 63
  1592. minLength: 1
  1593. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1594. type: string
  1595. type: object
  1596. required:
  1597. - path
  1598. type: object
  1599. kubernetes:
  1600. description: |-
  1601. Kubernetes authenticates with Vault by passing the ServiceAccount
  1602. token stored in the named Secret resource to the Vault server.
  1603. properties:
  1604. mountPath:
  1605. default: kubernetes
  1606. description: |-
  1607. Path where the Kubernetes authentication backend is mounted in Vault, e.g:
  1608. "kubernetes"
  1609. type: string
  1610. role:
  1611. description: |-
  1612. A required field containing the Vault Role to assume. A Role binds a
  1613. Kubernetes ServiceAccount with a set of Vault policies.
  1614. type: string
  1615. secretRef:
  1616. description: |-
  1617. Optional secret field containing a Kubernetes ServiceAccount JWT used
  1618. for authenticating with Vault. If a name is specified without a key,
  1619. `token` is the default. If one is not specified, the one bound to
  1620. the controller will be used.
  1621. properties:
  1622. key:
  1623. description: |-
  1624. A key in the referenced Secret.
  1625. Some instances of this field may be defaulted, in others it may be required.
  1626. maxLength: 253
  1627. minLength: 1
  1628. pattern: ^[-._a-zA-Z0-9]+$
  1629. type: string
  1630. name:
  1631. description: The name of the Secret resource
  1632. being referred to.
  1633. maxLength: 253
  1634. minLength: 1
  1635. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1636. type: string
  1637. namespace:
  1638. description: |-
  1639. The namespace of the Secret resource being referred to.
  1640. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1641. maxLength: 63
  1642. minLength: 1
  1643. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1644. type: string
  1645. type: object
  1646. serviceAccountRef:
  1647. description: |-
  1648. Optional service account field containing the name of a kubernetes ServiceAccount.
  1649. If the service account is specified, the service account secret token JWT will be used
  1650. for authenticating with Vault. If the service account selector is not supplied,
  1651. the secretRef will be used instead.
  1652. properties:
  1653. audiences:
  1654. description: |-
  1655. Audience specifies the `aud` claim for the service account token
  1656. If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity
  1657. then this audiences will be appended to the list
  1658. items:
  1659. type: string
  1660. type: array
  1661. name:
  1662. description: The name of the ServiceAccount
  1663. resource being referred to.
  1664. maxLength: 253
  1665. minLength: 1
  1666. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1667. type: string
  1668. namespace:
  1669. description: |-
  1670. Namespace of the resource being referred to.
  1671. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1672. maxLength: 63
  1673. minLength: 1
  1674. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1675. type: string
  1676. required:
  1677. - name
  1678. type: object
  1679. required:
  1680. - mountPath
  1681. - role
  1682. type: object
  1683. ldap:
  1684. description: |-
  1685. Ldap authenticates with Vault by passing username/password pair using
  1686. the LDAP authentication method
  1687. properties:
  1688. path:
  1689. default: ldap
  1690. description: |-
  1691. Path where the LDAP authentication backend is mounted
  1692. in Vault, e.g: "ldap"
  1693. type: string
  1694. secretRef:
  1695. description: |-
  1696. SecretRef to a key in a Secret resource containing password for the LDAP
  1697. user used to authenticate with Vault using the LDAP authentication
  1698. method
  1699. properties:
  1700. key:
  1701. description: |-
  1702. A key in the referenced Secret.
  1703. Some instances of this field may be defaulted, in others it may be required.
  1704. maxLength: 253
  1705. minLength: 1
  1706. pattern: ^[-._a-zA-Z0-9]+$
  1707. type: string
  1708. name:
  1709. description: The name of the Secret resource
  1710. being referred to.
  1711. maxLength: 253
  1712. minLength: 1
  1713. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1714. type: string
  1715. namespace:
  1716. description: |-
  1717. The namespace of the Secret resource being referred to.
  1718. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1719. maxLength: 63
  1720. minLength: 1
  1721. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1722. type: string
  1723. type: object
  1724. username:
  1725. description: |-
  1726. Username is an LDAP username used to authenticate using the LDAP Vault
  1727. authentication method
  1728. type: string
  1729. required:
  1730. - path
  1731. - username
  1732. type: object
  1733. namespace:
  1734. description: |-
  1735. Name of the vault namespace to authenticate to. This can be different than the namespace your secret is in.
  1736. Namespaces is a set of features within Vault Enterprise that allows
  1737. Vault environments to support Secure Multi-tenancy. e.g: "ns1".
  1738. More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces
  1739. This will default to Vault.Namespace field if set, or empty otherwise
  1740. type: string
  1741. tokenSecretRef:
  1742. description: TokenSecretRef authenticates with Vault
  1743. by presenting a token.
  1744. properties:
  1745. key:
  1746. description: |-
  1747. A key in the referenced Secret.
  1748. Some instances of this field may be defaulted, in others it may be required.
  1749. maxLength: 253
  1750. minLength: 1
  1751. pattern: ^[-._a-zA-Z0-9]+$
  1752. type: string
  1753. name:
  1754. description: The name of the Secret resource being
  1755. referred to.
  1756. maxLength: 253
  1757. minLength: 1
  1758. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1759. type: string
  1760. namespace:
  1761. description: |-
  1762. The namespace of the Secret resource being referred to.
  1763. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1764. maxLength: 63
  1765. minLength: 1
  1766. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1767. type: string
  1768. type: object
  1769. userPass:
  1770. description: UserPass authenticates with Vault by
  1771. passing username/password pair
  1772. properties:
  1773. path:
  1774. default: userpass
  1775. description: |-
  1776. Path where the UserPassword authentication backend is mounted
  1777. in Vault, e.g: "userpass"
  1778. type: string
  1779. secretRef:
  1780. description: |-
  1781. SecretRef to a key in a Secret resource containing password for the
  1782. user used to authenticate with Vault using the UserPass authentication
  1783. method
  1784. properties:
  1785. key:
  1786. description: |-
  1787. A key in the referenced Secret.
  1788. Some instances of this field may be defaulted, in others it may be required.
  1789. maxLength: 253
  1790. minLength: 1
  1791. pattern: ^[-._a-zA-Z0-9]+$
  1792. type: string
  1793. name:
  1794. description: The name of the Secret resource
  1795. being referred to.
  1796. maxLength: 253
  1797. minLength: 1
  1798. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1799. type: string
  1800. namespace:
  1801. description: |-
  1802. The namespace of the Secret resource being referred to.
  1803. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1804. maxLength: 63
  1805. minLength: 1
  1806. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1807. type: string
  1808. type: object
  1809. username:
  1810. description: |-
  1811. Username is a username used to authenticate using the UserPass Vault
  1812. authentication method
  1813. type: string
  1814. required:
  1815. - path
  1816. - username
  1817. type: object
  1818. type: object
  1819. caBundle:
  1820. description: |-
  1821. PEM encoded CA bundle used to validate Vault server certificate. Only used
  1822. if the Server URL is using HTTPS protocol. This parameter is ignored for
  1823. plain HTTP protocol connection. If not set the system root certificates
  1824. are used to validate the TLS connection.
  1825. format: byte
  1826. type: string
  1827. caProvider:
  1828. description: The provider for the CA bundle to use to
  1829. validate Vault server certificate.
  1830. properties:
  1831. key:
  1832. description: The key where the CA certificate can
  1833. be found in the Secret or ConfigMap.
  1834. maxLength: 253
  1835. minLength: 1
  1836. pattern: ^[-._a-zA-Z0-9]+$
  1837. type: string
  1838. name:
  1839. description: The name of the object located at the
  1840. provider type.
  1841. maxLength: 253
  1842. minLength: 1
  1843. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1844. type: string
  1845. namespace:
  1846. description: |-
  1847. The namespace the Provider type is in.
  1848. Can only be defined when used in a ClusterSecretStore.
  1849. maxLength: 63
  1850. minLength: 1
  1851. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1852. type: string
  1853. type:
  1854. description: The type of provider to use such as "Secret",
  1855. or "ConfigMap".
  1856. enum:
  1857. - Secret
  1858. - ConfigMap
  1859. type: string
  1860. required:
  1861. - name
  1862. - type
  1863. type: object
  1864. checkAndSet:
  1865. description: |-
  1866. CheckAndSet defines the Check-And-Set (CAS) settings for PushSecret operations.
  1867. Only applies to Vault KV v2 stores. When enabled, write operations must include
  1868. the current version of the secret to prevent unintentional overwrites.
  1869. properties:
  1870. required:
  1871. description: |-
  1872. Required when true, all write operations must include a check-and-set parameter.
  1873. This helps prevent unintentional overwrites of secrets.
  1874. type: boolean
  1875. type: object
  1876. forwardInconsistent:
  1877. description: |-
  1878. ForwardInconsistent tells Vault to forward read-after-write requests to the Vault
  1879. leader instead of simply retrying within a loop. This can increase performance if
  1880. the option is enabled serverside.
  1881. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header
  1882. type: boolean
  1883. headers:
  1884. additionalProperties:
  1885. type: string
  1886. description: Headers to be added in Vault request
  1887. type: object
  1888. namespace:
  1889. description: |-
  1890. Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows
  1891. Vault environments to support Secure Multi-tenancy. e.g: "ns1".
  1892. More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces
  1893. type: string
  1894. path:
  1895. description: |-
  1896. Path is the mount path of the Vault KV backend endpoint, e.g:
  1897. "secret". The v2 KV secret engine version specific "/data" path suffix
  1898. for fetching secrets from Vault is optional and will be appended
  1899. if not present in specified path.
  1900. type: string
  1901. readYourWrites:
  1902. description: |-
  1903. ReadYourWrites ensures isolated read-after-write semantics by
  1904. providing discovered cluster replication states in each request.
  1905. More information about eventual consistency in Vault can be found here
  1906. https://www.vaultproject.io/docs/enterprise/consistency
  1907. type: boolean
  1908. server:
  1909. description: 'Server is the connection address for the
  1910. Vault server, e.g: "https://vault.example.com:8200".'
  1911. type: string
  1912. tls:
  1913. description: |-
  1914. The configuration used for client side related TLS communication, when the Vault server
  1915. requires mutual authentication. Only used if the Server URL is using HTTPS protocol.
  1916. This parameter is ignored for plain HTTP protocol connection.
  1917. It's worth noting this configuration is different from the "TLS certificates auth method",
  1918. which is available under the `auth.cert` section.
  1919. properties:
  1920. certSecretRef:
  1921. description: |-
  1922. CertSecretRef is a certificate added to the transport layer
  1923. when communicating with the Vault server.
  1924. If no key for the Secret is specified, external-secret will default to 'tls.crt'.
  1925. properties:
  1926. key:
  1927. description: |-
  1928. A key in the referenced Secret.
  1929. Some instances of this field may be defaulted, in others it may be required.
  1930. maxLength: 253
  1931. minLength: 1
  1932. pattern: ^[-._a-zA-Z0-9]+$
  1933. type: string
  1934. name:
  1935. description: The name of the Secret resource being
  1936. referred to.
  1937. maxLength: 253
  1938. minLength: 1
  1939. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1940. type: string
  1941. namespace:
  1942. description: |-
  1943. The namespace of the Secret resource being referred to.
  1944. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1945. maxLength: 63
  1946. minLength: 1
  1947. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1948. type: string
  1949. type: object
  1950. keySecretRef:
  1951. description: |-
  1952. KeySecretRef to a key in a Secret resource containing client private key
  1953. added to the transport layer when communicating with the Vault server.
  1954. If no key for the Secret is specified, external-secret will default to 'tls.key'.
  1955. properties:
  1956. key:
  1957. description: |-
  1958. A key in the referenced Secret.
  1959. Some instances of this field may be defaulted, in others it may be required.
  1960. maxLength: 253
  1961. minLength: 1
  1962. pattern: ^[-._a-zA-Z0-9]+$
  1963. type: string
  1964. name:
  1965. description: The name of the Secret resource being
  1966. referred to.
  1967. maxLength: 253
  1968. minLength: 1
  1969. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  1970. type: string
  1971. namespace:
  1972. description: |-
  1973. The namespace of the Secret resource being referred to.
  1974. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  1975. maxLength: 63
  1976. minLength: 1
  1977. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  1978. type: string
  1979. type: object
  1980. type: object
  1981. version:
  1982. default: v2
  1983. description: |-
  1984. Version is the Vault KV secret engine version. This can be either "v1" or
  1985. "v2". Version defaults to "v2".
  1986. enum:
  1987. - v1
  1988. - v2
  1989. type: string
  1990. required:
  1991. - server
  1992. type: object
  1993. resultType:
  1994. default: Data
  1995. description: |-
  1996. Result type defines which data is returned from the generator.
  1997. By default, it is the "data" section of the Vault API response.
  1998. When using e.g. /auth/token/create the "data" section is empty but
  1999. the "auth" section contains the generated token.
  2000. Please refer to the vault docs regarding the result data structure.
  2001. Additionally, accessing the raw response is possibly by using "Raw" result type.
  2002. enum:
  2003. - Data
  2004. - Auth
  2005. - Raw
  2006. type: string
  2007. retrySettings:
  2008. description: Used to configure http retries if failed
  2009. properties:
  2010. maxRetries:
  2011. format: int32
  2012. type: integer
  2013. retryInterval:
  2014. type: string
  2015. type: object
  2016. required:
  2017. - path
  2018. - provider
  2019. type: object
  2020. webhookSpec:
  2021. description: WebhookSpec controls the behavior of the external
  2022. generator. Any body parameters should be passed to the server
  2023. through the parameters field.
  2024. properties:
  2025. auth:
  2026. description: Auth specifies a authorization protocol. Only
  2027. one protocol may be set.
  2028. maxProperties: 1
  2029. minProperties: 1
  2030. properties:
  2031. ntlm:
  2032. description: NTLMProtocol configures the store to use
  2033. NTLM for auth
  2034. properties:
  2035. passwordSecret:
  2036. description: |-
  2037. SecretKeySelector is a reference to a specific 'key' within a Secret resource.
  2038. In some instances, `key` is a required field.
  2039. properties:
  2040. key:
  2041. description: |-
  2042. A key in the referenced Secret.
  2043. Some instances of this field may be defaulted, in others it may be required.
  2044. maxLength: 253
  2045. minLength: 1
  2046. pattern: ^[-._a-zA-Z0-9]+$
  2047. type: string
  2048. name:
  2049. description: The name of the Secret resource being
  2050. referred to.
  2051. maxLength: 253
  2052. minLength: 1
  2053. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  2054. type: string
  2055. namespace:
  2056. description: |-
  2057. The namespace of the Secret resource being referred to.
  2058. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  2059. maxLength: 63
  2060. minLength: 1
  2061. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  2062. type: string
  2063. type: object
  2064. usernameSecret:
  2065. description: |-
  2066. SecretKeySelector is a reference to a specific 'key' within a Secret resource.
  2067. In some instances, `key` is a required field.
  2068. properties:
  2069. key:
  2070. description: |-
  2071. A key in the referenced Secret.
  2072. Some instances of this field may be defaulted, in others it may be required.
  2073. maxLength: 253
  2074. minLength: 1
  2075. pattern: ^[-._a-zA-Z0-9]+$
  2076. type: string
  2077. name:
  2078. description: The name of the Secret resource being
  2079. referred to.
  2080. maxLength: 253
  2081. minLength: 1
  2082. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  2083. type: string
  2084. namespace:
  2085. description: |-
  2086. The namespace of the Secret resource being referred to.
  2087. Ignored if referent is not cluster-scoped, otherwise defaults to the namespace of the referent.
  2088. maxLength: 63
  2089. minLength: 1
  2090. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  2091. type: string
  2092. type: object
  2093. required:
  2094. - passwordSecret
  2095. - usernameSecret
  2096. type: object
  2097. type: object
  2098. body:
  2099. description: Body
  2100. type: string
  2101. caBundle:
  2102. description: |-
  2103. PEM encoded CA bundle used to validate webhook server certificate. Only used
  2104. if the Server URL is using HTTPS protocol. This parameter is ignored for
  2105. plain HTTP protocol connection. If not set the system root certificates
  2106. are used to validate the TLS connection.
  2107. format: byte
  2108. type: string
  2109. caProvider:
  2110. description: The provider for the CA bundle to use to validate
  2111. webhook server certificate.
  2112. properties:
  2113. key:
  2114. description: The key where the CA certificate can be found
  2115. in the Secret or ConfigMap.
  2116. maxLength: 253
  2117. minLength: 1
  2118. pattern: ^[-._a-zA-Z0-9]+$
  2119. type: string
  2120. name:
  2121. description: The name of the object located at the provider
  2122. type.
  2123. maxLength: 253
  2124. minLength: 1
  2125. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  2126. type: string
  2127. namespace:
  2128. description: The namespace the Provider type is in.
  2129. maxLength: 63
  2130. minLength: 1
  2131. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$
  2132. type: string
  2133. type:
  2134. description: The type of provider to use such as "Secret",
  2135. or "ConfigMap".
  2136. enum:
  2137. - Secret
  2138. - ConfigMap
  2139. type: string
  2140. required:
  2141. - name
  2142. - type
  2143. type: object
  2144. headers:
  2145. additionalProperties:
  2146. type: string
  2147. description: Headers
  2148. type: object
  2149. method:
  2150. description: Webhook Method
  2151. type: string
  2152. result:
  2153. description: Result formatting
  2154. properties:
  2155. jsonPath:
  2156. description: Json path of return value
  2157. type: string
  2158. type: object
  2159. secrets:
  2160. description: |-
  2161. Secrets to fill in templates
  2162. These secrets will be passed to the templating function as key value pairs under the given name
  2163. items:
  2164. description: WebhookSecret defines a secret reference that
  2165. will be used in webhook templates.
  2166. properties:
  2167. name:
  2168. description: Name of this secret in templates
  2169. type: string
  2170. secretRef:
  2171. description: Secret ref to fill in credentials
  2172. properties:
  2173. key:
  2174. description: The key where the token is found.
  2175. maxLength: 253
  2176. minLength: 1
  2177. pattern: ^[-._a-zA-Z0-9]+$
  2178. type: string
  2179. name:
  2180. description: The name of the Secret resource being
  2181. referred to.
  2182. maxLength: 253
  2183. minLength: 1
  2184. pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$
  2185. type: string
  2186. type: object
  2187. required:
  2188. - name
  2189. - secretRef
  2190. type: object
  2191. type: array
  2192. timeout:
  2193. description: Timeout
  2194. type: string
  2195. url:
  2196. description: Webhook url to call
  2197. type: string
  2198. required:
  2199. - result
  2200. - url
  2201. type: object
  2202. type: object
  2203. kind:
  2204. description: Kind the kind of this generator.
  2205. enum:
  2206. - ACRAccessToken
  2207. - CloudsmithAccessToken
  2208. - ECRAuthorizationToken
  2209. - Fake
  2210. - GCRAccessToken
  2211. - GithubAccessToken
  2212. - QuayAccessToken
  2213. - Password
  2214. - SSHKey
  2215. - STSSessionToken
  2216. - UUID
  2217. - VaultDynamicSecret
  2218. - Webhook
  2219. - Grafana
  2220. type: string
  2221. required:
  2222. - generator
  2223. - kind
  2224. type: object
  2225. type: object
  2226. served: true
  2227. storage: true
  2228. subresources:
  2229. status: {}