generated from crossplane/upjet-provider-template
/
zz_keys_types.go
executable file
·792 lines (626 loc) · 36.3 KB
/
zz_keys_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AwsInitParameters struct {
// The AWS access key to use.
// The AWS access key to use
AccessKey *string `json:"accessKey,omitempty" tf:"access_key,omitempty"`
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The curve to use for an ECDSA key. Used when key_type
// is ECDSA. Required if allow_generate_key is true.
// The curve to use for an ECDSA key. Used when key_type is 'ECDSA'. Required if 'allow_generate_key' is true
Curve *string `json:"curve,omitempty" tf:"curve,omitempty"`
// Used to specify a custom AWS endpoint.
// Used to specify a custom AWS endpoint
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// An identifier for the key.
// An identifier for the key
KMSKey *string `json:"kmsKey,omitempty" tf:"kms_key,omitempty"`
// The size in bits for an RSA key.
// The size in bits for an RSA key. This field is required when 'key_type' is 'RSA'
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The type of key to use.
// The type of key to use
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The AWS region where the keys are stored (or will be stored).
// The AWS region where the keys are stored (or will be stored)
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// The AWS access key to use.
// The AWS secret key to use
SecretKey *string `json:"secretKey,omitempty" tf:"secret_key,omitempty"`
}
type AwsObservation struct {
// The AWS access key to use.
// The AWS access key to use
AccessKey *string `json:"accessKey,omitempty" tf:"access_key,omitempty"`
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The curve to use for an ECDSA key. Used when key_type
// is ECDSA. Required if allow_generate_key is true.
// The curve to use for an ECDSA key. Used when key_type is 'ECDSA'. Required if 'allow_generate_key' is true
Curve *string `json:"curve,omitempty" tf:"curve,omitempty"`
// Used to specify a custom AWS endpoint.
// Used to specify a custom AWS endpoint
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// An identifier for the key.
// An identifier for the key
KMSKey *string `json:"kmsKey,omitempty" tf:"kms_key,omitempty"`
// The size in bits for an RSA key.
// The size in bits for an RSA key. This field is required when 'key_type' is 'RSA'
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The type of key to use.
// The type of key to use
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The AWS region where the keys are stored (or will be stored).
// The AWS region where the keys are stored (or will be stored)
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// The AWS access key to use.
// The AWS secret key to use
SecretKey *string `json:"secretKey,omitempty" tf:"secret_key,omitempty"`
// ID of the managed key read from Vault
UUID *string `json:"uuid,omitempty" tf:"uuid,omitempty"`
}
type AwsParameters struct {
// The AWS access key to use.
// The AWS access key to use
// +kubebuilder:validation:Optional
AccessKey *string `json:"accessKey,omitempty" tf:"access_key,omitempty"`
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
// +kubebuilder:validation:Optional
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
// +kubebuilder:validation:Optional
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
// +kubebuilder:validation:Optional
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
// +kubebuilder:validation:Optional
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The curve to use for an ECDSA key. Used when key_type
// is ECDSA. Required if allow_generate_key is true.
// The curve to use for an ECDSA key. Used when key_type is 'ECDSA'. Required if 'allow_generate_key' is true
// +kubebuilder:validation:Optional
Curve *string `json:"curve,omitempty" tf:"curve,omitempty"`
// Used to specify a custom AWS endpoint.
// Used to specify a custom AWS endpoint
// +kubebuilder:validation:Optional
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// An identifier for the key.
// An identifier for the key
// +kubebuilder:validation:Optional
KMSKey *string `json:"kmsKey,omitempty" tf:"kms_key,omitempty"`
// The size in bits for an RSA key.
// The size in bits for an RSA key. This field is required when 'key_type' is 'RSA'
// +kubebuilder:validation:Optional
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The type of key to use.
// The type of key to use
// +kubebuilder:validation:Optional
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The AWS region where the keys are stored (or will be stored).
// The AWS region where the keys are stored (or will be stored)
// +kubebuilder:validation:Optional
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// The AWS access key to use.
// The AWS secret key to use
// +kubebuilder:validation:Optional
SecretKey *string `json:"secretKey,omitempty" tf:"secret_key,omitempty"`
}
type AzureInitParameters struct {
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The client id for credentials to query the Azure APIs.
// The client id for credentials to query the Azure APIs
ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"`
// The client secret for credentials to query the Azure APIs.
// The client secret for credentials to query the Azure APIs
ClientSecret *string `json:"clientSecret,omitempty" tf:"client_secret,omitempty"`
// The Azure Cloud environment API endpoints to use.
// The Azure Cloud environment API endpoints to use
Environment *string `json:"environment,omitempty" tf:"environment,omitempty"`
// The size in bits for an RSA key.
// The size in bits for an RSA key. This field is required when 'key_type' is 'RSA' or when 'allow_generate_key' is true
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The Key Vault key to use for encryption and decryption.
// The Key Vault key to use for encryption and decryption
KeyName *string `json:"keyName,omitempty" tf:"key_name,omitempty"`
// The type of key to use.
// The type of key to use
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The Azure Key Vault resource's DNS Suffix to connect to.
// The Azure Key Vault resource's DNS Suffix to connect to
Resource *string `json:"resource,omitempty" tf:"resource,omitempty"`
// The tenant id for the Azure Active Directory organization.
// The tenant id for the Azure Active Directory organization
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// The Key Vault vault to use for encryption and decryption.
// The Key Vault vault to use the encryption keys for encryption and decryption
VaultName *string `json:"vaultName,omitempty" tf:"vault_name,omitempty"`
}
type AzureObservation struct {
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The client id for credentials to query the Azure APIs.
// The client id for credentials to query the Azure APIs
ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"`
// The client secret for credentials to query the Azure APIs.
// The client secret for credentials to query the Azure APIs
ClientSecret *string `json:"clientSecret,omitempty" tf:"client_secret,omitempty"`
// The Azure Cloud environment API endpoints to use.
// The Azure Cloud environment API endpoints to use
Environment *string `json:"environment,omitempty" tf:"environment,omitempty"`
// The size in bits for an RSA key.
// The size in bits for an RSA key. This field is required when 'key_type' is 'RSA' or when 'allow_generate_key' is true
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The Key Vault key to use for encryption and decryption.
// The Key Vault key to use for encryption and decryption
KeyName *string `json:"keyName,omitempty" tf:"key_name,omitempty"`
// The type of key to use.
// The type of key to use
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The Azure Key Vault resource's DNS Suffix to connect to.
// The Azure Key Vault resource's DNS Suffix to connect to
Resource *string `json:"resource,omitempty" tf:"resource,omitempty"`
// The tenant id for the Azure Active Directory organization.
// The tenant id for the Azure Active Directory organization
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// ID of the managed key read from Vault
UUID *string `json:"uuid,omitempty" tf:"uuid,omitempty"`
// The Key Vault vault to use for encryption and decryption.
// The Key Vault vault to use the encryption keys for encryption and decryption
VaultName *string `json:"vaultName,omitempty" tf:"vault_name,omitempty"`
}
type AzureParameters struct {
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
// +kubebuilder:validation:Optional
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
// +kubebuilder:validation:Optional
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
// +kubebuilder:validation:Optional
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
// +kubebuilder:validation:Optional
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The client id for credentials to query the Azure APIs.
// The client id for credentials to query the Azure APIs
// +kubebuilder:validation:Optional
ClientID *string `json:"clientId,omitempty" tf:"client_id,omitempty"`
// The client secret for credentials to query the Azure APIs.
// The client secret for credentials to query the Azure APIs
// +kubebuilder:validation:Optional
ClientSecret *string `json:"clientSecret,omitempty" tf:"client_secret,omitempty"`
// The Azure Cloud environment API endpoints to use.
// The Azure Cloud environment API endpoints to use
// +kubebuilder:validation:Optional
Environment *string `json:"environment,omitempty" tf:"environment,omitempty"`
// The size in bits for an RSA key.
// The size in bits for an RSA key. This field is required when 'key_type' is 'RSA' or when 'allow_generate_key' is true
// +kubebuilder:validation:Optional
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The Key Vault key to use for encryption and decryption.
// The Key Vault key to use for encryption and decryption
// +kubebuilder:validation:Optional
KeyName *string `json:"keyName,omitempty" tf:"key_name,omitempty"`
// The type of key to use.
// The type of key to use
// +kubebuilder:validation:Optional
KeyType *string `json:"keyType,omitempty" tf:"key_type,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The Azure Key Vault resource's DNS Suffix to connect to.
// The Azure Key Vault resource's DNS Suffix to connect to
// +kubebuilder:validation:Optional
Resource *string `json:"resource,omitempty" tf:"resource,omitempty"`
// The tenant id for the Azure Active Directory organization.
// The tenant id for the Azure Active Directory organization
// +kubebuilder:validation:Optional
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// The Key Vault vault to use for encryption and decryption.
// The Key Vault vault to use the encryption keys for encryption and decryption
// +kubebuilder:validation:Optional
VaultName *string `json:"vaultName,omitempty" tf:"vault_name,omitempty"`
}
type KeysInitParameters struct {
// Configuration block for AWS Managed Keys
Aws []AwsInitParameters `json:"aws,omitempty" tf:"aws,omitempty"`
// Configuration block for Azure Managed Keys
Azure []AzureInitParameters `json:"azure,omitempty" tf:"azure,omitempty"`
// The namespace to provision the resource in.
// The value should not contain leading or trailing forward slashes.
// The namespace is always relative to the provider's configured namespace.
// Available only for Vault Enterprise.
// Target namespace. (requires Enterprise)
Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`
// Configuration block for PKCS Managed Keys
Pkcs []PkcsInitParameters `json:"pkcs,omitempty" tf:"pkcs,omitempty"`
}
type KeysObservation struct {
// Configuration block for AWS Managed Keys
Aws []AwsObservation `json:"aws,omitempty" tf:"aws,omitempty"`
// Configuration block for Azure Managed Keys
Azure []AzureObservation `json:"azure,omitempty" tf:"azure,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The namespace to provision the resource in.
// The value should not contain leading or trailing forward slashes.
// The namespace is always relative to the provider's configured namespace.
// Available only for Vault Enterprise.
// Target namespace. (requires Enterprise)
Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`
// Configuration block for PKCS Managed Keys
Pkcs []PkcsObservation `json:"pkcs,omitempty" tf:"pkcs,omitempty"`
}
type KeysParameters struct {
// Configuration block for AWS Managed Keys
// +kubebuilder:validation:Optional
Aws []AwsParameters `json:"aws,omitempty" tf:"aws,omitempty"`
// Configuration block for Azure Managed Keys
// +kubebuilder:validation:Optional
Azure []AzureParameters `json:"azure,omitempty" tf:"azure,omitempty"`
// The namespace to provision the resource in.
// The value should not contain leading or trailing forward slashes.
// The namespace is always relative to the provider's configured namespace.
// Available only for Vault Enterprise.
// Target namespace. (requires Enterprise)
// +kubebuilder:validation:Optional
Namespace *string `json:"namespace,omitempty" tf:"namespace,omitempty"`
// Configuration block for PKCS Managed Keys
// +kubebuilder:validation:Optional
Pkcs []PkcsParameters `json:"pkcs,omitempty" tf:"pkcs,omitempty"`
}
type PkcsInitParameters struct {
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The curve to use for an ECDSA key. Used when key_type
// is ECDSA. Required if allow_generate_key is true.
// Supplies the curve value when using the 'CKM_ECDSA' mechanism. Required if 'allow_generate_key' is true
Curve *string `json:"curve,omitempty" tf:"curve,omitempty"`
// Force all operations to open up a read-write session to
// the HSM.
// Force all operations to open up a read-write session to the HSM
ForceRwSession *string `json:"forceRwSession,omitempty" tf:"force_rw_session,omitempty"`
// The size in bits for an RSA key.
// Supplies the size in bits of the key when using 'CKM_RSA_PKCS_PSS', 'CKM_RSA_PKCS_OAEP' or 'CKM_RSA_PKCS' as a value for 'mechanism'. Required if 'allow_generate_key' is true
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The id of a PKCS#11 key to use.
// The id of a PKCS#11 key to use
KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`
// The label of the key to use.
// The label of the key to use
KeyLabel *string `json:"keyLabel,omitempty" tf:"key_label,omitempty"`
// The name of the kms_library stanza to use from Vault's config
// to lookup the local library path.
// The name of the kms_library stanza to use from Vault's config to lookup the local library path
Library *string `json:"library,omitempty" tf:"library,omitempty"`
// The encryption/decryption mechanism to use, specified as a
// hexadecimal (prefixed by 0x) string.
// The encryption/decryption mechanism to use, specified as a hexadecimal (prefixed by 0x) string.
Mechanism *string `json:"mechanism,omitempty" tf:"mechanism,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The PIN for login.
// The PIN for login
Pin *string `json:"pin,omitempty" tf:"pin,omitempty"`
// The slot number to use, specified as a string in a decimal format
// (e.g. 2305843009213693953).
// The slot number to use, specified as a string in a decimal format (e.g. '2305843009213693953')
Slot *string `json:"slot,omitempty" tf:"slot,omitempty"`
// The slot token label to use.
// The slot token label to use
TokenLabel *string `json:"tokenLabel,omitempty" tf:"token_label,omitempty"`
}
type PkcsObservation struct {
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The curve to use for an ECDSA key. Used when key_type
// is ECDSA. Required if allow_generate_key is true.
// Supplies the curve value when using the 'CKM_ECDSA' mechanism. Required if 'allow_generate_key' is true
Curve *string `json:"curve,omitempty" tf:"curve,omitempty"`
// Force all operations to open up a read-write session to
// the HSM.
// Force all operations to open up a read-write session to the HSM
ForceRwSession *string `json:"forceRwSession,omitempty" tf:"force_rw_session,omitempty"`
// The size in bits for an RSA key.
// Supplies the size in bits of the key when using 'CKM_RSA_PKCS_PSS', 'CKM_RSA_PKCS_OAEP' or 'CKM_RSA_PKCS' as a value for 'mechanism'. Required if 'allow_generate_key' is true
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The id of a PKCS#11 key to use.
// The id of a PKCS#11 key to use
KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`
// The label of the key to use.
// The label of the key to use
KeyLabel *string `json:"keyLabel,omitempty" tf:"key_label,omitempty"`
// The name of the kms_library stanza to use from Vault's config
// to lookup the local library path.
// The name of the kms_library stanza to use from Vault's config to lookup the local library path
Library *string `json:"library,omitempty" tf:"library,omitempty"`
// The encryption/decryption mechanism to use, specified as a
// hexadecimal (prefixed by 0x) string.
// The encryption/decryption mechanism to use, specified as a hexadecimal (prefixed by 0x) string.
Mechanism *string `json:"mechanism,omitempty" tf:"mechanism,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The PIN for login.
// The PIN for login
Pin *string `json:"pin,omitempty" tf:"pin,omitempty"`
// The slot number to use, specified as a string in a decimal format
// (e.g. 2305843009213693953).
// The slot number to use, specified as a string in a decimal format (e.g. '2305843009213693953')
Slot *string `json:"slot,omitempty" tf:"slot,omitempty"`
// The slot token label to use.
// The slot token label to use
TokenLabel *string `json:"tokenLabel,omitempty" tf:"token_label,omitempty"`
// ID of the managed key read from Vault
UUID *string `json:"uuid,omitempty" tf:"uuid,omitempty"`
}
type PkcsParameters struct {
// If no existing key can be found in
// the referenced backend, instructs Vault to generate a key within the backend.
// If no existing key can be found in the referenced backend, instructs Vault to generate a key within the backend
// +kubebuilder:validation:Optional
AllowGenerateKey *bool `json:"allowGenerateKey,omitempty" tf:"allow_generate_key,omitempty"`
// Controls the ability for Vault to replace through
// generation or importing a key into the configured backend even
// if a key is present, if set to false those operations are forbidden
// if a key exists.
// Controls the ability for Vault to replace through generation or importing a key into the configured backend even if a key is present, if set to false those operations are forbidden if a key exists.
// +kubebuilder:validation:Optional
AllowReplaceKey *bool `json:"allowReplaceKey,omitempty" tf:"allow_replace_key,omitempty"`
// Controls the ability for Vault to import a key to the
// configured backend, if false, those operations will be forbidden.
// Controls the ability for Vault to import a key to the configured backend, if 'false', those operations will be forbidden
// +kubebuilder:validation:Optional
AllowStoreKey *bool `json:"allowStoreKey,omitempty" tf:"allow_store_key,omitempty"`
// If true, allows usage from any mount point within the
// namespace.
// Allow usage from any mount point within the namespace if 'true'
// +kubebuilder:validation:Optional
AnyMount *bool `json:"anyMount,omitempty" tf:"any_mount,omitempty"`
// The curve to use for an ECDSA key. Used when key_type
// is ECDSA. Required if allow_generate_key is true.
// Supplies the curve value when using the 'CKM_ECDSA' mechanism. Required if 'allow_generate_key' is true
// +kubebuilder:validation:Optional
Curve *string `json:"curve,omitempty" tf:"curve,omitempty"`
// Force all operations to open up a read-write session to
// the HSM.
// Force all operations to open up a read-write session to the HSM
// +kubebuilder:validation:Optional
ForceRwSession *string `json:"forceRwSession,omitempty" tf:"force_rw_session,omitempty"`
// The size in bits for an RSA key.
// Supplies the size in bits of the key when using 'CKM_RSA_PKCS_PSS', 'CKM_RSA_PKCS_OAEP' or 'CKM_RSA_PKCS' as a value for 'mechanism'. Required if 'allow_generate_key' is true
// +kubebuilder:validation:Optional
KeyBits *string `json:"keyBits,omitempty" tf:"key_bits,omitempty"`
// The id of a PKCS#11 key to use.
// The id of a PKCS#11 key to use
// +kubebuilder:validation:Optional
KeyID *string `json:"keyId,omitempty" tf:"key_id,omitempty"`
// The label of the key to use.
// The label of the key to use
// +kubebuilder:validation:Optional
KeyLabel *string `json:"keyLabel,omitempty" tf:"key_label,omitempty"`
// The name of the kms_library stanza to use from Vault's config
// to lookup the local library path.
// The name of the kms_library stanza to use from Vault's config to lookup the local library path
// +kubebuilder:validation:Optional
Library *string `json:"library,omitempty" tf:"library,omitempty"`
// The encryption/decryption mechanism to use, specified as a
// hexadecimal (prefixed by 0x) string.
// The encryption/decryption mechanism to use, specified as a hexadecimal (prefixed by 0x) string.
// +kubebuilder:validation:Optional
Mechanism *string `json:"mechanism,omitempty" tf:"mechanism,omitempty"`
// A unique lowercase name that serves as identifying the key.
// A unique lowercase name that serves as identifying the key
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The PIN for login.
// The PIN for login
// +kubebuilder:validation:Optional
Pin *string `json:"pin,omitempty" tf:"pin,omitempty"`
// The slot number to use, specified as a string in a decimal format
// (e.g. 2305843009213693953).
// The slot number to use, specified as a string in a decimal format (e.g. '2305843009213693953')
// +kubebuilder:validation:Optional
Slot *string `json:"slot,omitempty" tf:"slot,omitempty"`
// The slot token label to use.
// The slot token label to use
// +kubebuilder:validation:Optional
TokenLabel *string `json:"tokenLabel,omitempty" tf:"token_label,omitempty"`
}
// KeysSpec defines the desired state of Keys
type KeysSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider KeysParameters `json:"forProvider"`
// THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored
// unless the relevant Crossplane feature flag is enabled, and may be
// changed or removed without notice.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider KeysInitParameters `json:"initProvider,omitempty"`
}
// KeysStatus defines the observed state of Keys.
type KeysStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider KeysObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Keys is the Schema for the Keyss API. Configures Managed Keys in Vault
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,vault}
type Keys struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec KeysSpec `json:"spec"`
Status KeysStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// KeysList contains a list of Keyss
type KeysList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Keys `json:"items"`
}
// Repository type metadata.
var (
Keys_Kind = "Keys"
Keys_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Keys_Kind}.String()
Keys_KindAPIVersion = Keys_Kind + "." + CRDGroupVersion.String()
Keys_GroupVersionKind = CRDGroupVersion.WithKind(Keys_Kind)
)
func init() {
SchemeBuilder.Register(&Keys{}, &KeysList{})
}