From 5548b4b000417b62dcca22c5f8695a05d5c288c5 Mon Sep 17 00:00:00 2001 From: Randy Johnson Date: Wed, 21 Feb 2024 16:39:26 -0500 Subject: [PATCH 1/3] feat: update all default versions to v0.9.11 --- .codegen/secrets/external-secrets/config.yaml | 2 +- .../secrets/external-secrets/deployment.yaml | 12 +++++----- .codegen/secrets/external-secrets/rbac.yaml | 22 +++++++++---------- .../secrets/external-secrets/service.yaml | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.codegen/secrets/external-secrets/config.yaml b/.codegen/secrets/external-secrets/config.yaml index 2066e61..0758705 100644 --- a/.codegen/secrets/external-secrets/config.yaml +++ b/.codegen/secrets/external-secrets/config.yaml @@ -7,7 +7,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets-webhook app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string external-secrets.io/component: webhook platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets diff --git a/.codegen/secrets/external-secrets/deployment.yaml b/.codegen/secrets/external-secrets/deployment.yaml index fb256b8..0f3815a 100644 --- a/.codegen/secrets/external-secrets/deployment.yaml +++ b/.codegen/secrets/external-secrets/deployment.yaml @@ -7,7 +7,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets-cert-controller app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets spec: @@ -31,7 +31,7 @@ spec: - name: cert-controller # +operator-builder:field:name=image,default=ghcr.io/external-secrets/external-secrets,type=string,replace="externalSecretsImage",description=` # Image repo and name to use for external-secrets.` - # +operator-builder:field:name=version,default="v0.5.9",type=string,replace="externalSecretsVersion",description=` + # +operator-builder:field:name=version,default="v0.9.11",type=string,replace="externalSecretsVersion",description=` # Version of external-secrets to use.` image: externalSecretsImage:externalSecretsVersion imagePullPolicy: IfNotPresent @@ -90,7 +90,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets spec: @@ -114,7 +114,7 @@ spec: - name: external-secrets # +operator-builder:field:name=image,default=ghcr.io/external-secrets/external-secrets,type=string,replace="externalSecretsImage",description=` # Image repo and name to use for external-secrets.` - # +operator-builder:field:name=version,default="v0.5.9",type=string,replace="externalSecretsVersion",description=` + # +operator-builder:field:name=version,default="v0.9.11",type=string,replace="externalSecretsVersion",description=` # Version of external-secrets to use.` image: externalSecretsImage:externalSecretsVersion imagePullPolicy: IfNotPresent @@ -162,7 +162,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets-webhook app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets spec: @@ -187,7 +187,7 @@ spec: - name: webhook # +operator-builder:field:name=image,default=ghcr.io/external-secrets/external-secrets,type=string,replace="externalSecretsImage",description=` # Image repo and name to use for external-secrets.` - # +operator-builder:field:name=version,default="v0.5.9",type=string,replace="externalSecretsVersion",description=` + # +operator-builder:field:name=version,default="v0.9.11",type=string,replace="externalSecretsVersion",description=` # Version of external-secrets to use.` image: externalSecretsImage:externalSecretsVersion imagePullPolicy: IfNotPresent diff --git a/.codegen/secrets/external-secrets/rbac.yaml b/.codegen/secrets/external-secrets/rbac.yaml index 5f16d9a..216370b 100644 --- a/.codegen/secrets/external-secrets/rbac.yaml +++ b/.codegen/secrets/external-secrets/rbac.yaml @@ -7,7 +7,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets-cert-controller app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets --- @@ -19,7 +19,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets --- @@ -31,7 +31,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets-webhook app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets --- @@ -42,7 +42,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets-cert-controller app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets rules: @@ -99,7 +99,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets rules: @@ -189,7 +189,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string rbac.authorization.k8s.io/aggregate-to-view: "true" rbac.authorization.k8s.io/aggregate-to-edit: "true" rbac.authorization.k8s.io/aggregate-to-admin: "true" @@ -214,7 +214,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string rbac.authorization.k8s.io/aggregate-to-edit: "true" rbac.authorization.k8s.io/aggregate-to-admin: "true" platform.nukleros.io/group: secrets @@ -240,7 +240,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets-cert-controller app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets roleRef: @@ -259,7 +259,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets roleRef: @@ -279,7 +279,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets rules: @@ -317,7 +317,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets roleRef: diff --git a/.codegen/secrets/external-secrets/service.yaml b/.codegen/secrets/external-secrets/service.yaml index 9b89cfe..38560c0 100644 --- a/.codegen/secrets/external-secrets/service.yaml +++ b/.codegen/secrets/external-secrets/service.yaml @@ -7,7 +7,7 @@ metadata: labels: app.kubernetes.io/name: external-secrets-webhook app.kubernetes.io/instance: external-secrets - app.kubernetes.io/version: v0.5.9 # +operator-builder:field:name=version,default="v0.5.9",type=string + app.kubernetes.io/version: v0.9.11 # +operator-builder:field:name=version,default="v0.9.11",type=string external-secrets.io/component: webhook platform.nukleros.io/group: secrets platform.nukleros.io/project: external-secrets From c89e1e9610d30c862b40a5186ea332fca8a37382 Mon Sep 17 00:00:00 2001 From: Randy Johnson Date: Thu, 29 Feb 2024 19:31:43 -0500 Subject: [PATCH 2/3] feat: add iamRoleArn to ExternalSecrets --- .codegen/Makefile | 4 + .../gateway_namespace_gateway_proxy.go.bak | 9 +- .codegen/secrets/external-secrets/crds.yaml | 6519 +++++++-- .codegen/secrets/external-secrets/rbac.yaml | 56 + .codegen/workload.yaml | 2 +- apis/certificates/certmanager.go | 2 +- apis/certificates/certmanager_latest.go | 2 +- .../v1alpha1/certmanager/constants/names.go | 2 +- .../certificates/v1alpha1/certmanager/crds.go | 2 +- .../v1alpha1/certmanager/deployment.go | 2 +- .../v1alpha1/certmanager/issuer.go | 2 +- .../cluster_issuer_letsencrypt_production.go | 2 +- .../cluster_issuer_letsencrypt_staging.go | 2 +- ...er_role_binding_cert_manager_cainjector.go | 2 +- ...ager_controller_approve_cert_manager_io.go | 2 +- ...ng_cert_manager_controller_certificates.go | 2 +- ...r_controller_certificatesigningrequests.go | 2 +- ...ding_cert_manager_controller_challenges.go | 2 +- ..._cert_manager_controller_clusterissuers.go | 2 +- ...ng_cert_manager_controller_ingress_shim.go | 2 +- ...binding_cert_manager_controller_issuers.go | 2 +- ..._binding_cert_manager_controller_orders.go | 2 +- ...rt_manager_webhook_subjectaccessreviews.go | 2 +- .../cluster_role_cert_manager_cainjector.go | 2 +- ...ager_controller_approve_cert_manager_io.go | 2 +- ...le_cert_manager_controller_certificates.go | 2 +- ...r_controller_certificatesigningrequests.go | 2 +- ...role_cert_manager_controller_challenges.go | 2 +- ..._cert_manager_controller_clusterissuers.go | 2 +- ...le_cert_manager_controller_ingress_shim.go | 2 +- ...er_role_cert_manager_controller_issuers.go | 2 +- ...ter_role_cert_manager_controller_orders.go | 2 +- .../mutate/cluster_role_cert_manager_edit.go | 2 +- .../mutate/cluster_role_cert_manager_view.go | 2 +- ...rt_manager_webhook_subjectaccessreviews.go | 2 +- ...crd_certificaterequests_cert_manager_io.go | 2 +- .../crd_certificates_cert_manager_io.go | 2 +- .../crd_challenges_acme_cert_manager_io.go | 2 +- .../crd_clusterissuers_cert_manager_io.go | 2 +- .../mutate/crd_issuers_cert_manager_io.go | 2 +- .../mutate/crd_orders_acme_cert_manager_io.go | 2 +- .../deployment_namespace_cert_manager.go | 2 +- ...yment_namespace_cert_manager_cainjector.go | 2 +- ...ployment_namespace_cert_manager_webhook.go | 2 +- .../mutating_webhook_cert_manager_webhook.go | 2 +- .../certmanager/mutate/namespace_namespace.go | 2 +- ..._cert_manager_cainjector_leaderelection.go | 2 +- ...g_namespace_cert_manager_leaderelection.go | 2 +- ...ce_cert_manager_webhook_dynamic_serving.go | 2 +- ..._cert_manager_cainjector_leaderelection.go | 2 +- ...e_namespace_cert_manager_leaderelection.go | 2 +- ...ce_cert_manager_webhook_dynamic_serving.go | 2 +- .../service_account_namespace_cert_manager.go | 2 +- ...count_namespace_cert_manager_cainjector.go | 2 +- ..._account_namespace_cert_manager_webhook.go | 2 +- .../mutate/service_namespace_cert_manager.go | 2 +- .../service_namespace_cert_manager_webhook.go | 2 +- ...validating_webhook_cert_manager_webhook.go | 2 +- .../v1alpha1/certmanager/namespace.go | 2 +- .../certificates/v1alpha1/certmanager/rbac.go | 2 +- .../v1alpha1/certmanager/resources.go | 2 +- .../v1alpha1/certmanager/service.go | 2 +- .../v1alpha1/certmanager/webhook.go | 2 +- .../v1alpha1/certmanager_types.go | 2 +- .../v1alpha1/groupversion_info.go | 2 +- .../v1alpha1/zz_generated.deepcopy.go | 2 +- apis/gateway/externaldns.go | 2 +- apis/gateway/externaldns_latest.go | 2 +- apis/gateway/glooedge.go | 2 +- apis/gateway/glooedge_latest.go | 2 +- .../externaldns/config_active_directory.go | 2 +- .../v1alpha1/externaldns/config_google.go | 2 +- .../v1alpha1/externaldns/config_route53.go | 2 +- .../v1alpha1/externaldns/constants/names.go | 2 +- .../deployment_active_directory.go | 2 +- .../v1alpha1/externaldns/deployment_google.go | 2 +- .../externaldns/deployment_route53.go | 2 +- ...luster_role_binding_external_dns_viewer.go | 2 +- .../cluster_role_namespace_external_dns.go | 2 +- ..._external_dns_active_directory_kerberos.go | 2 +- ...namespace_external_dns_active_directory.go | 2 +- .../externaldns/mutate/namespace_namespace.go | 2 +- ...namespace_external_dns_active_directory.go | 2 +- .../secret_namespace_external_dns_google.go | 2 +- .../secret_namespace_external_dns_route_US.go | 2 +- ..._account_namespace_service_account_name.go | 2 +- .../gateway/v1alpha1/externaldns/namespace.go | 2 +- apis/gateway/v1alpha1/externaldns/rbac.go | 2 +- .../gateway/v1alpha1/externaldns/resources.go | 2 +- apis/gateway/v1alpha1/glooedge/certificate.go | 2 +- .../v1alpha1/glooedge/clusterissuer.go | 2 +- apis/gateway/v1alpha1/glooedge/config.go | 2 +- .../v1alpha1/glooedge/constants/names.go | 2 +- apis/gateway/v1alpha1/glooedge/crds.go | 2 +- apis/gateway/v1alpha1/glooedge/deployment.go | 2 +- apis/gateway/v1alpha1/glooedge/gateway.go | 2 +- apis/gateway/v1alpha1/glooedge/issuer.go | 2 +- .../cert_namespace_certificate_authority.go | 2 +- .../mutate/cluster_issuer_self_signed.go | 2 +- ...gateway_resource_reader_binding_default.go | 2 +- ...ding_gloo_gateway_secret_create_default.go | 2 +- ...binding_gloo_gateway_vwc_update_default.go | 2 +- ...gloo_graphqlapi_mutator_binding_default.go | 2 +- ...g_gloo_resource_mutator_binding_default.go | 2 +- ...ng_gloo_resource_reader_binding_default.go | 2 +- ...g_gloo_upstream_mutator_binding_default.go | 2 +- ...ng_kube_leader_election_binding_default.go | 2 +- ...g_kube_resource_watcher_binding_default.go | 2 +- ...e_binding_settings_user_binding_default.go | 2 +- ...er_role_gateway_resource_reader_default.go | 2 +- ...role_gloo_gateway_secret_create_default.go | 2 +- ...er_role_gloo_gateway_vwc_update_default.go | 2 +- ...er_role_gloo_graphqlapi_mutator_default.go | 2 +- ...ster_role_gloo_resource_mutator_default.go | 2 +- ...uster_role_gloo_resource_reader_default.go | 2 +- ...ster_role_gloo_upstream_mutator_default.go | 2 +- ...uster_role_kube_leader_election_default.go | 2 +- ...ster_role_kube_resource_watcher_default.go | 2 +- .../cluster_role_settings_user_default.go | 2 +- ...ap_namespace_gateway_proxy_envoy_config.go | 2 +- ...crd_authconfigs_enterprise_gloo_solo_io.go | 2 +- .../mutate/crd_gateways_gateway_solo_io.go | 2 +- .../crd_graphqlapis_graphql_gloo_solo_io.go | 2 +- .../crd_httpgateways_gateway_solo_io.go | 2 +- .../mutate/crd_proxies_gloo_solo_io.go | 2 +- .../crd_ratelimitconfigs_ratelimit_solo_io.go | 2 +- .../crd_routeoptions_gateway_solo_io.go | 2 +- .../mutate/crd_routetables_gateway_solo_io.go | 2 +- .../mutate/crd_settings_gloo_solo_io.go | 2 +- .../mutate/crd_tcpgateways_gateway_solo_io.go | 2 +- .../mutate/crd_upstreamgroups_gloo_solo_io.go | 2 +- .../mutate/crd_upstreams_gloo_solo_io.go | 2 +- .../crd_virtualhostoptions_gateway_solo_io.go | 2 +- .../crd_virtualservices_gateway_solo_io.go | 2 +- .../mutate/deployment_namespace_discovery.go | 2 +- .../deployment_namespace_gateway_proxy.go | 2 +- .../mutate/deployment_namespace_gloo.go | 2 +- .../issuer_namespace_certificate_authority.go | 2 +- .../glooedge/mutate/namespace_namespace.go | 2 +- .../service_account_namespace_certgen.go | 2 +- .../service_account_namespace_discovery.go | 2 +- ...service_account_namespace_gateway_proxy.go | 2 +- .../mutate/service_account_namespace_gloo.go | 2 +- .../glooedge/mutate/service_namespace_gloo.go | 2 +- .../mutate/settings_namespace_default.go | 2 +- ...gloo_gateway_validation_webhook_default.go | 2 +- apis/gateway/v1alpha1/glooedge/namespace.go | 2 +- apis/gateway/v1alpha1/glooedge/rbac.go | 2 +- apis/gateway/v1alpha1/glooedge/resources.go | 2 +- apis/gateway/v1alpha1/glooedge/service.go | 2 +- apis/gateway/v1alpha1/glooedge/settings.go | 2 +- apis/gateway/v1alpha1/glooedge/webhook.go | 2 +- apis/gateway/v1alpha1/groupversion_info.go | 2 +- .../gateway/v1alpha1/zz_generated.deepcopy.go | 2 +- apis/orchestration/supportservices.go | 2 +- apis/orchestration/supportservices_latest.go | 2 +- .../v1alpha1/groupversion_info.go | 2 +- .../supportservices/constants/names.go | 2 +- .../mutate/namespace_parent_name.go | 2 +- .../v1alpha1/supportservices/namespace.go | 2 +- .../v1alpha1/supportservices/resources.go | 2 +- .../v1alpha1/supportservices_types.go | 2 +- .../v1alpha1/zz_generated.deepcopy.go | 2 +- apis/secrets/externalsecrets.go | 32 + apis/secrets/externalsecrets_latest.go | 32 + .../v1alpha1/externalsecrets/config.go | 60 + .../externalsecrets/constants/names.go | 53 + apis/secrets/v1alpha1/externalsecrets/crds.go | 12221 ++++++++++++++++ .../v1alpha1/externalsecrets/deployment.go | 443 + ...inding_external_secrets_cert_controller.go | 42 + ...ole_binding_external_secrets_controller.go | 42 + ...r_role_external_secrets_cert_controller.go | 42 + ...luster_role_external_secrets_controller.go | 42 + .../cluster_role_external_secrets_edit.go | 42 + .../cluster_role_external_secrets_view.go | 42 + ...sstokens_generators_external_secrets_io.go | 42 + ...sterexternalsecrets_external_secrets_io.go | 42 + ...clustersecretstores_external_secrets_io.go | 42 + ...ontokens_generators_external_secrets_io.go | 42 + ...crd_externalsecrets_external_secrets_io.go | 42 + ...rd_fakes_generators_external_secrets_io.go | 42 + ...sstokens_generators_external_secrets_io.go | 42 + ...asswords_generators_external_secrets_io.go | 42 + .../crd_pushsecrets_external_secrets_io.go | 42 + .../crd_secretstores_external_secrets_io.go | 42 + ...csecrets_generators_external_secrets_io.go | 42 + .../deployment_namespace_external_secrets.go | 42 + ...espace_external_secrets_cert_controller.go | 42 + ...ment_namespace_external_secrets_webhook.go | 42 + .../mutate/namespace_namespace.go | 42 + ...mespace_external_secrets_leaderelection.go | 42 + ...mespace_external_secrets_leaderelection.go | 42 + ...cret_namespace_external_secrets_webhook.go | 42 + ...vice_account_namespace_external_secrets.go | 42 + ...espace_external_secrets_cert_controller.go | 42 + ...ount_namespace_external_secrets_webhook.go | 42 + ...vice_namespace_external_secrets_webhook.go | 42 + ...idating_webhook_externalsecret_validate.go | 42 + ...validating_webhook_secretstore_validate.go | 42 + .../v1alpha1/externalsecrets/namespace.go | 53 + apis/secrets/v1alpha1/externalsecrets/rbac.go | 810 + .../v1alpha1/externalsecrets/resources.go | 202 + .../v1alpha1/externalsecrets/service.go | 75 + .../v1alpha1/externalsecrets/webhook.go | 194 + .../secrets/v1alpha1/externalsecrets_types.go | 220 + apis/secrets/v1alpha1/groupversion_info.go | 36 + .../secrets/v1alpha1/zz_generated.deepcopy.go | 202 + .../generate/certificates/certmanager.go | 2 +- .../commands/generate/gateway/externaldns.go | 2 +- .../commands/generate/gateway/glooedge.go | 2 +- cmd/ssctl/commands/generate/generate.go | 2 +- .../generate/orchestration/supportservices.go | 2 +- .../generate/secrets/externalsecrets.go | 124 + .../commands/init/certificates/certmanager.go | 2 +- .../commands/init/gateway/externaldns.go | 2 +- cmd/ssctl/commands/init/gateway/glooedge.go | 2 +- cmd/ssctl/commands/init/init.go | 2 +- .../init/orchestration/supportservices.go | 2 +- .../commands/init/secrets/externalsecrets.go | 82 + cmd/ssctl/commands/root.go | 8 +- .../version/certificates/certmanager.go | 2 +- .../commands/version/gateway/externaldns.go | 2 +- .../commands/version/gateway/glooedge.go | 2 +- .../version/orchestration/supportservices.go | 2 +- .../version/secrets/externalsecrets.go | 53 + cmd/ssctl/commands/version/version.go | 2 +- cmd/ssctl/main.go | 2 +- ...-services.nukleros.io_externalsecrets.yaml | 193 + config/crd/kustomization.yaml | 3 + config/rbac/role.yaml | 233 + .../secrets_v1alpha1_externalsecrets.yaml | 17 + .../certificates/certmanager_controller.go | 2 +- .../certificates/certmanager_phases.go | 2 +- controllers/gateway/externaldns_controller.go | 2 +- controllers/gateway/externaldns_phases.go | 2 +- controllers/gateway/glooedge_controller.go | 2 +- controllers/gateway/glooedge_phases.go | 2 +- controllers/orchestration/suite_test.go | 2 +- .../supportservices_controller.go | 2 +- .../orchestration/supportservices_phases.go | 2 +- .../secrets/externalsecrets_controller.go | 322 + controllers/secrets/externalsecrets_phases.go | 89 + internal/dependencies/certmanager.go | 2 +- internal/dependencies/externaldns.go | 2 +- internal/dependencies/externalsecrets.go | 26 + internal/dependencies/glooedge.go | 2 +- internal/dependencies/supportservices.go | 2 +- internal/mutate/certmanager.go | 2 +- internal/mutate/externaldns.go | 2 +- internal/mutate/externalsecrets.go | 31 + internal/mutate/glooedge.go | 2 +- internal/mutate/supportservices.go | 2 +- main.go | 6 +- .../certificates_v1alpha1_certmanager_test.go | 2 +- test/e2e/e2e_test.go | 2 +- test/e2e/gateway_v1alpha1_externaldns_test.go | 2 +- test/e2e/gateway_v1alpha1_glooedge_test.go | 2 +- ...estration_v1alpha1_supportservices_test.go | 2 +- .../secrets_v1alpha1_externalsecrets_test.go | 98 + 259 files changed, 22337 insertions(+), 1823 deletions(-) create mode 100644 apis/secrets/externalsecrets.go create mode 100644 apis/secrets/externalsecrets_latest.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/config.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/constants/names.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/crds.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/deployment.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_binding_external_secrets_cert_controller.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_binding_external_secrets_controller.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_cert_controller.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_controller.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_edit.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_view.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_acraccesstokens_generators_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_clusterexternalsecrets_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_clustersecretstores_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_ecrauthorizationtokens_generators_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_externalsecrets_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_fakes_generators_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_gcraccesstokens_generators_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_passwords_generators_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_pushsecrets_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_secretstores_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/crd_vaultdynamicsecrets_generators_external_secrets_io.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets_cert_controller.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets_webhook.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/namespace_namespace.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/role_binding_namespace_external_secrets_leaderelection.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/role_namespace_external_secrets_leaderelection.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/secret_namespace_external_secrets_webhook.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets_cert_controller.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets_webhook.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/service_namespace_external_secrets_webhook.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/validating_webhook_externalsecret_validate.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/mutate/validating_webhook_secretstore_validate.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/namespace.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/rbac.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/resources.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/service.go create mode 100644 apis/secrets/v1alpha1/externalsecrets/webhook.go create mode 100644 apis/secrets/v1alpha1/externalsecrets_types.go create mode 100644 apis/secrets/v1alpha1/groupversion_info.go create mode 100644 apis/secrets/v1alpha1/zz_generated.deepcopy.go create mode 100644 cmd/ssctl/commands/generate/secrets/externalsecrets.go create mode 100644 cmd/ssctl/commands/init/secrets/externalsecrets.go create mode 100644 cmd/ssctl/commands/version/secrets/externalsecrets.go create mode 100644 config/crd/bases/secrets.support-services.nukleros.io_externalsecrets.yaml create mode 100644 config/samples/secrets_v1alpha1_externalsecrets.yaml create mode 100644 controllers/secrets/externalsecrets_controller.go create mode 100644 controllers/secrets/externalsecrets_phases.go create mode 100644 internal/dependencies/externalsecrets.go create mode 100644 internal/mutate/externalsecrets.go create mode 100644 test/e2e/secrets_v1alpha1_externalsecrets_test.go diff --git a/.codegen/Makefile b/.codegen/Makefile index 507f060..4ea1d84 100644 --- a/.codegen/Makefile +++ b/.codegen/Makefile @@ -12,6 +12,8 @@ preserve: cp ../config/samples/gateway_v1alpha1_externaldns.yaml preserved-assets/ cp ../apis/gateway/v1alpha1/glooedge_types.go preserved-assets/glooedge_types.go.bak cp ../apis/gateway/v1alpha1/externaldns_types.go preserved-assets/externaldns_types.go.bak + cp ../apis/gateway/v1alpha1/externalsecrets_types.go preserved-assets/externalsecrets_types.go.bak + cp ../apis/gateway/v1alpha1/certmanager_types.go preserved-assets/certmanager_types.go.bak cp ../apis/gateway/v1alpha1/glooedge/mutate/gateway_namespace_gateway_proxy.go preserved-assets/gateway_namespace_gateway_proxy.go.bak cp ../apis/gateway/v1alpha1/glooedge/mutate/service_namespace_gateway_proxy.go preserved-assets/service_namespace_gateway_proxy.go.bak cp ../apis/gateway/v1alpha1/externaldns/mutate/deployment.go preserved-assets/deployment.go.bak @@ -46,6 +48,8 @@ operator-create: cp preserved-assets/gateway_v1alpha1_externaldns.yaml ../config/samples/gateway_v1alpha1_externaldns.yaml cp preserved-assets/glooedge_types.go.bak ../apis/gateway/v1alpha1/glooedge_types.go cp preserved-assets/externaldns_types.go.bak ../apis/gateway/v1alpha1/externaldns_types.go + cp preserved-assets/externalsecrets_types.go.bak ../apis/gateway/v1alpha1/externalsecrets.go + cp preserved-assets/certmanager_types.go.bak ../apis/gateway/v1alpha1/certmanager.go cp preserved-assets/gateway_namespace_gateway_proxy.go.bak ../apis/gateway/v1alpha1/glooedge/mutate/gateway_namespace_gateway_proxy.go cp preserved-assets/service_namespace_gateway_proxy.go.bak ../apis/gateway/v1alpha1/glooedge/mutate/service_namespace_gateway_proxy.go cp preserved-assets/deployment.go.bak ../apis/gateway/v1alpha1/externaldns/mutate/deployment.go diff --git a/.codegen/preserved-assets/gateway_namespace_gateway_proxy.go.bak b/.codegen/preserved-assets/gateway_namespace_gateway_proxy.go.bak index 7d65ae3..2d62391 100644 --- a/.codegen/preserved-assets/gateway_namespace_gateway_proxy.go.bak +++ b/.codegen/preserved-assets/gateway_namespace_gateway_proxy.go.bak @@ -18,12 +18,12 @@ package mutate import ( "fmt" - - "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" - "sigs.k8s.io/controller-runtime/pkg/client" + "strings" "github.com/nukleros/operator-builder-tools/pkg/controller/workload" "github.com/nukleros/operator-builder-tools/pkg/resources" + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "sigs.k8s.io/controller-runtime/pkg/client" gatewayv1alpha1 "github.com/nukleros/support-services-operator/apis/gateway/v1alpha1" orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" @@ -51,7 +51,8 @@ func MutateGatewayNamespaceGatewayProxy( // create a gateway object for each port requested for _, portSpec := range parent.Spec.Ports { - if portSpec.Protocol != "HTTP" { + // only create a gateway object for http ports + if strings.ToLower(portSpec.Protocol) != "http" { continue } diff --git a/.codegen/secrets/external-secrets/crds.yaml b/.codegen/secrets/external-secrets/crds.yaml index 8d43e06..80ed571 100644 --- a/.codegen/secrets/external-secrets/crds.yaml +++ b/.codegen/secrets/external-secrets/crds.yaml @@ -1,13 +1,151 @@ +# Source: external-secrets/templates/crds/acraccesstoken.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: acraccesstokens.generators.external-secrets.io +spec: + group: generators.external-secrets.io + names: + categories: + - acraccesstoken + kind: ACRAccessToken + listKind: ACRAccessTokenList + plural: acraccesstokens + shortNames: + - acraccesstoken + singular: acraccesstoken + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: "ACRAccessToken returns a Azure Container Registry token that can be used for pushing/pulling images. Note: by default it will return an ACR Refresh Token with full access (depending on the identity). This can be scoped down to the repository level using .spec.scope. In case scope is defined it will return an ACR Access Token. \n See docs: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md" + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: 'ACRAccessTokenSpec defines how to generate the access token e.g. how to authenticate and which registry to use. see: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md#overview' + properties: + auth: + properties: + managedIdentity: + description: ManagedIdentity uses Azure Managed Identity to authenticate with Azure. + properties: + identityId: + description: If multiple Managed Identity is assigned to the pod, you can select the one to be used + type: string + type: object + servicePrincipal: + description: ServicePrincipal uses Azure Service Principal credentials to authenticate with Azure. + properties: + secretRef: + description: Configuration used to authenticate with Azure using static credentials stored in a Kind=Secret. + properties: + clientId: + description: The Azure clientId of the service principle used for authentication. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + clientSecret: + description: The Azure ClientSecret of the service principle used for authentication. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + required: + - secretRef + type: object + workloadIdentity: + description: WorkloadIdentity uses Azure Workload Identity to authenticate with Azure. + properties: + serviceAccountRef: + description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + type: object + type: object + environmentType: + default: PublicCloud + description: 'EnvironmentType specifies the Azure cloud environment endpoints to use for connecting and authenticating with Azure. By default it points to the public cloud AAD endpoint. The following endpoints are available, also see here: https://github.com/Azure/go-autorest/blob/main/autorest/azure/environments.go#L152 PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud' + enum: + - PublicCloud + - USGovernmentCloud + - ChinaCloud + - GermanCloud + type: string + registry: + description: the domain name of the ACR registry e.g. foobarexample.azurecr.io + type: string + scope: + description: "Define the scope for the access token, e.g. pull/push access for a repository. if not provided it will return a refresh token that has full scope. Note: you need to pin it down to the repository level, there is no wildcard available. \n examples: repository:my-repository:pull,push repository:my-repository:pull \n see docs for details: https://docs.docker.com/registry/spec/auth/scope/" + type: string + tenantId: + description: TenantID configures the Azure Tenant to send requests to. Required for ServicePrincipal auth type. + type: string + required: + - auth + - registry + type: object + type: object + served: true + storage: true + subresources: + status: {} + conversion: + strategy: Webhook + webhook: + conversionReviewVersions: + - v1 + clientConfig: + service: + name: release-name-external-secrets-webhook + namespace: "default" + path: /convert --- +# Source: external-secrets/templates/crds/clusterexternalsecret.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 + controller-gen.kubebuilder.io/version: v0.13.0 name: clusterexternalsecrets.external-secrets.io - labels: - platform.nukleros.io/group: secrets - platform.nukleros.io/project: external-secrets spec: group: external-secrets.io names: @@ -22,15 +160,12 @@ spec: scope: Cluster versions: - additionalPrinterColumns: - - jsonPath: .spec.secretStoreRef.name + - jsonPath: .spec.externalSecretSpec.secretStoreRef.name name: Store type: string - - jsonPath: .spec.refreshInterval + - jsonPath: .spec.refreshTime name: Refresh Interval type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].reason - name: Status - type: string - jsonPath: .status.conditions[?(@.type=="Ready")].status name: Ready type: string @@ -50,6 +185,18 @@ spec: spec: description: ClusterExternalSecretSpec defines the desired state of ClusterExternalSecret. properties: + externalSecretMetadata: + description: The metadata of the external secrets to be created + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object externalSecretName: description: The name of the external secrets to be created defaults to the name of the ClusterExternalSecret type: string @@ -62,21 +209,33 @@ spec: description: ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.) and the Provider data. properties: remoteRef: - description: ExternalSecretDataRemoteRef defines Provider data location. + description: RemoteRef points to the remote secret and defines which secret (version/property/..) to fetch. properties: conversionStrategy: default: Default description: Used to define a conversion Strategy + enum: + - Default + - Unicode type: string decodingStrategy: default: None description: Used to define a decoding Strategy + enum: + - Auto + - Base64 + - Base64URL + - None type: string key: description: Key is the key used in the Provider, mandatory type: string metadataPolicy: + default: None description: Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None + enum: + - None + - Fetch type: string property: description: Used to select a specific property of the Provider value (if a map), if supported @@ -88,7 +247,42 @@ spec: - key type: object secretKey: + description: SecretKey defines the key in which the controller stores the value. This is the key in the Kind=Secret type: string + sourceRef: + description: SourceRef allows you to override the source from which the value will pulled from. + maxProperties: 1 + properties: + generatorRef: + description: "GeneratorRef points to a generator custom resource. \n Deprecated: The generatorRef is not implemented in .data[]. this will be removed with v1." + properties: + apiVersion: + default: generators.external-secrets.io/v1alpha1 + description: Specify the apiVersion of the generator resource + type: string + kind: + description: Specify the Kind of the resource, e.g. Password, ACRAccessToken etc. + type: string + name: + description: Specify the name of the generator resource + type: string + required: + - kind + - name + type: object + storeRef: + description: SecretStoreRef defines which SecretStore to fetch the ExternalSecret data. + properties: + kind: + description: Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore` + type: string + name: + description: Name of the SecretStore resource + type: string + required: + - name + type: object + type: object required: - remoteRef - secretKey @@ -99,21 +293,33 @@ spec: items: properties: extract: - description: Used to extract multiple key/value pairs from one secret + description: 'Used to extract multiple key/value pairs from one secret Note: Extract does not support sourceRef.Generator or sourceRef.GeneratorRef.' properties: conversionStrategy: default: Default description: Used to define a conversion Strategy + enum: + - Default + - Unicode type: string decodingStrategy: default: None description: Used to define a decoding Strategy + enum: + - Auto + - Base64 + - Base64URL + - None type: string key: description: Key is the key used in the Provider, mandatory type: string metadataPolicy: + default: None description: Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None + enum: + - None + - Fetch type: string property: description: Used to select a specific property of the Provider value (if a map), if supported @@ -125,15 +331,23 @@ spec: - key type: object find: - description: Used to find secrets based on tags or regular expressions + description: 'Used to find secrets based on tags or regular expressions Note: Find does not support sourceRef.Generator or sourceRef.GeneratorRef.' properties: conversionStrategy: default: Default description: Used to define a conversion Strategy + enum: + - Default + - Unicode type: string decodingStrategy: default: None description: Used to define a decoding Strategy + enum: + - Auto + - Base64 + - Base64URL + - None type: string name: description: Finds secrets based on the name. @@ -168,8 +382,51 @@ spec: - source - target type: object + transform: + description: Used to apply string transformation on the secrets. The resulting key will be the output of the template applied by the operation. + properties: + template: + description: Used to define the template to apply on the secret name. `.value ` will specify the secret name in the template. + type: string + required: + - template + type: object type: object type: array + sourceRef: + description: SourceRef points to a store or generator which contains secret values ready to use. Use this in combination with Extract or Find pull values out of a specific SecretStore. When sourceRef points to a generator Extract or Find is not supported. The generator returns a static map of values + maxProperties: 1 + properties: + generatorRef: + description: GeneratorRef points to a generator custom resource. + properties: + apiVersion: + default: generators.external-secrets.io/v1alpha1 + description: Specify the apiVersion of the generator resource + type: string + kind: + description: Specify the Kind of the resource, e.g. Password, ACRAccessToken etc. + type: string + name: + description: Specify the name of the generator resource + type: string + required: + - kind + - name + type: object + storeRef: + description: SecretStoreRef defines which SecretStore to fetch the ExternalSecret data. + properties: + kind: + description: Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore` + type: string + name: + description: Name of the SecretStore resource + type: string + required: + - name + type: object + type: object type: object type: array refreshInterval: @@ -189,6 +446,9 @@ spec: - name type: object target: + default: + creationPolicy: Owner + deletionPolicy: Retain description: ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret. properties: creationPolicy: @@ -223,6 +483,16 @@ spec: type: object engineVersion: default: v2 + description: EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[]. + enum: + - v1 + - v2 + type: string + mergePolicy: + default: Replace + enum: + - Replace + - Merge type: string metadata: description: ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint. @@ -238,8 +508,6 @@ spec: type: object templateFrom: items: - maxProperties: 1 - minProperties: 1 properties: configMap: properties: @@ -248,6 +516,12 @@ spec: properties: key: type: string + templateAs: + default: Values + enum: + - Values + - KeysAndValues + type: string required: - key type: object @@ -258,6 +532,8 @@ spec: - items - name type: object + literal: + type: string secret: properties: items: @@ -265,6 +541,12 @@ spec: properties: key: type: string + templateAs: + default: Values + enum: + - Values + - KeysAndValues + type: string required: - key type: object @@ -275,14 +557,19 @@ spec: - items - name type: object + target: + default: Data + enum: + - Data + - Annotations + - Labels + type: string type: object type: array type: type: string type: object type: object - required: - - secretStoreRef type: object namespaceSelector: description: The labels to select by to find the Namespaces to create the ExternalSecrets in. @@ -315,12 +602,16 @@ spec: type: object type: object x-kubernetes-map-type: atomic + namespaces: + description: Choose namespaces by name. This field is ORed with anything that NamespaceSelector ends up choosing. + items: + type: string + type: array refreshTime: - description: The time in which the controller should reconcile it's objects and recheck namespaces for labels. + description: The time in which the controller should reconcile its objects and recheck namespaces for labels. type: string required: - externalSecretSpec - - namespaceSelector type: object status: description: ClusterExternalSecretStatus defines the observed state of ClusterExternalSecret. @@ -339,6 +630,9 @@ spec: - type type: object type: array + externalSecretName: + description: ExternalSecretName is the name of the ExternalSecrets created by the ClusterExternalSecret + type: string failedNamespaces: description: Failed namespaces are the namespaces that failed to apply an ExternalSecret items: @@ -372,19 +666,17 @@ spec: - v1 clientConfig: service: - name: external-secrets-webhook - namespace: default + name: release-name-external-secrets-webhook + namespace: "default" path: /convert --- +# Source: external-secrets/templates/crds/clustersecretstore.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 + controller-gen.kubebuilder.io/version: v0.13.0 name: clustersecretstores.external-secrets.io - labels: - platform.nukleros.io/group: secrets - platform.nukleros.io/project: external-secrets spec: group: external-secrets.io names: @@ -423,7 +715,7 @@ spec: description: SecretStoreSpec defines the desired state of SecretStore. properties: controller: - description: 'Used to select the correct KES controller (think: ingress.ingressClassName) The KES controller is instantiated with a specific controller name and filters ES based on this property' + description: 'Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters ES based on this property' type: string provider: description: Used to configure the provider. Only one provider may be set @@ -439,8 +731,51 @@ spec: authSecretRef: description: Auth configures how the operator authenticates with Akeyless. properties: + kubernetesAuth: + description: Kubernetes authenticates with Akeyless by passing the ServiceAccount token stored in the named Secret resource. + properties: + accessID: + description: the Akeyless Kubernetes auth-method access-id + type: string + k8sConfName: + description: Kubernetes-auth configuration name in Akeyless-Gateway + type: string + secretRef: + description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Akeyless. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + serviceAccountRef: + description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Akeyless. If the service account selector is not supplied, the secretRef will be used instead. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - accessID + - k8sConfName + type: object secretRef: - description: 'AkeylessAuthSecretRef AKEYLESS_ACCESS_TYPE_PARAM: AZURE_OBJ_ID OR GCP_AUDIENCE OR ACCESS_KEY OR KUB_CONFIG_NAME.' + description: Reference to a Secret that contains the details to authenticate with Akeyless. properties: accessID: description: The SecretAccessID is used for authentication @@ -482,8 +817,32 @@ spec: type: string type: object type: object + type: object + caBundle: + description: PEM/base64 encoded CA bundle used to validate Akeyless Gateway certificate. Only used if the AkeylessGWApiURL URL is using HTTPS protocol. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate Akeyless Gateway certificate. + properties: + key: + description: The key the value inside of the provider type to use, only used with "Secret" type + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string required: - - secretRef + - name + - type type: object required: - akeylessGWApiURL @@ -495,6 +854,23 @@ spec: auth: description: AlibabaAuth contains a secretRef for credentials. properties: + rrsa: + description: Authenticate against Alibaba using RRSA. + properties: + oidcProviderArn: + type: string + oidcTokenFilePath: + type: string + roleArn: + type: string + sessionName: + type: string + required: + - oidcProviderArn + - oidcTokenFilePath + - roleArn + - sessionName + type: object secretRef: description: AlibabaAuthSecretRef holds secret references for Alibaba credentials. properties: @@ -528,11 +904,7 @@ spec: - accessKeyIDSecretRef - accessKeySecretSecretRef type: object - required: - - secretRef type: object - endpoint: - type: string regionID: description: Alibaba Region to be used for the provider type: string @@ -552,6 +924,11 @@ spec: serviceAccountRef: description: A reference to a ServiceAccount resource. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -656,6 +1033,11 @@ spec: serviceAccountRef: description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -730,6 +1112,11 @@ spec: serviceAccountRef: description: A reference to a ServiceAccount resource. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -750,7 +1137,7 @@ spec: type: string type: object gitlab: - description: Gitlab configures this store to sync secrets using Gitlab Variables provider + description: GitLab configures this store to sync secrets using GitLab Variables provider properties: auth: description: Auth configures how secret-manager authenticates with a GitLab instance. @@ -858,6 +1245,11 @@ spec: serviceAccount: description: A reference to a ServiceAccount resource. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -931,7 +1323,7 @@ spec: description: Oracle configures this store to sync secrets using Oracle Vault provider properties: auth: - description: Auth configures how secret-manager authenticates with the Oracle Vault. If empty, use the instance principal, otherwise the user credentials specified in Auth. + description: Auth configures how secret-manager authenticates with the Oracle Vault. If empty, instance principal is used. Optionally, the authenticating principal type and/or user data may be supplied for the use of workload identity and user principal. properties: secretRef: description: SecretRef to pass through sensitive information. @@ -977,13 +1369,44 @@ spec: - tenancy - user type: object + compartment: + description: Compartment is the vault compartment OCID. Required for PushSecret + type: string + encryptionKey: + description: EncryptionKey is the OCID of the encryption key within the vault. Required for PushSecret + type: string + principalType: + description: The type of principal to use for authentication. If left blank, the Auth struct will determine the principal type. This optional field must be specified if using workload identity. + enum: + - "" + - UserPrincipal + - InstancePrincipal + - Workload + type: string region: description: Region is the region where vault is located. type: string - vault: - description: Vault is the vault's OCID of the specific vault where secret is located. - type: string - required: + serviceAccountRef: + description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + vault: + description: Vault is the vault's OCID of the specific vault where secret is located. + type: string + required: - region - vault type: object @@ -1069,6 +1492,11 @@ spec: serviceAccountRef: description: Service account field containing the name of a kubernetes ServiceAccount. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -1130,6 +1558,11 @@ spec: serviceAccountRef: description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -1409,6 +1842,9 @@ spec: - jsonPath: .status.conditions[?(@.type=="Ready")].reason name: Status type: string + - jsonPath: .status.capabilities + name: Capabilities + type: string - jsonPath: .status.conditions[?(@.type=="Ready")].status name: Ready type: string @@ -1428,8 +1864,51 @@ spec: spec: description: SecretStoreSpec defines the desired state of SecretStore. properties: + conditions: + description: Used to constraint a ClusterSecretStore to specific namespaces. Relevant only to ClusterSecretStore + items: + description: ClusterSecretStoreCondition describes a condition by which to choose namespaces to process ExternalSecrets in for a ClusterSecretStore instance. + properties: + namespaceSelector: + description: Choose namespace using a labelSelector + properties: + matchExpressions: + description: matchExpressions is a list of label selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + properties: + key: + description: key is the label key that the selector applies to. + type: string + operator: + description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + description: Choose namespaces by name + items: + type: string + type: array + type: object + type: array controller: - description: 'Used to select the correct KES controller (think: ingress.ingressClassName) The KES controller is instantiated with a specific controller name and filters ES based on this property' + description: 'Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters ES based on this property' type: string provider: description: Used to configure the provider. Only one provider may be set @@ -1445,8 +1924,51 @@ spec: authSecretRef: description: Auth configures how the operator authenticates with Akeyless. properties: + kubernetesAuth: + description: Kubernetes authenticates with Akeyless by passing the ServiceAccount token stored in the named Secret resource. + properties: + accessID: + description: the Akeyless Kubernetes auth-method access-id + type: string + k8sConfName: + description: Kubernetes-auth configuration name in Akeyless-Gateway + type: string + secretRef: + description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Akeyless. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + serviceAccountRef: + description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Akeyless. If the service account selector is not supplied, the secretRef will be used instead. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - accessID + - k8sConfName + type: object secretRef: - description: 'AkeylessAuthSecretRef AKEYLESS_ACCESS_TYPE_PARAM: AZURE_OBJ_ID OR GCP_AUDIENCE OR ACCESS_KEY OR KUB_CONFIG_NAME.' + description: Reference to a Secret that contains the details to authenticate with Akeyless. properties: accessID: description: The SecretAccessID is used for authentication @@ -1488,8 +2010,32 @@ spec: type: string type: object type: object + type: object + caBundle: + description: PEM/base64 encoded CA bundle used to validate Akeyless Gateway certificate. Only used if the AkeylessGWApiURL URL is using HTTPS protocol. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate Akeyless Gateway certificate. + properties: + key: + description: The key where the CA certificate can be found in the Secret or ConfigMap. + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string required: - - secretRef + - name + - type type: object required: - akeylessGWApiURL @@ -1501,6 +2047,23 @@ spec: auth: description: AlibabaAuth contains a secretRef for credentials. properties: + rrsa: + description: Authenticate against Alibaba using RRSA. + properties: + oidcProviderArn: + type: string + oidcTokenFilePath: + type: string + roleArn: + type: string + sessionName: + type: string + required: + - oidcProviderArn + - oidcTokenFilePath + - roleArn + - sessionName + type: object secretRef: description: AlibabaAuthSecretRef holds secret references for Alibaba credentials. properties: @@ -1534,11 +2097,7 @@ spec: - accessKeyIDSecretRef - accessKeySecretSecretRef type: object - required: - - secretRef type: object - endpoint: - type: string regionID: description: Alibaba Region to be used for the provider type: string @@ -1549,6 +2108,11 @@ spec: aws: description: AWS configures this store to sync secrets using AWS Secret Manager provider properties: + additionalRoles: + description: AdditionalRoles is a chained list of Role ARNs which the provider will sequentially assume before assuming the Role + items: + type: string + type: array auth: description: 'Auth defines the information necessary to authenticate against AWS if not set aws sdk will infer credentials from your environment see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials' properties: @@ -1558,6 +2122,11 @@ spec: serviceAccountRef: description: A reference to a ServiceAccount resource. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -1597,20 +2166,65 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + sessionTokenSecretRef: + description: 'The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html' + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object type: object type: object + externalID: + description: AWS External ID set on assumed IAM roles + type: string region: description: AWS Region to be used for the provider type: string role: - description: Role is a Role ARN which the SecretManager provider will assume + description: Role is a Role ARN which the provider will assume type: string + secretsManager: + description: SecretsManager defines how the provider behaves when interacting with AWS SecretsManager + properties: + forceDeleteWithoutRecovery: + description: 'Specifies whether to delete the secret without any recovery window. You can''t use both this parameter and RecoveryWindowInDays in the same call. If you don''t use either, then by default Secrets Manager uses a 30 day recovery window. see: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html#SecretsManager-DeleteSecret-request-ForceDeleteWithoutRecovery' + type: boolean + recoveryWindowInDays: + description: 'The number of days from 7 to 30 that Secrets Manager waits before permanently deleting the secret. You can''t use both this parameter and ForceDeleteWithoutRecovery in the same call. If you don''t use either, then by default Secrets Manager uses a 30 day recovery window. see: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html#SecretsManager-DeleteSecret-request-RecoveryWindowInDays' + format: int64 + type: integer + type: object service: description: Service defines which service should be used to fetch the secrets enum: - SecretsManager - ParameterStore type: string + sessionTags: + description: AWS STS assume role session tags + items: + properties: + key: + type: string + value: + type: string + required: + - key + - value + type: object + type: array + transitiveTagKeys: + description: AWS STS assume role transitive session tags. Required when multiple rules are used with the provider + items: + type: string + type: array required: - region - service @@ -1656,12 +2270,26 @@ spec: - ManagedIdentity - WorkloadIdentity type: string + environmentType: + default: PublicCloud + description: 'EnvironmentType specifies the Azure cloud environment endpoints to use for connecting and authenticating with Azure. By default it points to the public cloud AAD endpoint. The following endpoints are available, also see here: https://github.com/Azure/go-autorest/blob/main/autorest/azure/environments.go#L152 PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud' + enum: + - PublicCloud + - USGovernmentCloud + - ChinaCloud + - GermanCloud + type: string identityId: description: If multiple Managed Identity is assigned to the pod, you can select the one to be used type: string serviceAccountRef: description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -1680,39 +2308,17 @@ spec: required: - vaultUrl type: object - fake: - description: Fake configures a store with static key/value pairs - properties: - data: - items: - properties: - key: - type: string - value: - type: string - valueMap: - additionalProperties: - type: string - type: object - version: - type: string - required: - - key - type: object - type: array - required: - - data - type: object - gcpsm: - description: GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider + conjur: + description: Conjur configures this store to sync secrets using conjur provider properties: auth: - description: Auth defines the information necessary to authenticate against GCP properties: - secretRef: + apikey: properties: - secretAccessKeySecretRef: - description: The SecretAccessKey is used for authentication + account: + type: string + apiKeyRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -1724,47 +2330,30 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - type: object - workloadIdentity: - properties: - clusterLocation: - type: string - clusterName: - type: string - clusterProjectID: - type: string - serviceAccountRef: - description: A reference to a ServiceAccount resource. + userRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string name: - description: The name of the ServiceAccount resource being referred to. + description: The name of the Secret resource being referred to. type: string namespace: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string - required: - - name type: object required: - - clusterLocation - - clusterName - - serviceAccountRef + - account + - apiKeyRef + - userRef type: object - type: object - projectID: - description: ProjectID project where secret is located - type: string - type: object - gitlab: - description: Gitlab configures this store to sync secrets using Gitlab Variables provider - properties: - auth: - description: Auth configures how secret-manager authenticates with a GitLab instance. - properties: - SecretRef: + jwt: properties: - accessToken: - description: AccessToken is used for authentication. + account: + type: string + secretRef: + description: Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Conjur using the JWT authentication method. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -1776,24 +2365,304 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + serviceAccountRef: + description: Optional ServiceAccountRef specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + serviceID: + description: The conjur authn jwt webservice id + type: string + required: + - account + - serviceID type: object - required: - - SecretRef type: object - projectID: - description: ProjectID specifies a project where secrets are located. - type: string - url: - description: URL configures the GitLab instance URL. Defaults to https://gitlab.com/. + caBundle: type: string - required: - - auth - type: object - ibm: - description: IBM configures this store to sync secrets using IBM Cloud provider - properties: - auth: - description: Auth configures how secret-manager authenticates with the IBM secrets manager. + caProvider: + description: Used to provide custom certificate authority (CA) certificates for a secret store. The CAProvider points to a Secret or ConfigMap resource that contains a PEM-encoded certificate. + properties: + key: + description: The key where the CA certificate can be found in the Secret or ConfigMap. + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string + required: + - name + - type + type: object + url: + type: string + required: + - auth + - url + type: object + delinea: + description: Delinea DevOps Secrets Vault https://docs.delinea.com/online-help/products/devops-secrets-vault/current + properties: + clientId: + description: ClientID is the non-secret part of the credential. + properties: + secretRef: + description: SecretRef references a key in a secret that will be used as value. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + value: + description: Value can be specified directly to set a value without using a secret. + type: string + type: object + clientSecret: + description: ClientSecret is the secret part of the credential. + properties: + secretRef: + description: SecretRef references a key in a secret that will be used as value. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + value: + description: Value can be specified directly to set a value without using a secret. + type: string + type: object + tenant: + description: Tenant is the chosen hostname / site name. + type: string + tld: + description: TLD is based on the server location that was chosen during provisioning. If unset, defaults to "com". + type: string + urlTemplate: + description: URLTemplate If unset, defaults to "https://%s.secretsvaultcloud.%s/v1/%s%s". + type: string + required: + - clientId + - clientSecret + - tenant + type: object + doppler: + description: Doppler configures this store to sync secrets using the Doppler provider + properties: + auth: + description: Auth configures how the Operator authenticates with the Doppler API + properties: + secretRef: + properties: + dopplerToken: + description: The DopplerToken is used for authentication. See https://docs.doppler.com/reference/api#authentication for auth token types. The Key attribute defaults to dopplerToken if not specified. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - dopplerToken + type: object + required: + - secretRef + type: object + config: + description: Doppler config (required if not using a Service Token) + type: string + format: + description: Format enables the downloading of secrets as a file (string) + enum: + - json + - dotnet-json + - env + - yaml + - docker + type: string + nameTransformer: + description: Environment variable compatible name transforms that change secret names to a different format + enum: + - upper-camel + - camel + - lower-snake + - tf-var + - dotnet-env + - lower-kebab + type: string + project: + description: Doppler project (required if not using a Service Token) + type: string + required: + - auth + type: object + fake: + description: Fake configures a store with static key/value pairs + properties: + data: + items: + properties: + key: + type: string + value: + type: string + valueMap: + additionalProperties: + type: string + description: 'Deprecated: ValueMap is deprecated and is intended to be removed in the future, use the `value` field instead.' + type: object + version: + type: string + required: + - key + type: object + type: array + required: + - data + type: object + gcpsm: + description: GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider + properties: + auth: + description: Auth defines the information necessary to authenticate against GCP + properties: + secretRef: + properties: + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + workloadIdentity: + properties: + clusterLocation: + type: string + clusterName: + type: string + clusterProjectID: + type: string + serviceAccountRef: + description: A reference to a ServiceAccount resource. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - clusterLocation + - clusterName + - serviceAccountRef + type: object + type: object + projectID: + description: ProjectID project where secret is located + type: string + type: object + gitlab: + description: GitLab configures this store to sync secrets using GitLab Variables provider + properties: + auth: + description: Auth configures how secret-manager authenticates with a GitLab instance. + properties: + SecretRef: + properties: + accessToken: + description: AccessToken is used for authentication. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + required: + - SecretRef + type: object + environment: + description: Environment environment_scope of gitlab CI/CD variables (Please see https://docs.gitlab.com/ee/ci/environments/#create-a-static-environment on how to create environments) + type: string + groupIDs: + description: GroupIDs specify, which gitlab groups to pull secrets from. Group secrets are read from left to right followed by the project variables. + items: + type: string + type: array + inheritFromGroups: + description: InheritFromGroups specifies whether parent groups should be discovered and checked for secrets. + type: boolean + projectID: + description: ProjectID specifies a project where secrets are located. + type: string + url: + description: URL configures the GitLab instance URL. Defaults to https://gitlab.com/. + type: string + required: + - auth + type: object + ibm: + description: IBM configures this store to sync secrets using IBM Cloud provider + properties: + auth: + description: Auth configures how secret-manager authenticates with the IBM secrets manager. maxProperties: 1 minProperties: 1 properties: @@ -1834,6 +2703,28 @@ spec: required: - auth type: object + keepersecurity: + description: KeeperSecurity configures this store to sync secrets using the KeeperSecurity provider + properties: + authRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + folderID: + type: string + required: + - authRef + - folderID + type: object kubernetes: description: Kubernetes configures this store to sync secrets using a Kubernetes cluster provider properties: @@ -1875,6 +2766,11 @@ spec: serviceAccount: description: points to a service account that should be used for authentication properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -2034,9 +2930,40 @@ spec: - tenancy - user type: object + compartment: + description: Compartment is the vault compartment OCID. Required for PushSecret + type: string + encryptionKey: + description: EncryptionKey is the OCID of the encryption key within the vault. Required for PushSecret + type: string + principalType: + description: The type of principal to use for authentication. If left blank, the Auth struct will determine the principal type. This optional field must be specified if using workload identity. + enum: + - "" + - UserPrincipal + - InstancePrincipal + - Workload + type: string region: description: Region is the region where vault is located. type: string + serviceAccountRef: + description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object vault: description: Vault is the vault's OCID of the specific vault where secret is located. type: string @@ -2044,16 +2971,74 @@ spec: - region - vault type: object - senhasegura: - description: Senhasegura configures this store to sync secrets using senhasegura provider + scaleway: + description: Scaleway properties: - auth: - description: Auth defines parameters to authenticate in senhasegura + accessKey: + description: AccessKey is the non-secret part of the api key. properties: - clientId: - type: string - clientSecretSecretRef: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + secretRef: + description: SecretRef references a key in a secret that will be used as value. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + value: + description: Value can be specified directly to set a value without using a secret. + type: string + type: object + apiUrl: + description: APIURL is the url of the api to use. Defaults to https://api.scaleway.com + type: string + projectId: + description: 'ProjectID is the id of your project, which you can find in the console: https://console.scaleway.com/project/settings' + type: string + region: + description: 'Region where your secrets are located: https://developers.scaleway.com/en/quickstart/#region-and-zone' + type: string + secretKey: + description: SecretKey is the non-secret part of the api key. + properties: + secretRef: + description: SecretRef references a key in a secret that will be used as value. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + value: + description: Value can be specified directly to set a value without using a secret. + type: string + type: object + required: + - accessKey + - projectId + - region + - secretKey + type: object + senhasegura: + description: Senhasegura configures this store to sync secrets using senhasegura provider + properties: + auth: + description: Auth defines parameters to authenticate in senhasegura + properties: + clientId: + type: string + clientSecretSecretRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -2100,6 +3085,19 @@ spec: roleId: description: RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. type: string + roleRef: + description: Reference to a key in a Secret that contains the App Role ID used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role id. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object secretRef: description: Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret. properties: @@ -2115,7 +3113,6 @@ spec: type: object required: - path - - roleId - secretRef type: object cert: @@ -2148,6 +3145,94 @@ spec: type: string type: object type: object + iam: + description: Iam authenticates with vault by passing a special AWS request signed with AWS IAM credentials AWS IAM authentication method + properties: + externalID: + description: AWS External ID set on assumed IAM roles + type: string + jwt: + description: Specify a service account with IRSA enabled + properties: + serviceAccountRef: + description: A reference to a ServiceAccount resource. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + type: object + path: + description: 'Path where the AWS auth method is enabled in Vault, e.g: "aws"' + type: string + region: + description: AWS region + type: string + role: + description: This is the AWS role to be assumed before talking to vault + type: string + secretRef: + description: Specify credentials in a Secret object + properties: + accessKeyIDSecretRef: + description: The AccessKeyID is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + sessionTokenSecretRef: + description: 'The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html' + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + vaultAwsIamServerID: + description: 'X-Vault-AWS-IAM-Server-ID is an additional header used by Vault IAM auth method to mitigate against different types of replay attacks. More details here: https://developer.hashicorp.com/vault/docs/auth/aws' + type: string + vaultRole: + description: Vault Role. In vault, a role describes an identity with a set of permissions, groups, or policies you want to attach a user of the secrets engine + type: string + required: + - vaultRole + type: object jwt: description: Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method properties: @@ -2155,17 +3240,22 @@ spec: description: Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API. properties: audiences: - description: Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. + description: 'Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. Deprecated: use serviceAccountRef.Audiences instead' items: type: string type: array expirationSeconds: - description: Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to 10 minutes. + description: 'Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Deprecated: this will be removed in the future. Defaults to 10 minutes.' format: int64 type: integer serviceAccountRef: description: Service account field containing the name of a kubernetes ServiceAccount. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -2227,6 +3317,11 @@ spec: serviceAccountRef: description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -2280,6 +3375,33 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + userPass: + description: UserPass authenticates with Vault by passing username/password pair + properties: + path: + default: user + description: 'Path where the UserPassword authentication backend is mounted in Vault, e.g: "user"' + type: string + secretRef: + description: SecretRef to a key in a Secret resource containing password for the user used to authenticate with Vault using the UserPass authentication method + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + username: + description: Username is a user name used to authenticate using the UserPass Vault authentication method + type: string + required: + - path + - username + type: object type: object caBundle: description: PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. @@ -2520,6 +3642,9 @@ spec: status: description: SecretStoreStatus defines the observed state of the SecretStore. properties: + capabilities: + description: SecretStoreCapabilities defines the possible operations a SecretStore can do. + type: string conditions: items: properties: @@ -2552,19 +3677,145 @@ spec: - v1 clientConfig: service: - name: external-secrets-webhook - namespace: default + name: release-name-external-secrets-webhook + namespace: "default" + path: /convert +--- +# Source: external-secrets/templates/crds/ecrauthorizationtoken.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: ecrauthorizationtokens.generators.external-secrets.io +spec: + group: generators.external-secrets.io + names: + categories: + - ecrauthorizationtoken + kind: ECRAuthorizationToken + listKind: ECRAuthorizationTokenList + plural: ecrauthorizationtokens + shortNames: + - ecrauthorizationtoken + singular: ecrauthorizationtoken + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: ECRAuthorizationTokenSpec uses the GetAuthorizationToken API to retrieve an authorization token. The authorization token is valid for 12 hours. The authorizationToken returned is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. For more information, see Registry authentication (https://docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html#registry_auth) in the Amazon Elastic Container Registry User Guide. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + properties: + auth: + description: Auth defines how to authenticate with AWS + properties: + jwt: + description: Authenticate against AWS using service account tokens. + properties: + serviceAccountRef: + description: A reference to a ServiceAccount resource. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + type: object + secretRef: + description: AWSAuthSecretRef holds secret references for AWS credentials both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate. + properties: + accessKeyIDSecretRef: + description: The AccessKeyID is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + sessionTokenSecretRef: + description: 'The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html' + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + type: object + region: + description: Region specifies the region to operate in. + type: string + role: + description: You can assume a role before making calls to the desired AWS service. + type: string + required: + - region + type: object + type: object + served: true + storage: true + subresources: + status: {} + conversion: + strategy: Webhook + webhook: + conversionReviewVersions: + - v1 + clientConfig: + service: + name: release-name-external-secrets-webhook + namespace: "default" path: /convert --- +# Source: external-secrets/templates/crds/externalsecret.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 + controller-gen.kubebuilder.io/version: v0.13.0 name: externalsecrets.external-secrets.io - labels: - platform.nukleros.io/group: secrets - platform.nukleros.io/project: external-secrets spec: group: external-secrets.io names: @@ -2616,6 +3867,9 @@ spec: conversionStrategy: default: Default description: Used to define a conversion Strategy + enum: + - Default + - Unicode type: string key: description: Key is the key used in the Provider, mandatory @@ -2644,6 +3898,9 @@ spec: conversionStrategy: default: Default description: Used to define a conversion Strategy + enum: + - Default + - Unicode type: string key: description: Key is the key used in the Provider, mandatory @@ -2680,6 +3937,10 @@ spec: creationPolicy: default: Owner description: CreationPolicy defines rules on how to create the resulting Secret Defaults to 'Owner' + enum: + - Owner + - Merge + - None type: string immutable: description: Immutable defines if the final secret will be immutable @@ -2697,6 +3958,9 @@ spec: engineVersion: default: v1 description: EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[]. + enum: + - v1 + - v2 type: string metadata: description: ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint. @@ -2761,6 +4025,14 @@ spec: type: object status: properties: + binding: + description: Binding represents a servicebinding.io Provisioned Service reference to the secret + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + x-kubernetes-map-type: atomic conditions: items: properties: @@ -2829,21 +4101,33 @@ spec: description: ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.) and the Provider data. properties: remoteRef: - description: ExternalSecretDataRemoteRef defines Provider data location. + description: RemoteRef points to the remote secret and defines which secret (version/property/..) to fetch. properties: conversionStrategy: default: Default description: Used to define a conversion Strategy + enum: + - Default + - Unicode type: string decodingStrategy: default: None description: Used to define a decoding Strategy + enum: + - Auto + - Base64 + - Base64URL + - None type: string key: description: Key is the key used in the Provider, mandatory type: string metadataPolicy: + default: None description: Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None + enum: + - None + - Fetch type: string property: description: Used to select a specific property of the Provider value (if a map), if supported @@ -2855,32 +4139,79 @@ spec: - key type: object secretKey: + description: SecretKey defines the key in which the controller stores the value. This is the key in the Kind=Secret type: string - required: - - remoteRef - - secretKey - type: object - type: array - dataFrom: - description: DataFrom is used to fetch all properties from a specific Provider data If multiple entries are specified, the Secret keys are merged in the specified order - items: - properties: - extract: - description: Used to extract multiple key/value pairs from one secret + sourceRef: + description: SourceRef allows you to override the source from which the value will pulled from. + maxProperties: 1 properties: - conversionStrategy: - default: Default - description: Used to define a conversion Strategy - type: string + generatorRef: + description: "GeneratorRef points to a generator custom resource. \n Deprecated: The generatorRef is not implemented in .data[]. this will be removed with v1." + properties: + apiVersion: + default: generators.external-secrets.io/v1alpha1 + description: Specify the apiVersion of the generator resource + type: string + kind: + description: Specify the Kind of the resource, e.g. Password, ACRAccessToken etc. + type: string + name: + description: Specify the name of the generator resource + type: string + required: + - kind + - name + type: object + storeRef: + description: SecretStoreRef defines which SecretStore to fetch the ExternalSecret data. + properties: + kind: + description: Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore` + type: string + name: + description: Name of the SecretStore resource + type: string + required: + - name + type: object + type: object + required: + - remoteRef + - secretKey + type: object + type: array + dataFrom: + description: DataFrom is used to fetch all properties from a specific Provider data If multiple entries are specified, the Secret keys are merged in the specified order + items: + properties: + extract: + description: 'Used to extract multiple key/value pairs from one secret Note: Extract does not support sourceRef.Generator or sourceRef.GeneratorRef.' + properties: + conversionStrategy: + default: Default + description: Used to define a conversion Strategy + enum: + - Default + - Unicode + type: string decodingStrategy: default: None description: Used to define a decoding Strategy + enum: + - Auto + - Base64 + - Base64URL + - None type: string key: description: Key is the key used in the Provider, mandatory type: string metadataPolicy: + default: None description: Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None + enum: + - None + - Fetch type: string property: description: Used to select a specific property of the Provider value (if a map), if supported @@ -2892,15 +4223,23 @@ spec: - key type: object find: - description: Used to find secrets based on tags or regular expressions + description: 'Used to find secrets based on tags or regular expressions Note: Find does not support sourceRef.Generator or sourceRef.GeneratorRef.' properties: conversionStrategy: default: Default description: Used to define a conversion Strategy + enum: + - Default + - Unicode type: string decodingStrategy: default: None description: Used to define a decoding Strategy + enum: + - Auto + - Base64 + - Base64URL + - None type: string name: description: Finds secrets based on the name. @@ -2935,8 +4274,51 @@ spec: - source - target type: object + transform: + description: Used to apply string transformation on the secrets. The resulting key will be the output of the template applied by the operation. + properties: + template: + description: Used to define the template to apply on the secret name. `.value ` will specify the secret name in the template. + type: string + required: + - template + type: object type: object type: array + sourceRef: + description: SourceRef points to a store or generator which contains secret values ready to use. Use this in combination with Extract or Find pull values out of a specific SecretStore. When sourceRef points to a generator Extract or Find is not supported. The generator returns a static map of values + maxProperties: 1 + properties: + generatorRef: + description: GeneratorRef points to a generator custom resource. + properties: + apiVersion: + default: generators.external-secrets.io/v1alpha1 + description: Specify the apiVersion of the generator resource + type: string + kind: + description: Specify the Kind of the resource, e.g. Password, ACRAccessToken etc. + type: string + name: + description: Specify the name of the generator resource + type: string + required: + - kind + - name + type: object + storeRef: + description: SecretStoreRef defines which SecretStore to fetch the ExternalSecret data. + properties: + kind: + description: Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore` + type: string + name: + description: Name of the SecretStore resource + type: string + required: + - name + type: object + type: object type: object type: array refreshInterval: @@ -2956,6 +4338,9 @@ spec: - name type: object target: + default: + creationPolicy: Owner + deletionPolicy: Retain description: ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret. properties: creationPolicy: @@ -2990,6 +4375,16 @@ spec: type: object engineVersion: default: v2 + description: EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[]. + enum: + - v1 + - v2 + type: string + mergePolicy: + default: Replace + enum: + - Replace + - Merge type: string metadata: description: ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint. @@ -3005,8 +4400,6 @@ spec: type: object templateFrom: items: - maxProperties: 1 - minProperties: 1 properties: configMap: properties: @@ -3015,6 +4408,12 @@ spec: properties: key: type: string + templateAs: + default: Values + enum: + - Values + - KeysAndValues + type: string required: - key type: object @@ -3025,6 +4424,8 @@ spec: - items - name type: object + literal: + type: string secret: properties: items: @@ -3032,6 +4433,12 @@ spec: properties: key: type: string + templateAs: + default: Values + enum: + - Values + - KeysAndValues + type: string required: - key type: object @@ -3042,17 +4449,30 @@ spec: - items - name type: object + target: + default: Data + enum: + - Data + - Annotations + - Labels + type: string type: object type: array type: type: string type: object type: object - required: - - secretStoreRef type: object status: properties: + binding: + description: Binding represents a servicebinding.io Provisioned Service reference to the secret + properties: + name: + description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' + type: string + type: object + x-kubernetes-map-type: atomic conditions: items: properties: @@ -3093,44 +4513,34 @@ spec: - v1 clientConfig: service: - name: external-secrets-webhook - namespace: default + name: release-name-external-secrets-webhook + namespace: "default" path: /convert --- +# Source: external-secrets/templates/crds/fake.yaml apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.9.2 - name: secretstores.external-secrets.io - labels: - platform.nukleros.io/group: secrets - platform.nukleros.io/project: external-secrets + controller-gen.kubebuilder.io/version: v0.13.0 + name: fakes.generators.external-secrets.io spec: - group: external-secrets.io + group: generators.external-secrets.io names: categories: - - externalsecrets - kind: SecretStore - listKind: SecretStoreList - plural: secretstores + - fake + kind: Fake + listKind: FakeList + plural: fakes shortNames: - - ss - singular: secretstore + - fake + singular: fake scope: Namespaced versions: - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: AGE - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].reason - name: Status - type: string - deprecated: true - name: v1alpha1 + - name: v1alpha1 schema: openAPIV3Schema: - description: SecretStore represents a secure external location for storing secrets, which can be referenced as part of `storeRef` fields. + description: Fake generator is used for testing. It lets you define a static set of credentials that is always returned. properties: apiVersion: description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' @@ -3141,129 +4551,1984 @@ spec: metadata: type: object spec: - description: SecretStoreSpec defines the desired state of SecretStore. + description: FakeSpec contains the static data. properties: controller: - description: 'Used to select the correct KES controller (think: ingress.ingressClassName) The KES controller is instantiated with a specific controller name and filters ES based on this property' + description: 'Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters VDS based on this property' type: string - provider: - description: Used to configure the provider. Only one provider may be set - maxProperties: 1 - minProperties: 1 + data: + additionalProperties: + type: string + description: Data defines the static data returned by this generator. + type: object + type: object + type: object + served: true + storage: true + subresources: + status: {} + conversion: + strategy: Webhook + webhook: + conversionReviewVersions: + - v1 + clientConfig: + service: + name: release-name-external-secrets-webhook + namespace: "default" + path: /convert +--- +# Source: external-secrets/templates/crds/gcraccesstoken.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: gcraccesstokens.generators.external-secrets.io +spec: + group: generators.external-secrets.io + names: + categories: + - gcraccesstoken + kind: GCRAccessToken + listKind: GCRAccessTokenList + plural: gcraccesstokens + shortNames: + - gcraccesstoken + singular: gcraccesstoken + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: GCRAccessToken generates an GCP access token that can be used to authenticate with GCR. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + properties: + auth: + description: Auth defines the means for authenticating with GCP properties: - akeyless: - description: Akeyless configures this store to sync secrets using Akeyless Vault provider + secretRef: properties: - akeylessGWApiURL: - description: Akeyless GW API Url from which the secrets to be fetched from. - type: string - authSecretRef: - description: Auth configures how the operator authenticates with Akeyless. + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication properties: - secretRef: - description: 'AkeylessAuthSecretRef AKEYLESS_ACCESS_TYPE_PARAM: AZURE_OBJ_ID OR GCP_AUDIENCE OR ACCESS_KEY OR KUB_CONFIG_NAME.' - properties: - accessID: - description: The SecretAccessID is used for authentication - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - accessType: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - accessTypeParam: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - type: object - required: - - secretRef + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string type: object - required: - - akeylessGWApiURL - - authSecretRef type: object - alibaba: - description: Alibaba configures this store to sync secrets using Alibaba Cloud provider + workloadIdentity: properties: - auth: - description: AlibabaAuth contains a secretRef for credentials. + clusterLocation: + type: string + clusterName: + type: string + clusterProjectID: + type: string + serviceAccountRef: + description: A reference to a ServiceAccount resource. properties: - secretRef: - description: AlibabaAuthSecretRef holds secret references for Alibaba credentials. - properties: - accessKeyIDSecretRef: - description: The AccessKeyID is used for authentication - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - accessKeySecretSecretRef: - description: The AccessKeySecret is used for authentication - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - required: - - accessKeyIDSecretRef - - accessKeySecretSecretRef - type: object + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string required: - - secretRef + - name type: object - endpoint: - type: string - regionID: - description: Alibaba Region to be used for the provider - type: string required: - - auth - - regionID + - clusterLocation + - clusterName + - serviceAccountRef + type: object + type: object + projectID: + description: ProjectID defines which project to use to authenticate with + type: string + required: + - auth + - projectID + type: object + type: object + served: true + storage: true + subresources: + status: {} + conversion: + strategy: Webhook + webhook: + conversionReviewVersions: + - v1 + clientConfig: + service: + name: release-name-external-secrets-webhook + namespace: "default" + path: /convert +--- +# Source: external-secrets/templates/crds/password.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: passwords.generators.external-secrets.io +spec: + group: generators.external-secrets.io + names: + categories: + - password + kind: Password + listKind: PasswordList + plural: passwords + shortNames: + - password + singular: password + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: Password generates a random password based on the configuration parameters in spec. You can specify the length, characterset and other attributes. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: PasswordSpec controls the behavior of the password generator. + properties: + allowRepeat: + default: false + description: set AllowRepeat to true to allow repeating characters. + type: boolean + digits: + description: Digits specifies the number of digits in the generated password. If omitted it defaults to 25% of the length of the password + type: integer + length: + default: 24 + description: Length of the password to be generated. Defaults to 24 + type: integer + noUpper: + default: false + description: Set NoUpper to disable uppercase characters + type: boolean + symbolCharacters: + description: SymbolCharacters specifies the special characters that should be used in the generated password. + type: string + symbols: + description: Symbols specifies the number of symbol characters in the generated password. If omitted it defaults to 25% of the length of the password + type: integer + required: + - allowRepeat + - length + - noUpper + type: object + type: object + served: true + storage: true + subresources: + status: {} + conversion: + strategy: Webhook + webhook: + conversionReviewVersions: + - v1 + clientConfig: + service: + name: release-name-external-secrets-webhook + namespace: "default" + path: /convert +--- +# Source: external-secrets/templates/crds/pushsecret.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: pushsecrets.external-secrets.io +spec: + group: external-secrets.io + names: + categories: + - pushsecrets + kind: PushSecret + listKind: PushSecretList + plural: pushsecrets + singular: pushsecret + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].reason + name: Status + type: string + name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: PushSecretSpec configures the behavior of the PushSecret. + properties: + data: + description: Secret Data that should be pushed to providers + items: + properties: + match: + description: Match a given Secret Key to be pushed to the provider. + properties: + remoteRef: + description: Remote Refs to push to providers. + properties: + property: + description: Name of the property in the resulting secret + type: string + remoteKey: + description: Name of the resulting provider secret. + type: string + required: + - remoteKey + type: object + secretKey: + description: Secret Key to be pushed + type: string + required: + - remoteRef + type: object + metadata: + description: Metadata is metadata attached to the secret. The structure of metadata is provider specific, please look it up in the provider documentation. + x-kubernetes-preserve-unknown-fields: true + required: + - match + type: object + type: array + deletionPolicy: + default: None + description: 'Deletion Policy to handle Secrets in the provider. Possible Values: "Delete/None". Defaults to "None".' + enum: + - Delete + - None + type: string + refreshInterval: + description: The Interval to which External Secrets will try to push a secret definition + type: string + secretStoreRefs: + items: + properties: + kind: + default: SecretStore + description: Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore` + type: string + labelSelector: + description: Optionally, sync to secret stores with label selector + properties: + matchExpressions: + description: matchExpressions is a list of label selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + properties: + key: + description: key is the label key that the selector applies to. + type: string + operator: + description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + type: object + type: object + x-kubernetes-map-type: atomic + name: + description: Optionally, sync to the SecretStore of the given name + type: string + type: object + type: array + selector: + description: The Secret Selector (k8s source) for the Push Secret + properties: + secret: + description: Select a Secret to Push. + properties: + name: + description: Name of the Secret. The Secret must exist in the same namespace as the PushSecret manifest. + type: string + required: + - name + type: object + required: + - secret + type: object + template: + description: Template defines a blueprint for the created Secret resource. + properties: + data: + additionalProperties: + type: string + type: object + engineVersion: + default: v2 + description: EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[]. + enum: + - v1 + - v2 + type: string + mergePolicy: + default: Replace + enum: + - Replace + - Merge + type: string + metadata: + description: ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint. + properties: + annotations: + additionalProperties: + type: string + type: object + labels: + additionalProperties: + type: string + type: object + type: object + templateFrom: + items: + properties: + configMap: + properties: + items: + items: + properties: + key: + type: string + templateAs: + default: Values + enum: + - Values + - KeysAndValues + type: string + required: + - key + type: object + type: array + name: + type: string + required: + - items + - name + type: object + literal: + type: string + secret: + properties: + items: + items: + properties: + key: + type: string + templateAs: + default: Values + enum: + - Values + - KeysAndValues + type: string + required: + - key + type: object + type: array + name: + type: string + required: + - items + - name + type: object + target: + default: Data + enum: + - Data + - Annotations + - Labels + type: string + type: object + type: array + type: + type: string + type: object + required: + - secretStoreRefs + - selector + type: object + status: + description: PushSecretStatus indicates the history of the status of PushSecret. + properties: + conditions: + items: + description: PushSecretStatusCondition indicates the status of the PushSecret. + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + reason: + type: string + status: + type: string + type: + description: PushSecretConditionType indicates the condition of the PushSecret. + type: string + required: + - status + - type + type: object + type: array + refreshTime: + description: refreshTime is the time and date the external secret was fetched and the target secret updated + format: date-time + nullable: true + type: string + syncedPushSecrets: + additionalProperties: + additionalProperties: + properties: + match: + description: Match a given Secret Key to be pushed to the provider. + properties: + remoteRef: + description: Remote Refs to push to providers. + properties: + property: + description: Name of the property in the resulting secret + type: string + remoteKey: + description: Name of the resulting provider secret. + type: string + required: + - remoteKey + type: object + secretKey: + description: Secret Key to be pushed + type: string + required: + - remoteRef + type: object + metadata: + description: Metadata is metadata attached to the secret. The structure of metadata is provider specific, please look it up in the provider documentation. + x-kubernetes-preserve-unknown-fields: true + required: + - match + type: object + type: object + description: Synced Push Secrets for later deletion. Matches Secret Stores to PushSecretData that was stored to that secretStore. + type: object + syncedResourceVersion: + description: SyncedResourceVersion keeps track of the last synced version. + type: string + type: object + type: object + served: true + storage: true + subresources: + status: {} + conversion: + strategy: Webhook + webhook: + conversionReviewVersions: + - v1 + clientConfig: + service: + name: release-name-external-secrets-webhook + namespace: "default" + path: /convert +--- +# Source: external-secrets/templates/crds/secretstore.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: secretstores.external-secrets.io +spec: + group: external-secrets.io + names: + categories: + - externalsecrets + kind: SecretStore + listKind: SecretStoreList + plural: secretstores + shortNames: + - ss + singular: secretstore + scope: Namespaced + versions: + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].reason + name: Status + type: string + deprecated: true + name: v1alpha1 + schema: + openAPIV3Schema: + description: SecretStore represents a secure external location for storing secrets, which can be referenced as part of `storeRef` fields. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: SecretStoreSpec defines the desired state of SecretStore. + properties: + controller: + description: 'Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters ES based on this property' + type: string + provider: + description: Used to configure the provider. Only one provider may be set + maxProperties: 1 + minProperties: 1 + properties: + akeyless: + description: Akeyless configures this store to sync secrets using Akeyless Vault provider + properties: + akeylessGWApiURL: + description: Akeyless GW API Url from which the secrets to be fetched from. + type: string + authSecretRef: + description: Auth configures how the operator authenticates with Akeyless. + properties: + kubernetesAuth: + description: Kubernetes authenticates with Akeyless by passing the ServiceAccount token stored in the named Secret resource. + properties: + accessID: + description: the Akeyless Kubernetes auth-method access-id + type: string + k8sConfName: + description: Kubernetes-auth configuration name in Akeyless-Gateway + type: string + secretRef: + description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Akeyless. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + serviceAccountRef: + description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Akeyless. If the service account selector is not supplied, the secretRef will be used instead. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - accessID + - k8sConfName + type: object + secretRef: + description: Reference to a Secret that contains the details to authenticate with Akeyless. + properties: + accessID: + description: The SecretAccessID is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + accessType: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + accessTypeParam: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + type: object + caBundle: + description: PEM/base64 encoded CA bundle used to validate Akeyless Gateway certificate. Only used if the AkeylessGWApiURL URL is using HTTPS protocol. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate Akeyless Gateway certificate. + properties: + key: + description: The key the value inside of the provider type to use, only used with "Secret" type + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string + required: + - name + - type + type: object + required: + - akeylessGWApiURL + - authSecretRef + type: object + alibaba: + description: Alibaba configures this store to sync secrets using Alibaba Cloud provider + properties: + auth: + description: AlibabaAuth contains a secretRef for credentials. + properties: + rrsa: + description: Authenticate against Alibaba using RRSA. + properties: + oidcProviderArn: + type: string + oidcTokenFilePath: + type: string + roleArn: + type: string + sessionName: + type: string + required: + - oidcProviderArn + - oidcTokenFilePath + - roleArn + - sessionName + type: object + secretRef: + description: AlibabaAuthSecretRef holds secret references for Alibaba credentials. + properties: + accessKeyIDSecretRef: + description: The AccessKeyID is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + accessKeySecretSecretRef: + description: The AccessKeySecret is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - accessKeyIDSecretRef + - accessKeySecretSecretRef + type: object + type: object + regionID: + description: Alibaba Region to be used for the provider + type: string + required: + - auth + - regionID + type: object + aws: + description: AWS configures this store to sync secrets using AWS Secret Manager provider + properties: + auth: + description: 'Auth defines the information necessary to authenticate against AWS if not set aws sdk will infer credentials from your environment see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials' + properties: + jwt: + description: Authenticate against AWS using service account tokens. + properties: + serviceAccountRef: + description: A reference to a ServiceAccount resource. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + type: object + secretRef: + description: AWSAuthSecretRef holds secret references for AWS credentials both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate. + properties: + accessKeyIDSecretRef: + description: The AccessKeyID is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + type: object + region: + description: AWS Region to be used for the provider + type: string + role: + description: Role is a Role ARN which the SecretManager provider will assume + type: string + service: + description: Service defines which service should be used to fetch the secrets + enum: + - SecretsManager + - ParameterStore + type: string + required: + - region + - service + type: object + azurekv: + description: AzureKV configures this store to sync secrets using Azure Key Vault provider + properties: + authSecretRef: + description: Auth configures how the operator authenticates with Azure. Required for ServicePrincipal auth type. + properties: + clientId: + description: The Azure clientId of the service principle used for authentication. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + clientSecret: + description: The Azure ClientSecret of the service principle used for authentication. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + authType: + default: ServicePrincipal + description: 'Auth type defines how to authenticate to the keyvault service. Valid values are: - "ServicePrincipal" (default): Using a service principal (tenantId, clientId, clientSecret) - "ManagedIdentity": Using Managed Identity assigned to the pod (see aad-pod-identity)' + enum: + - ServicePrincipal + - ManagedIdentity + - WorkloadIdentity + type: string + identityId: + description: If multiple Managed Identity is assigned to the pod, you can select the one to be used + type: string + serviceAccountRef: + description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + tenantId: + description: TenantID configures the Azure Tenant to send requests to. Required for ServicePrincipal auth type. + type: string + vaultUrl: + description: Vault Url from which the secrets to be fetched from. + type: string + required: + - vaultUrl + type: object + fake: + description: Fake configures a store with static key/value pairs + properties: + data: + items: + properties: + key: + type: string + value: + type: string + valueMap: + additionalProperties: + type: string + type: object + version: + type: string + required: + - key + type: object + type: array + required: + - data + type: object + gcpsm: + description: GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider + properties: + auth: + description: Auth defines the information necessary to authenticate against GCP + properties: + secretRef: + properties: + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + workloadIdentity: + properties: + clusterLocation: + type: string + clusterName: + type: string + clusterProjectID: + type: string + serviceAccountRef: + description: A reference to a ServiceAccount resource. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - clusterLocation + - clusterName + - serviceAccountRef + type: object + type: object + projectID: + description: ProjectID project where secret is located + type: string + type: object + gitlab: + description: GitLab configures this store to sync secrets using GitLab Variables provider + properties: + auth: + description: Auth configures how secret-manager authenticates with a GitLab instance. + properties: + SecretRef: + properties: + accessToken: + description: AccessToken is used for authentication. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + required: + - SecretRef + type: object + projectID: + description: ProjectID specifies a project where secrets are located. + type: string + url: + description: URL configures the GitLab instance URL. Defaults to https://gitlab.com/. + type: string + required: + - auth + type: object + ibm: + description: IBM configures this store to sync secrets using IBM Cloud provider + properties: + auth: + description: Auth configures how secret-manager authenticates with the IBM secrets manager. + properties: + secretRef: + properties: + secretApiKeySecretRef: + description: The SecretAccessKey is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + required: + - secretRef + type: object + serviceUrl: + description: ServiceURL is the Endpoint URL that is specific to the Secrets Manager service instance + type: string + required: + - auth + type: object + kubernetes: + description: Kubernetes configures this store to sync secrets using a Kubernetes cluster provider + properties: + auth: + description: Auth configures how secret-manager authenticates with a Kubernetes instance. + maxProperties: 1 + minProperties: 1 + properties: + cert: + description: has both clientCert and clientKey as secretKeySelector + properties: + clientCert: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + clientKey: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + serviceAccount: + description: points to a service account that should be used for authentication + properties: + serviceAccount: + description: A reference to a ServiceAccount resource. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + type: object + token: + description: use static token to authenticate with + properties: + bearerToken: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + type: object + remoteNamespace: + default: default + description: Remote namespace to fetch the secrets from + type: string + server: + description: configures the Kubernetes server Address. + properties: + caBundle: + description: CABundle is a base64-encoded CA certificate + format: byte + type: string + caProvider: + description: 'see: https://external-secrets.io/v0.4.1/spec/#external-secrets.io/v1alpha1.CAProvider' + properties: + key: + description: The key the value inside of the provider type to use, only used with "Secret" type + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string + required: + - name + - type + type: object + url: + default: kubernetes.default + description: configures the Kubernetes server Address. + type: string + type: object + required: + - auth + type: object + oracle: + description: Oracle configures this store to sync secrets using Oracle Vault provider + properties: + auth: + description: Auth configures how secret-manager authenticates with the Oracle Vault. If empty, instance principal is used. Optionally, the authenticating principal type and/or user data may be supplied for the use of workload identity and user principal. + properties: + secretRef: + description: SecretRef to pass through sensitive information. + properties: + fingerprint: + description: Fingerprint is the fingerprint of the API private key. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + privatekey: + description: PrivateKey is the user's API Signing Key in PEM format, used for authentication. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - fingerprint + - privatekey + type: object + tenancy: + description: Tenancy is the tenancy OCID where user is located. + type: string + user: + description: User is an access OCID specific to the account. + type: string + required: + - secretRef + - tenancy + - user + type: object + compartment: + description: Compartment is the vault compartment OCID. Required for PushSecret + type: string + encryptionKey: + description: EncryptionKey is the OCID of the encryption key within the vault. Required for PushSecret + type: string + principalType: + description: The type of principal to use for authentication. If left blank, the Auth struct will determine the principal type. This optional field must be specified if using workload identity. + enum: + - "" + - UserPrincipal + - InstancePrincipal + - Workload + type: string + region: + description: Region is the region where vault is located. + type: string + serviceAccountRef: + description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + vault: + description: Vault is the vault's OCID of the specific vault where secret is located. + type: string + required: + - region + - vault + type: object + vault: + description: Vault configures this store to sync secrets using Hashi provider + properties: + auth: + description: Auth configures how secret-manager authenticates with the Vault server. + properties: + appRole: + description: AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. + properties: + path: + default: approle + description: 'Path where the App Role authentication backend is mounted in Vault, e.g: "approle"' + type: string + roleId: + description: RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. + type: string + secretRef: + description: Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - path + - roleId + - secretRef + type: object + cert: + description: Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method + properties: + clientCert: + description: ClientCert is a certificate to authenticate using the Cert Vault authentication method + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + secretRef: + description: SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + jwt: + description: Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method + properties: + kubernetesServiceAccountToken: + description: Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API. + properties: + audiences: + description: Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. + items: + type: string + type: array + expirationSeconds: + description: Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to 10 minutes. + format: int64 + type: integer + serviceAccountRef: + description: Service account field containing the name of a kubernetes ServiceAccount. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - serviceAccountRef + type: object + path: + default: jwt + description: 'Path where the JWT authentication backend is mounted in Vault, e.g: "jwt"' + type: string + role: + description: Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method + type: string + secretRef: + description: Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - path + type: object + kubernetes: + description: Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. + properties: + mountPath: + default: kubernetes + description: 'Path where the Kubernetes authentication backend is mounted in Vault, e.g: "kubernetes"' + type: string + role: + description: A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies. + type: string + secretRef: + description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + serviceAccountRef: + description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - mountPath + - role + type: object + ldap: + description: Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method + properties: + path: + default: ldap + description: 'Path where the LDAP authentication backend is mounted in Vault, e.g: "ldap"' + type: string + secretRef: + description: SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + username: + description: Username is a LDAP user name used to authenticate using the LDAP Vault authentication method + type: string + required: + - path + - username + type: object + tokenSecretRef: + description: TokenSecretRef authenticates with Vault by presenting a token. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + caBundle: + description: PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate Vault server certificate. + properties: + key: + description: The key the value inside of the provider type to use, only used with "Secret" type + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string + required: + - name + - type + type: object + forwardInconsistent: + description: ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header + type: boolean + namespace: + description: 'Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces' + type: string + path: + description: 'Path is the mount path of the Vault KV backend endpoint, e.g: "secret". The v2 KV secret engine version specific "/data" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.' + type: string + readYourWrites: + description: ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency + type: boolean + server: + description: 'Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".' + type: string + version: + default: v2 + description: Version is the Vault KV secret engine version. This can be either "v1" or "v2". Version defaults to "v2". + enum: + - v1 + - v2 + type: string + required: + - auth + - server + type: object + webhook: + description: Webhook configures this store to sync secrets using a generic templated webhook + properties: + body: + description: Body + type: string + caBundle: + description: PEM encoded CA bundle used to validate webhook server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate webhook server certificate. + properties: + key: + description: The key the value inside of the provider type to use, only used with "Secret" type + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string + required: + - name + - type + type: object + headers: + additionalProperties: + type: string + description: Headers + type: object + method: + description: Webhook Method + type: string + result: + description: Result formatting + properties: + jsonPath: + description: Json path of return value + type: string + type: object + secrets: + description: Secrets to fill in templates These secrets will be passed to the templating function as key value pairs under the given name + items: + properties: + name: + description: Name of this secret in templates + type: string + secretRef: + description: Secret ref to fill in credentials + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - name + - secretRef + type: object + type: array + timeout: + description: Timeout + type: string + url: + description: Webhook url to call + type: string + required: + - result + - url + type: object + yandexlockbox: + description: YandexLockbox configures this store to sync secrets using Yandex Lockbox provider + properties: + apiEndpoint: + description: Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443') + type: string + auth: + description: Auth defines the information necessary to authenticate against Yandex Lockbox + properties: + authorizedKeySecretRef: + description: The authorized key used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + caProvider: + description: The provider for the CA bundle to use to validate Yandex.Cloud server certificate. + properties: + certSecretRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + required: + - auth + type: object + type: object + retrySettings: + description: Used to configure http retries if failed + properties: + maxRetries: + format: int32 + type: integer + retryInterval: + type: string + type: object + required: + - provider + type: object + status: + description: SecretStoreStatus defines the observed state of the SecretStore. + properties: + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + reason: + type: string + status: + type: string + type: + type: string + required: + - status + - type + type: object + type: array + type: object + type: object + served: true + storage: false + subresources: + status: {} + - additionalPrinterColumns: + - jsonPath: .metadata.creationTimestamp + name: AGE + type: date + - jsonPath: .status.conditions[?(@.type=="Ready")].reason + name: Status + type: string + - jsonPath: .status.capabilities + name: Capabilities + type: string + - jsonPath: .status.conditions[?(@.type=="Ready")].status + name: Ready + type: string + name: v1beta1 + schema: + openAPIV3Schema: + description: SecretStore represents a secure external location for storing secrets, which can be referenced as part of `storeRef` fields. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: SecretStoreSpec defines the desired state of SecretStore. + properties: + conditions: + description: Used to constraint a ClusterSecretStore to specific namespaces. Relevant only to ClusterSecretStore + items: + description: ClusterSecretStoreCondition describes a condition by which to choose namespaces to process ExternalSecrets in for a ClusterSecretStore instance. + properties: + namespaceSelector: + description: Choose namespace using a labelSelector + properties: + matchExpressions: + description: matchExpressions is a list of label selector requirements. The requirements are ANDed. + items: + description: A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. + properties: + key: + description: key is the label key that the selector applies to. + type: string + operator: + description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. + type: string + values: + description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. + items: + type: string + type: array + required: + - key + - operator + type: object + type: array + matchLabels: + additionalProperties: + type: string + description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. + type: object + type: object + x-kubernetes-map-type: atomic + namespaces: + description: Choose namespaces by name + items: + type: string + type: array + type: object + type: array + controller: + description: 'Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters ES based on this property' + type: string + provider: + description: Used to configure the provider. Only one provider may be set + maxProperties: 1 + minProperties: 1 + properties: + akeyless: + description: Akeyless configures this store to sync secrets using Akeyless Vault provider + properties: + akeylessGWApiURL: + description: Akeyless GW API Url from which the secrets to be fetched from. + type: string + authSecretRef: + description: Auth configures how the operator authenticates with Akeyless. + properties: + kubernetesAuth: + description: Kubernetes authenticates with Akeyless by passing the ServiceAccount token stored in the named Secret resource. + properties: + accessID: + description: the Akeyless Kubernetes auth-method access-id + type: string + k8sConfName: + description: Kubernetes-auth configuration name in Akeyless-Gateway + type: string + secretRef: + description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Akeyless. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + serviceAccountRef: + description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Akeyless. If the service account selector is not supplied, the secretRef will be used instead. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - accessID + - k8sConfName + type: object + secretRef: + description: Reference to a Secret that contains the details to authenticate with Akeyless. + properties: + accessID: + description: The SecretAccessID is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + accessType: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + accessTypeParam: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + type: object + caBundle: + description: PEM/base64 encoded CA bundle used to validate Akeyless Gateway certificate. Only used if the AkeylessGWApiURL URL is using HTTPS protocol. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate Akeyless Gateway certificate. + properties: + key: + description: The key where the CA certificate can be found in the Secret or ConfigMap. + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string + required: + - name + - type + type: object + required: + - akeylessGWApiURL + - authSecretRef + type: object + alibaba: + description: Alibaba configures this store to sync secrets using Alibaba Cloud provider + properties: + auth: + description: AlibabaAuth contains a secretRef for credentials. + properties: + rrsa: + description: Authenticate against Alibaba using RRSA. + properties: + oidcProviderArn: + type: string + oidcTokenFilePath: + type: string + roleArn: + type: string + sessionName: + type: string + required: + - oidcProviderArn + - oidcTokenFilePath + - roleArn + - sessionName + type: object + secretRef: + description: AlibabaAuthSecretRef holds secret references for Alibaba credentials. + properties: + accessKeyIDSecretRef: + description: The AccessKeyID is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + accessKeySecretSecretRef: + description: The AccessKeySecret is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - accessKeyIDSecretRef + - accessKeySecretSecretRef + type: object + type: object + regionID: + description: Alibaba Region to be used for the provider + type: string + required: + - auth + - regionID type: object aws: description: AWS configures this store to sync secrets using AWS Secret Manager provider properties: + additionalRoles: + description: AdditionalRoles is a chained list of Role ARNs which the provider will sequentially assume before assuming the Role + items: + type: string + type: array auth: description: 'Auth defines the information necessary to authenticate against AWS if not set aws sdk will infer credentials from your environment see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials' properties: @@ -3273,6 +6538,11 @@ spec: serviceAccountRef: description: A reference to a ServiceAccount resource. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -3299,8 +6569,21 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - secretAccessKeySecretRef: - description: The SecretAccessKey is used for authentication + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + sessionTokenSecretRef: + description: 'The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html' properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -3314,18 +6597,50 @@ spec: type: object type: object type: object + externalID: + description: AWS External ID set on assumed IAM roles + type: string region: description: AWS Region to be used for the provider type: string role: - description: Role is a Role ARN which the SecretManager provider will assume + description: Role is a Role ARN which the provider will assume type: string + secretsManager: + description: SecretsManager defines how the provider behaves when interacting with AWS SecretsManager + properties: + forceDeleteWithoutRecovery: + description: 'Specifies whether to delete the secret without any recovery window. You can''t use both this parameter and RecoveryWindowInDays in the same call. If you don''t use either, then by default Secrets Manager uses a 30 day recovery window. see: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html#SecretsManager-DeleteSecret-request-ForceDeleteWithoutRecovery' + type: boolean + recoveryWindowInDays: + description: 'The number of days from 7 to 30 that Secrets Manager waits before permanently deleting the secret. You can''t use both this parameter and ForceDeleteWithoutRecovery in the same call. If you don''t use either, then by default Secrets Manager uses a 30 day recovery window. see: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html#SecretsManager-DeleteSecret-request-RecoveryWindowInDays' + format: int64 + type: integer + type: object service: description: Service defines which service should be used to fetch the secrets enum: - SecretsManager - ParameterStore type: string + sessionTags: + description: AWS STS assume role session tags + items: + properties: + key: + type: string + value: + type: string + required: + - key + - value + type: object + type: array + transitiveTagKeys: + description: AWS STS assume role transitive session tags. Required when multiple rules are used with the provider + items: + type: string + type: array required: - region - service @@ -3371,12 +6686,26 @@ spec: - ManagedIdentity - WorkloadIdentity type: string + environmentType: + default: PublicCloud + description: 'EnvironmentType specifies the Azure cloud environment endpoints to use for connecting and authenticating with Azure. By default it points to the public cloud AAD endpoint. The following endpoints are available, also see here: https://github.com/Azure/go-autorest/blob/main/autorest/azure/environments.go#L152 PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud' + enum: + - PublicCloud + - USGovernmentCloud + - ChinaCloud + - GermanCloud + type: string identityId: description: If multiple Managed Identity is assigned to the pod, you can select the one to be used type: string serviceAccountRef: description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -3395,39 +6724,17 @@ spec: required: - vaultUrl type: object - fake: - description: Fake configures a store with static key/value pairs - properties: - data: - items: - properties: - key: - type: string - value: - type: string - valueMap: - additionalProperties: - type: string - type: object - version: - type: string - required: - - key - type: object - type: array - required: - - data - type: object - gcpsm: - description: GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider + conjur: + description: Conjur configures this store to sync secrets using conjur provider properties: auth: - description: Auth defines the information necessary to authenticate against GCP properties: - secretRef: + apikey: properties: - secretAccessKeySecretRef: - description: The SecretAccessKey is used for authentication + account: + type: string + apiKeyRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -3439,47 +6746,30 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - type: object - workloadIdentity: - properties: - clusterLocation: - type: string - clusterName: - type: string - clusterProjectID: - type: string - serviceAccountRef: - description: A reference to a ServiceAccount resource. + userRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string name: - description: The name of the ServiceAccount resource being referred to. + description: The name of the Secret resource being referred to. type: string namespace: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string - required: - - name type: object required: - - clusterLocation - - clusterName - - serviceAccountRef + - account + - apiKeyRef + - userRef type: object - type: object - projectID: - description: ProjectID project where secret is located - type: string - type: object - gitlab: - description: Gitlab configures this store to sync secrets using Gitlab Variables provider - properties: - auth: - description: Auth configures how secret-manager authenticates with a GitLab instance. - properties: - SecretRef: + jwt: properties: - accessToken: - description: AccessToken is used for authentication. + account: + type: string + secretRef: + description: Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Conjur using the JWT authentication method. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -3491,187 +6781,128 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - type: object - required: - - SecretRef - type: object - projectID: - description: ProjectID specifies a project where secrets are located. - type: string - url: - description: URL configures the GitLab instance URL. Defaults to https://gitlab.com/. - type: string - required: - - auth - type: object - ibm: - description: IBM configures this store to sync secrets using IBM Cloud provider - properties: - auth: - description: Auth configures how secret-manager authenticates with the IBM secrets manager. - properties: - secretRef: - properties: - secretApiKeySecretRef: - description: The SecretAccessKey is used for authentication + serviceAccountRef: + description: Optional ServiceAccountRef specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API. properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: - description: The name of the Secret resource being referred to. + description: The name of the ServiceAccount resource being referred to. type: string namespace: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string + required: + - name type: object + serviceID: + description: The conjur authn jwt webservice id + type: string + required: + - account + - serviceID type: object + type: object + caBundle: + type: string + caProvider: + description: Used to provide custom certificate authority (CA) certificates for a secret store. The CAProvider points to a Secret or ConfigMap resource that contains a PEM-encoded certificate. + properties: + key: + description: The key where the CA certificate can be found in the Secret or ConfigMap. + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string required: - - secretRef + - name + - type type: object - serviceUrl: - description: ServiceURL is the Endpoint URL that is specific to the Secrets Manager service instance + url: type: string required: - auth + - url type: object - kubernetes: - description: Kubernetes configures this store to sync secrets using a Kubernetes cluster provider + delinea: + description: Delinea DevOps Secrets Vault https://docs.delinea.com/online-help/products/devops-secrets-vault/current properties: - auth: - description: Auth configures how secret-manager authenticates with a Kubernetes instance. - maxProperties: 1 - minProperties: 1 + clientId: + description: ClientID is the non-secret part of the credential. properties: - cert: - description: has both clientCert and clientKey as secretKeySelector - properties: - clientCert: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - clientKey: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - type: object - serviceAccount: - description: points to a service account that should be used for authentication - properties: - serviceAccount: - description: A reference to a ServiceAccount resource. - properties: - name: - description: The name of the ServiceAccount resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - required: - - name - type: object - type: object - token: - description: use static token to authenticate with + secretRef: + description: SecretRef references a key in a secret that will be used as value. properties: - bearerToken: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string type: object + value: + description: Value can be specified directly to set a value without using a secret. + type: string type: object - remoteNamespace: - default: default - description: Remote namespace to fetch the secrets from - type: string - server: - description: configures the Kubernetes server Address. + clientSecret: + description: ClientSecret is the secret part of the credential. properties: - caBundle: - description: CABundle is a base64-encoded CA certificate - format: byte - type: string - caProvider: - description: 'see: https://external-secrets.io/v0.4.1/spec/#external-secrets.io/v1alpha1.CAProvider' + secretRef: + description: SecretRef references a key in a secret that will be used as value. properties: key: - description: The key the value inside of the provider type to use, only used with "Secret" type + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. type: string name: - description: The name of the object located at the provider type. + description: The name of the Secret resource being referred to. type: string namespace: - description: The namespace the Provider type is in. - type: string - type: - description: The type of provider to use such as "Secret", or "ConfigMap". - enum: - - Secret - - ConfigMap + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string - required: - - name - - type type: object - url: - default: kubernetes.default - description: configures the Kubernetes server Address. + value: + description: Value can be specified directly to set a value without using a secret. type: string type: object + tenant: + description: Tenant is the chosen hostname / site name. + type: string + tld: + description: TLD is based on the server location that was chosen during provisioning. If unset, defaults to "com". + type: string + urlTemplate: + description: URLTemplate If unset, defaults to "https://%s.secretsvaultcloud.%s/v1/%s%s". + type: string required: - - auth + - clientId + - clientSecret + - tenant type: object - oracle: - description: Oracle configures this store to sync secrets using Oracle Vault provider + doppler: + description: Doppler configures this store to sync secrets using the Doppler provider properties: auth: - description: Auth configures how secret-manager authenticates with the Oracle Vault. If empty, use the instance principal, otherwise the user credentials specified in Auth. + description: Auth configures how the Operator authenticates with the Doppler API properties: secretRef: - description: SecretRef to pass through sensitive information. properties: - fingerprint: - description: Fingerprint is the fingerprint of the API private key. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - privatekey: - description: PrivateKey is the user's API Signing Key in PEM format, used for authentication. + dopplerToken: + description: The DopplerToken is used for authentication. See https://docs.doppler.com/reference/api#authentication for auth token types. The Key attribute defaults to dopplerToken if not specified. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -3684,82 +6915,73 @@ spec: type: string type: object required: - - fingerprint - - privatekey + - dopplerToken type: object - tenancy: - description: Tenancy is the tenancy OCID where user is located. - type: string - user: - description: User is an access OCID specific to the account. - type: string required: - secretRef - - tenancy - - user type: object - region: - description: Region is the region where vault is located. + config: + description: Doppler config (required if not using a Service Token) type: string - vault: - description: Vault is the vault's OCID of the specific vault where secret is located. + format: + description: Format enables the downloading of secrets as a file (string) + enum: + - json + - dotnet-json + - env + - yaml + - docker + type: string + nameTransformer: + description: Environment variable compatible name transforms that change secret names to a different format + enum: + - upper-camel + - camel + - lower-snake + - tf-var + - dotnet-env + - lower-kebab + type: string + project: + description: Doppler project (required if not using a Service Token) type: string required: - - region - - vault + - auth type: object - vault: - description: Vault configures this store to sync secrets using Hashi provider + fake: + description: Fake configures a store with static key/value pairs + properties: + data: + items: + properties: + key: + type: string + value: + type: string + valueMap: + additionalProperties: + type: string + description: 'Deprecated: ValueMap is deprecated and is intended to be removed in the future, use the `value` field instead.' + type: object + version: + type: string + required: + - key + type: object + type: array + required: + - data + type: object + gcpsm: + description: GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider properties: auth: - description: Auth configures how secret-manager authenticates with the Vault server. + description: Auth defines the information necessary to authenticate against GCP properties: - appRole: - description: AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. - properties: - path: - default: approle - description: 'Path where the App Role authentication backend is mounted in Vault, e.g: "approle"' - type: string - roleId: - description: RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. - type: string - secretRef: - description: Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - required: - - path - - roleId - - secretRef - type: object - cert: - description: Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method + secretRef: properties: - clientCert: - description: ClientCert is a certificate to authenticate using the Cert Vault authentication method - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - secretRef: - description: SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -3772,71 +6994,51 @@ spec: type: string type: object type: object - jwt: - description: Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method + workloadIdentity: properties: - kubernetesServiceAccountToken: - description: Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API. + clusterLocation: + type: string + clusterName: + type: string + clusterProjectID: + type: string + serviceAccountRef: + description: A reference to a ServiceAccount resource. properties: audiences: - description: Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list items: type: string type: array - expirationSeconds: - description: Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to 10 minutes. - format: int64 - type: integer - serviceAccountRef: - description: Service account field containing the name of a kubernetes ServiceAccount. - properties: - name: - description: The name of the ServiceAccount resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - required: - - name - type: object - required: - - serviceAccountRef - type: object - path: - default: jwt - description: 'Path where the JWT authentication backend is mounted in Vault, e.g: "jwt"' - type: string - role: - description: Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method - type: string - secretRef: - description: Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string name: - description: The name of the Secret resource being referred to. + description: The name of the ServiceAccount resource being referred to. type: string namespace: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string + required: + - name type: object required: - - path + - clusterLocation + - clusterName + - serviceAccountRef type: object - kubernetes: - description: Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. + type: object + projectID: + description: ProjectID project where secret is located + type: string + type: object + gitlab: + description: GitLab configures this store to sync secrets using GitLab Variables provider + properties: + auth: + description: Auth configures how secret-manager authenticates with a GitLab instance. + properties: + SecretRef: properties: - mountPath: - default: kubernetes - description: 'Path where the Kubernetes authentication backend is mounted in Vault, e.g: "kubernetes"' - type: string - role: - description: A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies. - type: string - secretRef: - description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. + accessToken: + description: AccessToken is used for authentication. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -3848,31 +7050,56 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - serviceAccountRef: - description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead. - properties: - name: - description: The name of the ServiceAccount resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - required: - - name - type: object + type: object + required: + - SecretRef + type: object + environment: + description: Environment environment_scope of gitlab CI/CD variables (Please see https://docs.gitlab.com/ee/ci/environments/#create-a-static-environment on how to create environments) + type: string + groupIDs: + description: GroupIDs specify, which gitlab groups to pull secrets from. Group secrets are read from left to right followed by the project variables. + items: + type: string + type: array + inheritFromGroups: + description: InheritFromGroups specifies whether parent groups should be discovered and checked for secrets. + type: boolean + projectID: + description: ProjectID specifies a project where secrets are located. + type: string + url: + description: URL configures the GitLab instance URL. Defaults to https://gitlab.com/. + type: string + required: + - auth + type: object + ibm: + description: IBM configures this store to sync secrets using IBM Cloud provider + properties: + auth: + description: Auth configures how secret-manager authenticates with the IBM secrets manager. + maxProperties: 1 + minProperties: 1 + properties: + containerAuth: + description: IBM Container-based auth with IAM Trusted Profile. + properties: + iamEndpoint: + type: string + profile: + description: the IBM Trusted Profile + type: string + tokenLocation: + description: Location the token is mounted on the pod + type: string required: - - mountPath - - role + - profile type: object - ldap: - description: Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method + secretRef: properties: - path: - default: ldap - description: 'Path where the LDAP authentication backend is mounted in Vault, e.g: "ldap"' - type: string - secretRef: - description: SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method + secretApiKeySecretRef: + description: The SecretAccessKey is used for authentication properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -3884,293 +7111,161 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - username: - description: Username is a LDAP user name used to authenticate using the LDAP Vault authentication method - type: string - required: - - path - - username - type: object - tokenSecretRef: - description: TokenSecretRef authenticates with Vault by presenting a token. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string type: object type: object - caBundle: - description: PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. - format: byte - type: string - caProvider: - description: The provider for the CA bundle to use to validate Vault server certificate. - properties: - key: - description: The key the value inside of the provider type to use, only used with "Secret" type - type: string - name: - description: The name of the object located at the provider type. - type: string - namespace: - description: The namespace the Provider type is in. - type: string - type: - description: The type of provider to use such as "Secret", or "ConfigMap". - enum: - - Secret - - ConfigMap - type: string - required: - - name - - type - type: object - forwardInconsistent: - description: ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header - type: boolean - namespace: - description: 'Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces' - type: string - path: - description: 'Path is the mount path of the Vault KV backend endpoint, e.g: "secret". The v2 KV secret engine version specific "/data" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.' - type: string - readYourWrites: - description: ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency - type: boolean - server: - description: 'Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".' - type: string - version: - default: v2 - description: Version is the Vault KV secret engine version. This can be either "v1" or "v2". Version defaults to "v2". - enum: - - v1 - - v2 + serviceUrl: + description: ServiceURL is the Endpoint URL that is specific to the Secrets Manager service instance type: string required: - auth - - server type: object - webhook: - description: Webhook configures this store to sync secrets using a generic templated webhook + keepersecurity: + description: KeeperSecurity configures this store to sync secrets using the KeeperSecurity provider properties: - body: - description: Body - type: string - caBundle: - description: PEM encoded CA bundle used to validate webhook server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. - format: byte - type: string - caProvider: - description: The provider for the CA bundle to use to validate webhook server certificate. + authRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. properties: key: - description: The key the value inside of the provider type to use, only used with "Secret" type + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. type: string name: - description: The name of the object located at the provider type. + description: The name of the Secret resource being referred to. type: string namespace: - description: The namespace the Provider type is in. - type: string - type: - description: The type of provider to use such as "Secret", or "ConfigMap". - enum: - - Secret - - ConfigMap - type: string - required: - - name - - type - type: object - headers: - additionalProperties: - type: string - description: Headers - type: object - method: - description: Webhook Method - type: string - result: - description: Result formatting - properties: - jsonPath: - description: Json path of return value + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - secrets: - description: Secrets to fill in templates These secrets will be passed to the templating function as key value pairs under the given name - items: - properties: - name: - description: Name of this secret in templates - type: string - secretRef: - description: Secret ref to fill in credentials - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - required: - - name - - secretRef - type: object - type: array - timeout: - description: Timeout - type: string - url: - description: Webhook url to call + folderID: type: string required: - - result - - url + - authRef + - folderID type: object - yandexlockbox: - description: YandexLockbox configures this store to sync secrets using Yandex Lockbox provider + kubernetes: + description: Kubernetes configures this store to sync secrets using a Kubernetes cluster provider properties: - apiEndpoint: - description: Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443') - type: string auth: - description: Auth defines the information necessary to authenticate against Yandex Lockbox + description: Auth configures how secret-manager authenticates with a Kubernetes instance. + maxProperties: 1 + minProperties: 1 properties: - authorizedKeySecretRef: - description: The authorized key used for authentication + cert: + description: has both clientCert and clientKey as secretKeySelector properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string + clientCert: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + clientKey: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + serviceAccount: + description: points to a service account that should be used for authentication + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: - description: The name of the Secret resource being referred to. + description: The name of the ServiceAccount resource being referred to. type: string namespace: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string + required: + - name + type: object + token: + description: use static token to authenticate with + properties: + bearerToken: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object type: object type: object - caProvider: - description: The provider for the CA bundle to use to validate Yandex.Cloud server certificate. + remoteNamespace: + default: default + description: Remote namespace to fetch the secrets from + type: string + server: + description: configures the Kubernetes server Address. properties: - certSecretRef: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + caBundle: + description: CABundle is a base64-encoded CA certificate + format: byte + type: string + caProvider: + description: 'see: https://external-secrets.io/v0.4.1/spec/#external-secrets.io/v1alpha1.CAProvider' properties: key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + description: The key where the CA certificate can be found in the Secret or ConfigMap. type: string name: - description: The name of the Secret resource being referred to. + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap type: string + required: + - name + - type type: object + url: + default: kubernetes.default + description: configures the Kubernetes server Address. + type: string type: object required: - auth type: object - type: object - retrySettings: - description: Used to configure http retries if failed - properties: - maxRetries: - format: int32 - type: integer - retryInterval: - type: string - type: object - required: - - provider - type: object - status: - description: SecretStoreStatus defines the observed state of the SecretStore. - properties: - conditions: - items: - properties: - lastTransitionTime: - format: date-time - type: string - message: - type: string - reason: - type: string - status: - type: string - type: - type: string - required: - - status - - type - type: object - type: array - type: object - type: object - served: true - storage: false - subresources: - status: {} - - additionalPrinterColumns: - - jsonPath: .metadata.creationTimestamp - name: AGE - type: date - - jsonPath: .status.conditions[?(@.type=="Ready")].reason - name: Status - type: string - - jsonPath: .status.conditions[?(@.type=="Ready")].status - name: Ready - type: string - name: v1beta1 - schema: - openAPIV3Schema: - description: SecretStore represents a secure external location for storing secrets, which can be referenced as part of `storeRef` fields. - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: SecretStoreSpec defines the desired state of SecretStore. - properties: - controller: - description: 'Used to select the correct KES controller (think: ingress.ingressClassName) The KES controller is instantiated with a specific controller name and filters ES based on this property' - type: string - provider: - description: Used to configure the provider. Only one provider may be set - maxProperties: 1 - minProperties: 1 - properties: - akeyless: - description: Akeyless configures this store to sync secrets using Akeyless Vault provider + onepassword: + description: OnePassword configures this store to sync secrets using the 1Password Cloud provider properties: - akeylessGWApiURL: - description: Akeyless GW API Url from which the secrets to be fetched from. - type: string - authSecretRef: - description: Auth configures how the operator authenticates with Akeyless. + auth: + description: Auth defines the information necessary to authenticate against OnePassword Connect Server properties: secretRef: - description: 'AkeylessAuthSecretRef AKEYLESS_ACCESS_TYPE_PARAM: AZURE_OBJ_ID OR GCP_AUDIENCE OR ACCESS_KEY OR KUB_CONFIG_NAME.' + description: OnePasswordAuthSecretRef holds secret references for 1Password credentials. properties: - accessID: - description: The SecretAccessID is used for authentication + connectTokenSecretRef: + description: The ConnectToken is used for authentication to a 1Password Connect Server. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4182,8 +7277,36 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - accessType: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + required: + - connectTokenSecretRef + type: object + required: + - secretRef + type: object + connectHost: + description: ConnectHost defines the OnePassword Connect Server to connect to + type: string + vaults: + additionalProperties: + type: integer + description: Vaults defines which OnePassword vaults to search in which order + type: object + required: + - auth + - connectHost + - vaults + type: object + oracle: + description: Oracle configures this store to sync secrets using Oracle Vault provider + properties: + auth: + description: Auth configures how secret-manager authenticates with the Oracle Vault. If empty, use the instance principal, otherwise the user credentials specified in Auth. + properties: + secretRef: + description: SecretRef to pass through sensitive information. + properties: + fingerprint: + description: Fingerprint is the fingerprint of the API private key. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4195,8 +7318,8 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - accessTypeParam: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + privatekey: + description: PrivateKey is the user's API Signing Key in PEM format, used for authentication. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4208,25 +7331,178 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + required: + - fingerprint + - privatekey type: object + tenancy: + description: Tenancy is the tenancy OCID where user is located. + type: string + user: + description: User is an access OCID specific to the account. + type: string required: - secretRef + - tenancy + - user + type: object + compartment: + description: Compartment is the vault compartment OCID. Required for PushSecret + type: string + encryptionKey: + description: EncryptionKey is the OCID of the encryption key within the vault. Required for PushSecret + type: string + principalType: + description: The type of principal to use for authentication. If left blank, the Auth struct will determine the principal type. This optional field must be specified if using workload identity. + enum: + - "" + - UserPrincipal + - InstancePrincipal + - Workload + type: string + region: + description: Region is the region where vault is located. + type: string + serviceAccountRef: + description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name type: object + vault: + description: Vault is the vault's OCID of the specific vault where secret is located. + type: string required: - - akeylessGWApiURL - - authSecretRef + - region + - vault + type: object + scaleway: + description: Scaleway + properties: + accessKey: + description: AccessKey is the non-secret part of the api key. + properties: + secretRef: + description: SecretRef references a key in a secret that will be used as value. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + value: + description: Value can be specified directly to set a value without using a secret. + type: string + type: object + apiUrl: + description: APIURL is the url of the api to use. Defaults to https://api.scaleway.com + type: string + projectId: + description: 'ProjectID is the id of your project, which you can find in the console: https://console.scaleway.com/project/settings' + type: string + region: + description: 'Region where your secrets are located: https://developers.scaleway.com/en/quickstart/#region-and-zone' + type: string + secretKey: + description: SecretKey is the non-secret part of the api key. + properties: + secretRef: + description: SecretRef references a key in a secret that will be used as value. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + value: + description: Value can be specified directly to set a value without using a secret. + type: string + type: object + required: + - accessKey + - projectId + - region + - secretKey + type: object + senhasegura: + description: Senhasegura configures this store to sync secrets using senhasegura provider + properties: + auth: + description: Auth defines parameters to authenticate in senhasegura + properties: + clientId: + type: string + clientSecretSecretRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - clientId + - clientSecretSecretRef + type: object + ignoreSslCertificate: + default: false + description: IgnoreSslCertificate defines if SSL certificate must be ignored + type: boolean + module: + description: Module defines which senhasegura module should be used to get secrets + type: string + url: + description: URL of senhasegura + type: string + required: + - auth + - module + - url type: object - alibaba: - description: Alibaba configures this store to sync secrets using Alibaba Cloud provider + vault: + description: Vault configures this store to sync secrets using Hashi provider properties: auth: - description: AlibabaAuth contains a secretRef for credentials. + description: Auth configures how secret-manager authenticates with the Vault server. properties: - secretRef: - description: AlibabaAuthSecretRef holds secret references for Alibaba credentials. + appRole: + description: AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. properties: - accessKeyIDSecretRef: - description: The AccessKeyID is used for authentication + path: + default: approle + description: 'Path where the App Role authentication backend is mounted in Vault, e.g: "approle"' + type: string + roleId: + description: RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. + type: string + roleRef: + description: Reference to a key in a Secret that contains the App Role ID used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role id. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4238,8 +7514,8 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - accessKeySecretSecretRef: - description: The AccessKeySecret is used for authentication + secretRef: + description: Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4252,48 +7528,14 @@ spec: type: string type: object required: - - accessKeyIDSecretRef - - accessKeySecretSecretRef - type: object - required: - - secretRef - type: object - endpoint: - type: string - regionID: - description: Alibaba Region to be used for the provider - type: string - required: - - auth - - regionID - type: object - aws: - description: AWS configures this store to sync secrets using AWS Secret Manager provider - properties: - auth: - description: 'Auth defines the information necessary to authenticate against AWS if not set aws sdk will infer credentials from your environment see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials' - properties: - jwt: - description: Authenticate against AWS using service account tokens. - properties: - serviceAccountRef: - description: A reference to a ServiceAccount resource. - properties: - name: - description: The name of the ServiceAccount resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - required: - - name - type: object + - path + - secretRef type: object - secretRef: - description: AWSAuthSecretRef holds secret references for AWS credentials both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate. + cert: + description: Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method properties: - accessKeyIDSecretRef: - description: The AccessKeyID is used for authentication + clientCert: + description: ClientCert is a certificate to authenticate using the Cert Vault authentication method properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4305,8 +7547,8 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - secretAccessKeySecretRef: - description: The SecretAccessKey is used for authentication + secretRef: + description: SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4319,121 +7561,138 @@ spec: type: string type: object type: object - type: object - region: - description: AWS Region to be used for the provider - type: string - role: - description: Role is a Role ARN which the SecretManager provider will assume - type: string - service: - description: Service defines which service should be used to fetch the secrets - enum: - - SecretsManager - - ParameterStore - type: string - required: - - region - - service - type: object - azurekv: - description: AzureKV configures this store to sync secrets using Azure Key Vault provider - properties: - authSecretRef: - description: Auth configures how the operator authenticates with Azure. Required for ServicePrincipal auth type. - properties: - clientId: - description: The Azure clientId of the service principle used for authentication. + iam: + description: Iam authenticates with vault by passing a special AWS request signed with AWS IAM credentials AWS IAM authentication method properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + externalID: + description: AWS External ID set on assumed IAM roles type: string - name: - description: The name of the Secret resource being referred to. + jwt: + description: Specify a service account with IRSA enabled + properties: + serviceAccountRef: + description: A reference to a ServiceAccount resource. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + type: object + path: + description: 'Path where the AWS auth method is enabled in Vault, e.g: "aws"' type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + region: + description: AWS region type: string - type: object - clientSecret: - description: The Azure ClientSecret of the service principle used for authentication. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + role: + description: This is the AWS role to be assumed before talking to vault type: string - name: - description: The name of the Secret resource being referred to. + secretRef: + description: Specify credentials in a Secret object + properties: + accessKeyIDSecretRef: + description: The AccessKeyID is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + sessionTokenSecretRef: + description: 'The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html' + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + vaultAwsIamServerID: + description: 'X-Vault-AWS-IAM-Server-ID is an additional header used by Vault IAM auth method to mitigate against different types of replay attacks. More details here: https://developer.hashicorp.com/vault/docs/auth/aws' type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + vaultRole: + description: Vault Role. In vault, a role describes an identity with a set of permissions, groups, or policies you want to attach a user of the secrets engine type: string + required: + - vaultRole type: object - type: object - authType: - default: ServicePrincipal - description: 'Auth type defines how to authenticate to the keyvault service. Valid values are: - "ServicePrincipal" (default): Using a service principal (tenantId, clientId, clientSecret) - "ManagedIdentity": Using Managed Identity assigned to the pod (see aad-pod-identity)' - enum: - - ServicePrincipal - - ManagedIdentity - - WorkloadIdentity - type: string - identityId: - description: If multiple Managed Identity is assigned to the pod, you can select the one to be used - type: string - serviceAccountRef: - description: ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity. - properties: - name: - description: The name of the ServiceAccount resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - required: - - name - type: object - tenantId: - description: TenantID configures the Azure Tenant to send requests to. Required for ServicePrincipal auth type. - type: string - vaultUrl: - description: Vault Url from which the secrets to be fetched from. - type: string - required: - - vaultUrl - type: object - fake: - description: Fake configures a store with static key/value pairs - properties: - data: - items: - properties: - key: - type: string - value: - type: string - valueMap: - additionalProperties: - type: string - type: object - version: - type: string - required: - - key - type: object - type: array - required: - - data - type: object - gcpsm: - description: GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider - properties: - auth: - description: Auth defines the information necessary to authenticate against GCP - properties: - secretRef: + jwt: + description: Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method properties: - secretAccessKeySecretRef: - description: The SecretAccessKey is used for authentication + kubernetesServiceAccountToken: + description: Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API. + properties: + audiences: + description: 'Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. Deprecated: use serviceAccountRef.Audiences instead' + items: + type: string + type: array + expirationSeconds: + description: 'Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Deprecated: this will be removed in the future. Defaults to 10 minutes.' + format: int64 + type: integer + serviceAccountRef: + description: Service account field containing the name of a kubernetes ServiceAccount. + properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array + name: + description: The name of the ServiceAccount resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + required: + - name + type: object + required: + - serviceAccountRef + type: object + path: + default: jwt + description: 'Path where the JWT authentication backend is mounted in Vault, e.g: "jwt"' + type: string + role: + description: Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method + type: string + secretRef: + description: Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4445,18 +7704,40 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + required: + - path type: object - workloadIdentity: + kubernetes: + description: Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. properties: - clusterLocation: - type: string - clusterName: + mountPath: + default: kubernetes + description: 'Path where the Kubernetes authentication backend is mounted in Vault, e.g: "kubernetes"' type: string - clusterProjectID: + role: + description: A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies. type: string + secretRef: + description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object serviceAccountRef: - description: A reference to a ServiceAccount resource. + description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -4467,25 +7748,18 @@ spec: - name type: object required: - - clusterLocation - - clusterName - - serviceAccountRef + - mountPath + - role type: object - type: object - projectID: - description: ProjectID project where secret is located - type: string - type: object - gitlab: - description: Gitlab configures this store to sync secrets using Gitlab Variables provider - properties: - auth: - description: Auth configures how secret-manager authenticates with a GitLab instance. - properties: - SecretRef: + ldap: + description: Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method properties: - accessToken: - description: AccessToken is used for authentication. + path: + default: ldap + description: 'Path where the LDAP authentication backend is mounted in Vault, e.g: "ldap"' + type: string + secretRef: + description: SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4497,45 +7771,35 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + username: + description: Username is a LDAP user name used to authenticate using the LDAP Vault authentication method + type: string + required: + - path + - username type: object - required: - - SecretRef - type: object - projectID: - description: ProjectID specifies a project where secrets are located. - type: string - url: - description: URL configures the GitLab instance URL. Defaults to https://gitlab.com/. - type: string - required: - - auth - type: object - ibm: - description: IBM configures this store to sync secrets using IBM Cloud provider - properties: - auth: - description: Auth configures how secret-manager authenticates with the IBM secrets manager. - maxProperties: 1 - minProperties: 1 - properties: - containerAuth: - description: IBM Container-based auth with IAM Trusted Profile. + tokenSecretRef: + description: TokenSecretRef authenticates with Vault by presenting a token. properties: - iamEndpoint: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. type: string - profile: - description: the IBM Trusted Profile + name: + description: The name of the Secret resource being referred to. type: string - tokenLocation: - description: Location the token is mounted on the pod + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string - required: - - profile type: object - secretRef: + userPass: + description: UserPass authenticates with Vault by passing username/password pair properties: - secretApiKeySecretRef: - description: The SecretAccessKey is used for authentication + path: + default: user + description: 'Path where the UserPassword authentication backend is mounted in Vault, e.g: "user"' + type: string + secretRef: + description: SecretRef to a key in a Secret resource containing password for the user used to authenticate with Vault using the UserPass authentication method properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4547,234 +7811,389 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + username: + description: Username is a user name used to authenticate using the UserPass Vault authentication method + type: string + required: + - path + - username type: object type: object - serviceUrl: - description: ServiceURL is the Endpoint URL that is specific to the Secrets Manager service instance + caBundle: + description: PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate Vault server certificate. + properties: + key: + description: The key where the CA certificate can be found in the Secret or ConfigMap. + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string + required: + - name + - type + type: object + forwardInconsistent: + description: ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header + type: boolean + namespace: + description: 'Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces' + type: string + path: + description: 'Path is the mount path of the Vault KV backend endpoint, e.g: "secret". The v2 KV secret engine version specific "/data" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.' + type: string + readYourWrites: + description: ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency + type: boolean + server: + description: 'Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".' + type: string + version: + default: v2 + description: Version is the Vault KV secret engine version. This can be either "v1" or "v2". Version defaults to "v2". + enum: + - v1 + - v2 type: string required: - auth + - server type: object - kubernetes: - description: Kubernetes configures this store to sync secrets using a Kubernetes cluster provider + webhook: + description: Webhook configures this store to sync secrets using a generic templated webhook + properties: + body: + description: Body + type: string + caBundle: + description: PEM encoded CA bundle used to validate webhook server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate webhook server certificate. + properties: + key: + description: The key the value inside of the provider type to use, only used with "Secret" type + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string + required: + - name + - type + type: object + headers: + additionalProperties: + type: string + description: Headers + type: object + method: + description: Webhook Method + type: string + result: + description: Result formatting + properties: + jsonPath: + description: Json path of return value + type: string + type: object + secrets: + description: Secrets to fill in templates These secrets will be passed to the templating function as key value pairs under the given name + items: + properties: + name: + description: Name of this secret in templates + type: string + secretRef: + description: Secret ref to fill in credentials + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + required: + - name + - secretRef + type: object + type: array + timeout: + description: Timeout + type: string + url: + description: Webhook url to call + type: string + required: + - result + - url + type: object + yandexcertificatemanager: + description: YandexCertificateManager configures this store to sync secrets using Yandex Certificate Manager provider properties: + apiEndpoint: + description: Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443') + type: string auth: - description: Auth configures how secret-manager authenticates with a Kubernetes instance. - maxProperties: 1 - minProperties: 1 + description: Auth defines the information necessary to authenticate against Yandex Certificate Manager properties: - cert: - description: has both clientCert and clientKey as secretKeySelector - properties: - clientCert: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - clientKey: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - type: object - serviceAccount: - description: points to a service account that should be used for authentication + authorizedKeySecretRef: + description: The authorized key used for authentication properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string name: - description: The name of the ServiceAccount resource being referred to. + description: The name of the Secret resource being referred to. type: string namespace: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string - required: - - name - type: object - token: - description: use static token to authenticate with - properties: - bearerToken: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object type: object type: object - remoteNamespace: - default: default - description: Remote namespace to fetch the secrets from - type: string - server: - description: configures the Kubernetes server Address. + caProvider: + description: The provider for the CA bundle to use to validate Yandex.Cloud server certificate. properties: - caBundle: - description: CABundle is a base64-encoded CA certificate - format: byte - type: string - caProvider: - description: 'see: https://external-secrets.io/v0.4.1/spec/#external-secrets.io/v1alpha1.CAProvider' + certSecretRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. properties: key: - description: The key where the CA certificate can be found in the Secret or ConfigMap. + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. type: string name: - description: The name of the object located at the provider type. + description: The name of the Secret resource being referred to. type: string namespace: - description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. - type: string - type: - description: The type of provider to use such as "Secret", or "ConfigMap". - enum: - - Secret - - ConfigMap + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string - required: - - name - - type type: object - url: - default: kubernetes.default - description: configures the Kubernetes server Address. - type: string type: object required: - auth type: object - onepassword: - description: OnePassword configures this store to sync secrets using the 1Password Cloud provider + yandexlockbox: + description: YandexLockbox configures this store to sync secrets using Yandex Lockbox provider properties: + apiEndpoint: + description: Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443') + type: string auth: - description: Auth defines the information necessary to authenticate against OnePassword Connect Server + description: Auth defines the information necessary to authenticate against Yandex Lockbox properties: - secretRef: - description: OnePasswordAuthSecretRef holds secret references for 1Password credentials. + authorizedKeySecretRef: + description: The authorized key used for authentication properties: - connectTokenSecretRef: - description: The ConnectToken is used for authentication to a 1Password Connect Server. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - required: - - connectTokenSecretRef + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string type: object - required: - - secretRef type: object - connectHost: - description: ConnectHost defines the OnePassword Connect Server to connect to - type: string - vaults: - additionalProperties: - type: integer - description: Vaults defines which OnePassword vaults to search in which order + caProvider: + description: The provider for the CA bundle to use to validate Yandex.Cloud server certificate. + properties: + certSecretRef: + description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object type: object required: - auth - - connectHost - - vaults type: object - oracle: - description: Oracle configures this store to sync secrets using Oracle Vault provider + type: object + refreshInterval: + description: Used to configure store refresh interval in seconds. Empty or 0 will default to the controller config. + type: integer + retrySettings: + description: Used to configure http retries if failed + properties: + maxRetries: + format: int32 + type: integer + retryInterval: + type: string + type: object + required: + - provider + type: object + status: + description: SecretStoreStatus defines the observed state of the SecretStore. + properties: + capabilities: + description: SecretStoreCapabilities defines the possible operations a SecretStore can do. + type: string + conditions: + items: + properties: + lastTransitionTime: + format: date-time + type: string + message: + type: string + reason: + type: string + status: + type: string + type: + type: string + required: + - status + - type + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} + conversion: + strategy: Webhook + webhook: + conversionReviewVersions: + - v1 + clientConfig: + service: + name: release-name-external-secrets-webhook + namespace: "default" + path: /convert +--- +# Source: external-secrets/templates/crds/vaultdynamicsecret.yaml +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.13.0 + name: vaultdynamicsecrets.generators.external-secrets.io +spec: + group: generators.external-secrets.io + names: + categories: + - vaultdynamicsecret + kind: VaultDynamicSecret + listKind: VaultDynamicSecretList + plural: vaultdynamicsecrets + shortNames: + - vaultdynamicsecret + singular: vaultdynamicsecret + scope: Namespaced + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + properties: + controller: + description: 'Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters VDS based on this property' + type: string + method: + description: Vault API method to use (GET/POST/other) + type: string + parameters: + description: Parameters to pass to Vault write (for non-GET methods) + x-kubernetes-preserve-unknown-fields: true + path: + description: Vault path to obtain the dynamic secret from + type: string + provider: + description: Vault provider common spec + properties: + auth: + description: Auth configures how secret-manager authenticates with the Vault server. properties: - auth: - description: Auth configures how secret-manager authenticates with the Oracle Vault. If empty, use the instance principal, otherwise the user credentials specified in Auth. + appRole: + description: AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. properties: + path: + default: approle + description: 'Path where the App Role authentication backend is mounted in Vault, e.g: "approle"' + type: string + roleId: + description: RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. + type: string + roleRef: + description: Reference to a key in a Secret that contains the App Role ID used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role id. + properties: + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object secretRef: - description: SecretRef to pass through sensitive information. + description: Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret. properties: - fingerprint: - description: Fingerprint is the fingerprint of the API private key. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - privatekey: - description: PrivateKey is the user's API Signing Key in PEM format, used for authentication. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - required: - - fingerprint - - privatekey + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string type: object - tenancy: - description: Tenancy is the tenancy OCID where user is located. - type: string - user: - description: User is an access OCID specific to the account. - type: string required: + - path - secretRef - - tenancy - - user type: object - region: - description: Region is the region where vault is located. - type: string - vault: - description: Vault is the vault's OCID of the specific vault where secret is located. - type: string - required: - - region - - vault - type: object - senhasegura: - description: Senhasegura configures this store to sync secrets using senhasegura provider - properties: - auth: - description: Auth defines parameters to authenticate in senhasegura + cert: + description: Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method properties: - clientId: - type: string - clientSecretSecretRef: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + clientCert: + description: ClientCert is a certificate to authenticate using the Cert Vault authentication method properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4786,64 +8205,61 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - required: - - clientId - - clientSecretSecretRef - type: object - ignoreSslCertificate: - default: false - description: IgnoreSslCertificate defines if SSL certificate must be ignored - type: boolean - module: - description: Module defines which senhasegura module should be used to get secrets - type: string - url: - description: URL of senhasegura - type: string - required: - - auth - - module - - url - type: object - vault: - description: Vault configures this store to sync secrets using Hashi provider - properties: - auth: - description: Auth configures how secret-manager authenticates with the Vault server. - properties: - appRole: - description: AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource. + secretRef: + description: SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method properties: - path: - default: approle - description: 'Path where the App Role authentication backend is mounted in Vault, e.g: "approle"' + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. type: string - roleId: - description: RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault. + name: + description: The name of the Secret resource being referred to. type: string - secretRef: - description: Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret. + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + type: object + iam: + description: Iam authenticates with vault by passing a special AWS request signed with AWS IAM credentials AWS IAM authentication method + properties: + externalID: + description: AWS External ID set on assumed IAM roles + type: string + jwt: + description: Specify a service account with IRSA enabled + properties: + serviceAccountRef: + description: A reference to a ServiceAccount resource. properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: - description: The name of the Secret resource being referred to. + description: The name of the ServiceAccount resource being referred to. type: string namespace: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string + required: + - name type: object - required: - - path - - roleId - - secretRef type: object - cert: - description: Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method + path: + description: 'Path where the AWS auth method is enabled in Vault, e.g: "aws"' + type: string + region: + description: AWS region + type: string + role: + description: This is the AWS role to be assumed before talking to vault + type: string + secretRef: + description: Specify credentials in a Secret object properties: - clientCert: - description: ClientCert is a certificate to authenticate using the Cert Vault authentication method + accessKeyIDSecretRef: + description: The AccessKeyID is used for authentication properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4855,8 +8271,8 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - secretRef: - description: SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method + secretAccessKeySecretRef: + description: The SecretAccessKey is used for authentication properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4868,46 +8284,8 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - type: object - jwt: - description: Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method - properties: - kubernetesServiceAccountToken: - description: Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API. - properties: - audiences: - description: Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. - items: - type: string - type: array - expirationSeconds: - description: Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to 10 minutes. - format: int64 - type: integer - serviceAccountRef: - description: Service account field containing the name of a kubernetes ServiceAccount. - properties: - name: - description: The name of the ServiceAccount resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - required: - - name - type: object - required: - - serviceAccountRef - type: object - path: - default: jwt - description: 'Path where the JWT authentication backend is mounted in Vault, e.g: "jwt"' - type: string - role: - description: Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method - type: string - secretRef: - description: Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method. + sessionTokenSecretRef: + description: 'The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html' properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -4919,35 +8297,39 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - required: - - path type: object - kubernetes: - description: Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. + vaultAwsIamServerID: + description: 'X-Vault-AWS-IAM-Server-ID is an additional header used by Vault IAM auth method to mitigate against different types of replay attacks. More details here: https://developer.hashicorp.com/vault/docs/auth/aws' + type: string + vaultRole: + description: Vault Role. In vault, a role describes an identity with a set of permissions, groups, or policies you want to attach a user of the secrets engine + type: string + required: + - vaultRole + type: object + jwt: + description: Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method + properties: + kubernetesServiceAccountToken: + description: Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API. properties: - mountPath: - default: kubernetes - description: 'Path where the Kubernetes authentication backend is mounted in Vault, e.g: "kubernetes"' - type: string - role: - description: A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies. - type: string - secretRef: - description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object + audiences: + description: 'Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. Deprecated: use serviceAccountRef.Audiences instead' + items: + type: string + type: array + expirationSeconds: + description: 'Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Deprecated: this will be removed in the future. Defaults to 10 minutes.' + format: int64 + type: integer serviceAccountRef: - description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead. + description: Service account field containing the name of a kubernetes ServiceAccount. properties: + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: description: The name of the ServiceAccount resource being referred to. type: string @@ -4956,40 +8338,19 @@ spec: type: string required: - name - type: object - required: - - mountPath - - role - type: object - ldap: - description: Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method - properties: - path: - default: ldap - description: 'Path where the LDAP authentication backend is mounted in Vault, e.g: "ldap"' - type: string - secretRef: - description: SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - username: - description: Username is a LDAP user name used to authenticate using the LDAP Vault authentication method - type: string + type: object required: - - path - - username + - serviceAccountRef type: object - tokenSecretRef: - description: TokenSecretRef authenticates with Vault by presenting a token. + path: + default: jwt + description: 'Path where the JWT authentication backend is mounted in Vault, e.g: "jwt"' + type: string + role: + description: Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method + type: string + secretRef: + description: Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -5001,152 +8362,21 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - type: object - caBundle: - description: PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. - format: byte - type: string - caProvider: - description: The provider for the CA bundle to use to validate Vault server certificate. - properties: - key: - description: The key where the CA certificate can be found in the Secret or ConfigMap. - type: string - name: - description: The name of the object located at the provider type. - type: string - namespace: - description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. - type: string - type: - description: The type of provider to use such as "Secret", or "ConfigMap". - enum: - - Secret - - ConfigMap - type: string required: - - name - - type + - path type: object - forwardInconsistent: - description: ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header - type: boolean - namespace: - description: 'Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces' - type: string - path: - description: 'Path is the mount path of the Vault KV backend endpoint, e.g: "secret". The v2 KV secret engine version specific "/data" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.' - type: string - readYourWrites: - description: ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency - type: boolean - server: - description: 'Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".' - type: string - version: - default: v2 - description: Version is the Vault KV secret engine version. This can be either "v1" or "v2". Version defaults to "v2". - enum: - - v1 - - v2 - type: string - required: - - auth - - server - type: object - webhook: - description: Webhook configures this store to sync secrets using a generic templated webhook - properties: - body: - description: Body - type: string - caBundle: - description: PEM encoded CA bundle used to validate webhook server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. - format: byte - type: string - caProvider: - description: The provider for the CA bundle to use to validate webhook server certificate. + kubernetes: + description: Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server. properties: - key: - description: The key the value inside of the provider type to use, only used with "Secret" type - type: string - name: - description: The name of the object located at the provider type. - type: string - namespace: - description: The namespace the Provider type is in. + mountPath: + default: kubernetes + description: 'Path where the Kubernetes authentication backend is mounted in Vault, e.g: "kubernetes"' type: string - type: - description: The type of provider to use such as "Secret", or "ConfigMap". - enum: - - Secret - - ConfigMap - type: string - required: - - name - - type - type: object - headers: - additionalProperties: - type: string - description: Headers - type: object - method: - description: Webhook Method - type: string - result: - description: Result formatting - properties: - jsonPath: - description: Json path of return value + role: + description: A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies. type: string - type: object - secrets: - description: Secrets to fill in templates These secrets will be passed to the templating function as key value pairs under the given name - items: - properties: - name: - description: Name of this secret in templates - type: string - secretRef: - description: Secret ref to fill in credentials - properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string - name: - description: The name of the Secret resource being referred to. - type: string - namespace: - description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. - type: string - type: object - required: - - name - - secretRef - type: object - type: array - timeout: - description: Timeout - type: string - url: - description: Webhook url to call - type: string - required: - - result - - url - type: object - yandexcertificatemanager: - description: YandexCertificateManager configures this store to sync secrets using Yandex Certificate Manager provider - properties: - apiEndpoint: - description: Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443') - type: string - auth: - description: Auth defines the information necessary to authenticate against Yandex Certificate Manager - properties: - authorizedKeySecretRef: - description: The authorized key used for authentication + secretRef: + description: Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used. properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -5158,38 +8388,36 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object - type: object - caProvider: - description: The provider for the CA bundle to use to validate Yandex.Cloud server certificate. - properties: - certSecretRef: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + serviceAccountRef: + description: Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead. properties: - key: - description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. - type: string + audiences: + description: Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list + items: + type: string + type: array name: - description: The name of the Secret resource being referred to. + description: The name of the ServiceAccount resource being referred to. type: string namespace: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string + required: + - name type: object + required: + - mountPath + - role type: object - required: - - auth - type: object - yandexlockbox: - description: YandexLockbox configures this store to sync secrets using Yandex Lockbox provider - properties: - apiEndpoint: - description: Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443') - type: string - auth: - description: Auth defines the information necessary to authenticate against Yandex Lockbox + ldap: + description: Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method properties: - authorizedKeySecretRef: - description: The authorized key used for authentication + path: + default: ldap + description: 'Path where the LDAP authentication backend is mounted in Vault, e.g: "ldap"' + type: string + secretRef: + description: SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -5201,12 +8429,35 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + username: + description: Username is a LDAP user name used to authenticate using the LDAP Vault authentication method + type: string + required: + - path + - username type: object - caProvider: - description: The provider for the CA bundle to use to validate Yandex.Cloud server certificate. + tokenSecretRef: + description: TokenSecretRef authenticates with Vault by presenting a token. properties: - certSecretRef: - description: A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field. + key: + description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. + type: string + name: + description: The name of the Secret resource being referred to. + type: string + namespace: + description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. + type: string + type: object + userPass: + description: UserPass authenticates with Vault by passing username/password pair + properties: + path: + default: user + description: 'Path where the UserPassword authentication backend is mounted in Vault, e.g: "user"' + type: string + secretRef: + description: SecretRef to a key in a Secret resource containing password for the user used to authenticate with Vault using the UserPass authentication method properties: key: description: The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required. @@ -5218,49 +8469,77 @@ spec: description: Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent. type: string type: object + username: + description: Username is a user name used to authenticate using the UserPass Vault authentication method + type: string + required: + - path + - username type: object + type: object + caBundle: + description: PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection. + format: byte + type: string + caProvider: + description: The provider for the CA bundle to use to validate Vault server certificate. + properties: + key: + description: The key where the CA certificate can be found in the Secret or ConfigMap. + type: string + name: + description: The name of the object located at the provider type. + type: string + namespace: + description: The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore. + type: string + type: + description: The type of provider to use such as "Secret", or "ConfigMap". + enum: + - Secret + - ConfigMap + type: string required: - - auth + - name + - type type: object - type: object - refreshInterval: - description: Used to configure store refresh interval in seconds. Empty or 0 will default to the controller config. - type: integer - retrySettings: - description: Used to configure http retries if failed - properties: - maxRetries: - format: int32 - type: integer - retryInterval: + forwardInconsistent: + description: ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header + type: boolean + namespace: + description: 'Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: "ns1". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces' + type: string + path: + description: 'Path is the mount path of the Vault KV backend endpoint, e.g: "secret". The v2 KV secret engine version specific "/data" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.' + type: string + readYourWrites: + description: ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency + type: boolean + server: + description: 'Server is the connection address for the Vault server, e.g: "https://vault.example.com:8200".' + type: string + version: + default: v2 + description: Version is the Vault KV secret engine version. This can be either "v1" or "v2". Version defaults to "v2". + enum: + - v1 + - v2 type: string + required: + - auth + - server type: object + resultType: + default: Data + description: Result type defines which data is returned from the generator. By default it is the "data" section of the Vault API response. When using e.g. /auth/token/create the "data" section is empty but the "auth" section contains the generated token. Please refer to the vault docs regarding the result data structure. + enum: + - Data + - Auth + type: string required: + - path - provider type: object - status: - description: SecretStoreStatus defines the observed state of the SecretStore. - properties: - conditions: - items: - properties: - lastTransitionTime: - format: date-time - type: string - message: - type: string - reason: - type: string - status: - type: string - type: - type: string - required: - - status - - type - type: object - type: array - type: object type: object served: true storage: true @@ -5273,6 +8552,6 @@ spec: - v1 clientConfig: service: - name: external-secrets-webhook - namespace: default + name: release-name-external-secrets-webhook + namespace: "default" path: /convert diff --git a/.codegen/secrets/external-secrets/rbac.yaml b/.codegen/secrets/external-secrets/rbac.yaml index 216370b..3732fb0 100644 --- a/.codegen/secrets/external-secrets/rbac.yaml +++ b/.codegen/secrets/external-secrets/rbac.yaml @@ -91,6 +91,15 @@ rules: - watch - update - patch + - apiGroups: + - "coordination.k8s.io" + resources: + - "leases" + verbs: + - "get" + - "create" + - "update" + - "patch" --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole @@ -110,6 +119,7 @@ rules: - clustersecretstores - externalsecrets - clusterexternalsecrets + - pushsecrets verbs: - get - list @@ -129,9 +139,25 @@ rules: - clusterexternalsecrets - clusterexternalsecrets/status - clusterexternalsecrets/finalizers + - pushsecrets + - pushsecrets/status + - pushsecrets/finalizers verbs: - update - patch + - apiGroups: + - generators.external-secrets.io + resources: + - acraccesstokens + - ecrauthorizationtokens + - fakes + - gcraccesstokens + - passwords + - vaultdynamicsecrets + verbs: + - get + - list + - watch - apiGroups: - "" resources: @@ -181,6 +207,7 @@ rules: verbs: - create - update + - delete --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole @@ -202,6 +229,20 @@ rules: - externalsecrets - secretstores - clustersecretstores + - pushsecrets + verbs: + - get + - watch + - list + - apiGroups: + - generators.external-secrets.io + resources: + - acraccesstokens + - ecrauthorizationtokens + - fakes + - gcraccesstokens + - passwords + - vaultdynamicsecrets verbs: - get - watch @@ -232,6 +273,21 @@ rules: - deletecollection - patch - update + - apiGroups: + - generators.external-secrets.io + resources: + - acraccesstokens + - ecrauthorizationtokens + - fakes + - gcraccesstokens + - passwords + - vaultdynamicsecrets + verbs: + - create + - delete + - deletecollection + - patch + - update --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding diff --git a/.codegen/workload.yaml b/.codegen/workload.yaml index 976dd71..7a2bafb 100644 --- a/.codegen/workload.yaml +++ b/.codegen/workload.yaml @@ -16,7 +16,7 @@ spec: componentFiles: - certificates/cert-manager/workload.yaml - gateway/external-dns/workload.yaml - # - secrets/external-secrets/workload.yaml + - secrets/external-secrets/workload.yaml # - secrets/reloader/workload.yaml - gateway/gloo-edge/workload.yaml resources: diff --git a/apis/certificates/certmanager.go b/apis/certificates/certmanager.go index 40829bf..f9ce66d 100644 --- a/apis/certificates/certmanager.go +++ b/apis/certificates/certmanager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/certmanager_latest.go b/apis/certificates/certmanager_latest.go index e95b84f..5ce49d6 100644 --- a/apis/certificates/certmanager_latest.go +++ b/apis/certificates/certmanager_latest.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/constants/names.go b/apis/certificates/v1alpha1/certmanager/constants/names.go index d8f791d..eb38326 100644 --- a/apis/certificates/v1alpha1/certmanager/constants/names.go +++ b/apis/certificates/v1alpha1/certmanager/constants/names.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/crds.go b/apis/certificates/v1alpha1/certmanager/crds.go index 3a4c3b9..665532d 100644 --- a/apis/certificates/v1alpha1/certmanager/crds.go +++ b/apis/certificates/v1alpha1/certmanager/crds.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/deployment.go b/apis/certificates/v1alpha1/certmanager/deployment.go index 88a0d0c..11f27c7 100644 --- a/apis/certificates/v1alpha1/certmanager/deployment.go +++ b/apis/certificates/v1alpha1/certmanager/deployment.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/issuer.go b/apis/certificates/v1alpha1/certmanager/issuer.go index f78d4d2..cc37ad0 100644 --- a/apis/certificates/v1alpha1/certmanager/issuer.go +++ b/apis/certificates/v1alpha1/certmanager/issuer.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_issuer_letsencrypt_production.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_issuer_letsencrypt_production.go index a3a2665..6ba8b73 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_issuer_letsencrypt_production.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_issuer_letsencrypt_production.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_issuer_letsencrypt_staging.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_issuer_letsencrypt_staging.go index 8ea2909..bc1cdc1 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_issuer_letsencrypt_staging.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_issuer_letsencrypt_staging.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_cainjector.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_cainjector.go index 42d3afe..37b2a97 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_cainjector.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_cainjector.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_approve_cert_manager_io.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_approve_cert_manager_io.go index 5a4befc..19575db 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_approve_cert_manager_io.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_approve_cert_manager_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_certificates.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_certificates.go index 885cb92..c6b570e 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_certificates.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_certificates.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_certificatesigningrequests.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_certificatesigningrequests.go index 630f561..6563d47 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_certificatesigningrequests.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_certificatesigningrequests.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_challenges.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_challenges.go index afeef87..3a2bebd 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_challenges.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_challenges.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_clusterissuers.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_clusterissuers.go index f38cdd0..47eaa76 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_clusterissuers.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_clusterissuers.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_ingress_shim.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_ingress_shim.go index c94cd58..a700711 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_ingress_shim.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_ingress_shim.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_issuers.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_issuers.go index ce3577c..b4fe6bc 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_issuers.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_issuers.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_orders.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_orders.go index b8f5e70..423df35 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_orders.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_controller_orders.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_webhook_subjectaccessreviews.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_webhook_subjectaccessreviews.go index 173487a..b43fa94 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_webhook_subjectaccessreviews.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_binding_cert_manager_webhook_subjectaccessreviews.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_cainjector.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_cainjector.go index 23a0d1e..7866028 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_cainjector.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_cainjector.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_approve_cert_manager_io.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_approve_cert_manager_io.go index a4f8f53..df50346 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_approve_cert_manager_io.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_approve_cert_manager_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_certificates.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_certificates.go index 1253eab..32da9fe 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_certificates.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_certificates.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_certificatesigningrequests.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_certificatesigningrequests.go index 467f85a..c8e3b82 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_certificatesigningrequests.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_certificatesigningrequests.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_challenges.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_challenges.go index 5c9e8d2..f6b1833 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_challenges.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_challenges.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_clusterissuers.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_clusterissuers.go index 4b745a6..ab471a9 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_clusterissuers.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_clusterissuers.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_ingress_shim.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_ingress_shim.go index ba565a8..5727197 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_ingress_shim.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_ingress_shim.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_issuers.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_issuers.go index 7dfa100..9e81122 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_issuers.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_issuers.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_orders.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_orders.go index b77e82e..f912118 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_orders.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_controller_orders.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_edit.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_edit.go index f0a7c88..100d297 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_edit.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_edit.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_view.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_view.go index 54570a3..50f7b00 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_view.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_view.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_webhook_subjectaccessreviews.go b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_webhook_subjectaccessreviews.go index 677fdb5..86301c7 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_webhook_subjectaccessreviews.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/cluster_role_cert_manager_webhook_subjectaccessreviews.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/crd_certificaterequests_cert_manager_io.go b/apis/certificates/v1alpha1/certmanager/mutate/crd_certificaterequests_cert_manager_io.go index 611df19..0d79a6c 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/crd_certificaterequests_cert_manager_io.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/crd_certificaterequests_cert_manager_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/crd_certificates_cert_manager_io.go b/apis/certificates/v1alpha1/certmanager/mutate/crd_certificates_cert_manager_io.go index a2d558f..082e3b8 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/crd_certificates_cert_manager_io.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/crd_certificates_cert_manager_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/crd_challenges_acme_cert_manager_io.go b/apis/certificates/v1alpha1/certmanager/mutate/crd_challenges_acme_cert_manager_io.go index 9e7e207..538eee6 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/crd_challenges_acme_cert_manager_io.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/crd_challenges_acme_cert_manager_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/crd_clusterissuers_cert_manager_io.go b/apis/certificates/v1alpha1/certmanager/mutate/crd_clusterissuers_cert_manager_io.go index 25df8a5..76cb3e3 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/crd_clusterissuers_cert_manager_io.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/crd_clusterissuers_cert_manager_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/crd_issuers_cert_manager_io.go b/apis/certificates/v1alpha1/certmanager/mutate/crd_issuers_cert_manager_io.go index 9f13163..c26aac0 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/crd_issuers_cert_manager_io.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/crd_issuers_cert_manager_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/crd_orders_acme_cert_manager_io.go b/apis/certificates/v1alpha1/certmanager/mutate/crd_orders_acme_cert_manager_io.go index 47701fd..7863cbb 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/crd_orders_acme_cert_manager_io.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/crd_orders_acme_cert_manager_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager.go b/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager.go index 5336cc8..a1b2fdc 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager_cainjector.go b/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager_cainjector.go index 5d452e0..8b5a3ba 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager_cainjector.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager_cainjector.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager_webhook.go b/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager_webhook.go index ddf007d..e20cde8 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager_webhook.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/deployment_namespace_cert_manager_webhook.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/mutating_webhook_cert_manager_webhook.go b/apis/certificates/v1alpha1/certmanager/mutate/mutating_webhook_cert_manager_webhook.go index c22fe2a..95f5deb 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/mutating_webhook_cert_manager_webhook.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/mutating_webhook_cert_manager_webhook.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/namespace_namespace.go b/apis/certificates/v1alpha1/certmanager/mutate/namespace_namespace.go index 7c807fe..8791f46 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/namespace_namespace.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/namespace_namespace.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_cainjector_leaderelection.go b/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_cainjector_leaderelection.go index 5f87210..0064f9f 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_cainjector_leaderelection.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_cainjector_leaderelection.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_leaderelection.go b/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_leaderelection.go index 71e0997..c680d0f 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_leaderelection.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_leaderelection.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_webhook_dynamic_serving.go b/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_webhook_dynamic_serving.go index 611218c..b589b46 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_webhook_dynamic_serving.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/role_binding_namespace_cert_manager_webhook_dynamic_serving.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_cainjector_leaderelection.go b/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_cainjector_leaderelection.go index 273f2f4..a43916a 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_cainjector_leaderelection.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_cainjector_leaderelection.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_leaderelection.go b/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_leaderelection.go index eef4a61..3ee65b7 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_leaderelection.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_leaderelection.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_webhook_dynamic_serving.go b/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_webhook_dynamic_serving.go index 70dee75..7b80760 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_webhook_dynamic_serving.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/role_namespace_cert_manager_webhook_dynamic_serving.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager.go b/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager.go index 5369809..d35ee04 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager_cainjector.go b/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager_cainjector.go index a7935a8..d11256b 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager_cainjector.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager_cainjector.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager_webhook.go b/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager_webhook.go index 803e695..3c6f3bc 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager_webhook.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/service_account_namespace_cert_manager_webhook.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/service_namespace_cert_manager.go b/apis/certificates/v1alpha1/certmanager/mutate/service_namespace_cert_manager.go index 463d312..46b3823 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/service_namespace_cert_manager.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/service_namespace_cert_manager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/service_namespace_cert_manager_webhook.go b/apis/certificates/v1alpha1/certmanager/mutate/service_namespace_cert_manager_webhook.go index c6d527a..3519caa 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/service_namespace_cert_manager_webhook.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/service_namespace_cert_manager_webhook.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/mutate/validating_webhook_cert_manager_webhook.go b/apis/certificates/v1alpha1/certmanager/mutate/validating_webhook_cert_manager_webhook.go index d030e65..efddf7d 100644 --- a/apis/certificates/v1alpha1/certmanager/mutate/validating_webhook_cert_manager_webhook.go +++ b/apis/certificates/v1alpha1/certmanager/mutate/validating_webhook_cert_manager_webhook.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/namespace.go b/apis/certificates/v1alpha1/certmanager/namespace.go index 85c9355..779b2ad 100644 --- a/apis/certificates/v1alpha1/certmanager/namespace.go +++ b/apis/certificates/v1alpha1/certmanager/namespace.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/rbac.go b/apis/certificates/v1alpha1/certmanager/rbac.go index e291b66..3a504cc 100644 --- a/apis/certificates/v1alpha1/certmanager/rbac.go +++ b/apis/certificates/v1alpha1/certmanager/rbac.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/resources.go b/apis/certificates/v1alpha1/certmanager/resources.go index 879827c..72c8440 100644 --- a/apis/certificates/v1alpha1/certmanager/resources.go +++ b/apis/certificates/v1alpha1/certmanager/resources.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/service.go b/apis/certificates/v1alpha1/certmanager/service.go index 8914047..7f4b083 100644 --- a/apis/certificates/v1alpha1/certmanager/service.go +++ b/apis/certificates/v1alpha1/certmanager/service.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager/webhook.go b/apis/certificates/v1alpha1/certmanager/webhook.go index 681dfda..a0acd10 100644 --- a/apis/certificates/v1alpha1/certmanager/webhook.go +++ b/apis/certificates/v1alpha1/certmanager/webhook.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/certmanager_types.go b/apis/certificates/v1alpha1/certmanager_types.go index 49f9d95..d0201ae 100644 --- a/apis/certificates/v1alpha1/certmanager_types.go +++ b/apis/certificates/v1alpha1/certmanager_types.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/groupversion_info.go b/apis/certificates/v1alpha1/groupversion_info.go index f68e394..51bff67 100644 --- a/apis/certificates/v1alpha1/groupversion_info.go +++ b/apis/certificates/v1alpha1/groupversion_info.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/certificates/v1alpha1/zz_generated.deepcopy.go b/apis/certificates/v1alpha1/zz_generated.deepcopy.go index e7f7f82..f6a862a 100644 --- a/apis/certificates/v1alpha1/zz_generated.deepcopy.go +++ b/apis/certificates/v1alpha1/zz_generated.deepcopy.go @@ -2,7 +2,7 @@ // +build !ignore_autogenerated /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/externaldns.go b/apis/gateway/externaldns.go index 489be09..e58ca58 100644 --- a/apis/gateway/externaldns.go +++ b/apis/gateway/externaldns.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/externaldns_latest.go b/apis/gateway/externaldns_latest.go index 6549537..670c510 100644 --- a/apis/gateway/externaldns_latest.go +++ b/apis/gateway/externaldns_latest.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/glooedge.go b/apis/gateway/glooedge.go index 414bfad..c1aca87 100644 --- a/apis/gateway/glooedge.go +++ b/apis/gateway/glooedge.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/glooedge_latest.go b/apis/gateway/glooedge_latest.go index da8a5e2..1f7f5f2 100644 --- a/apis/gateway/glooedge_latest.go +++ b/apis/gateway/glooedge_latest.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/config_active_directory.go b/apis/gateway/v1alpha1/externaldns/config_active_directory.go index 91f9fcc..33dd16f 100644 --- a/apis/gateway/v1alpha1/externaldns/config_active_directory.go +++ b/apis/gateway/v1alpha1/externaldns/config_active_directory.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/config_google.go b/apis/gateway/v1alpha1/externaldns/config_google.go index 9dcec3b..d1e0ed2 100644 --- a/apis/gateway/v1alpha1/externaldns/config_google.go +++ b/apis/gateway/v1alpha1/externaldns/config_google.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/config_route53.go b/apis/gateway/v1alpha1/externaldns/config_route53.go index 2a6b824..73dff1e 100644 --- a/apis/gateway/v1alpha1/externaldns/config_route53.go +++ b/apis/gateway/v1alpha1/externaldns/config_route53.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/constants/names.go b/apis/gateway/v1alpha1/externaldns/constants/names.go index db4e4ba..f74a1cc 100644 --- a/apis/gateway/v1alpha1/externaldns/constants/names.go +++ b/apis/gateway/v1alpha1/externaldns/constants/names.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/deployment_active_directory.go b/apis/gateway/v1alpha1/externaldns/deployment_active_directory.go index a4770f4..45f53a4 100644 --- a/apis/gateway/v1alpha1/externaldns/deployment_active_directory.go +++ b/apis/gateway/v1alpha1/externaldns/deployment_active_directory.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/deployment_google.go b/apis/gateway/v1alpha1/externaldns/deployment_google.go index e62321d..cf52c7c 100644 --- a/apis/gateway/v1alpha1/externaldns/deployment_google.go +++ b/apis/gateway/v1alpha1/externaldns/deployment_google.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/deployment_route53.go b/apis/gateway/v1alpha1/externaldns/deployment_route53.go index 20a2ca0..5e195f7 100644 --- a/apis/gateway/v1alpha1/externaldns/deployment_route53.go +++ b/apis/gateway/v1alpha1/externaldns/deployment_route53.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/cluster_role_binding_external_dns_viewer.go b/apis/gateway/v1alpha1/externaldns/mutate/cluster_role_binding_external_dns_viewer.go index 2961bd3..56794c8 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/cluster_role_binding_external_dns_viewer.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/cluster_role_binding_external_dns_viewer.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/cluster_role_namespace_external_dns.go b/apis/gateway/v1alpha1/externaldns/mutate/cluster_role_namespace_external_dns.go index 1adcf44..7db9c43 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/cluster_role_namespace_external_dns.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/cluster_role_namespace_external_dns.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/config_map_namespace_external_dns_active_directory_kerberos.go b/apis/gateway/v1alpha1/externaldns/mutate/config_map_namespace_external_dns_active_directory_kerberos.go index afc851a..92e44a1 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/config_map_namespace_external_dns_active_directory_kerberos.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/config_map_namespace_external_dns_active_directory_kerberos.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/deployment_namespace_external_dns_active_directory.go b/apis/gateway/v1alpha1/externaldns/mutate/deployment_namespace_external_dns_active_directory.go index d5336cc..4cd5017 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/deployment_namespace_external_dns_active_directory.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/deployment_namespace_external_dns_active_directory.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/namespace_namespace.go b/apis/gateway/v1alpha1/externaldns/mutate/namespace_namespace.go index 41b6f22..123c0a6 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/namespace_namespace.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/namespace_namespace.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_active_directory.go b/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_active_directory.go index 7bbe1dc..8114d6a 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_active_directory.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_active_directory.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_google.go b/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_google.go index 089bc69..7b650a6 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_google.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_google.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_route_US.go b/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_route_US.go index 2eb98ad..03ef338 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_route_US.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/secret_namespace_external_dns_route_US.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/mutate/service_account_namespace_service_account_name.go b/apis/gateway/v1alpha1/externaldns/mutate/service_account_namespace_service_account_name.go index 2d8e5f4..e329aaf 100644 --- a/apis/gateway/v1alpha1/externaldns/mutate/service_account_namespace_service_account_name.go +++ b/apis/gateway/v1alpha1/externaldns/mutate/service_account_namespace_service_account_name.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/namespace.go b/apis/gateway/v1alpha1/externaldns/namespace.go index 0f81de9..b450bf5 100644 --- a/apis/gateway/v1alpha1/externaldns/namespace.go +++ b/apis/gateway/v1alpha1/externaldns/namespace.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/rbac.go b/apis/gateway/v1alpha1/externaldns/rbac.go index 6b984b0..2ea4f16 100644 --- a/apis/gateway/v1alpha1/externaldns/rbac.go +++ b/apis/gateway/v1alpha1/externaldns/rbac.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/externaldns/resources.go b/apis/gateway/v1alpha1/externaldns/resources.go index 6d5a48e..df5875b 100644 --- a/apis/gateway/v1alpha1/externaldns/resources.go +++ b/apis/gateway/v1alpha1/externaldns/resources.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/certificate.go b/apis/gateway/v1alpha1/glooedge/certificate.go index d30b4ca..900a1ab 100644 --- a/apis/gateway/v1alpha1/glooedge/certificate.go +++ b/apis/gateway/v1alpha1/glooedge/certificate.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/clusterissuer.go b/apis/gateway/v1alpha1/glooedge/clusterissuer.go index 994a75e..44a9cd6 100644 --- a/apis/gateway/v1alpha1/glooedge/clusterissuer.go +++ b/apis/gateway/v1alpha1/glooedge/clusterissuer.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/config.go b/apis/gateway/v1alpha1/glooedge/config.go index 7701cf1..6f6a2a7 100644 --- a/apis/gateway/v1alpha1/glooedge/config.go +++ b/apis/gateway/v1alpha1/glooedge/config.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/constants/names.go b/apis/gateway/v1alpha1/glooedge/constants/names.go index afa087a..882b521 100644 --- a/apis/gateway/v1alpha1/glooedge/constants/names.go +++ b/apis/gateway/v1alpha1/glooedge/constants/names.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/crds.go b/apis/gateway/v1alpha1/glooedge/crds.go index d2185c1..ba3388f 100644 --- a/apis/gateway/v1alpha1/glooedge/crds.go +++ b/apis/gateway/v1alpha1/glooedge/crds.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/deployment.go b/apis/gateway/v1alpha1/glooedge/deployment.go index 749c660..6db72c3 100644 --- a/apis/gateway/v1alpha1/glooedge/deployment.go +++ b/apis/gateway/v1alpha1/glooedge/deployment.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/gateway.go b/apis/gateway/v1alpha1/glooedge/gateway.go index 338afa1..b1bff1a 100644 --- a/apis/gateway/v1alpha1/glooedge/gateway.go +++ b/apis/gateway/v1alpha1/glooedge/gateway.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/issuer.go b/apis/gateway/v1alpha1/glooedge/issuer.go index 7789ee3..52e6f18 100644 --- a/apis/gateway/v1alpha1/glooedge/issuer.go +++ b/apis/gateway/v1alpha1/glooedge/issuer.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cert_namespace_certificate_authority.go b/apis/gateway/v1alpha1/glooedge/mutate/cert_namespace_certificate_authority.go index ca47dc2..d5bbf50 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cert_namespace_certificate_authority.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cert_namespace_certificate_authority.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_issuer_self_signed.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_issuer_self_signed.go index 9c06ad1..b08f244 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_issuer_self_signed.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_issuer_self_signed.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gateway_resource_reader_binding_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gateway_resource_reader_binding_default.go index 9f35f4d..b762014 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gateway_resource_reader_binding_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gateway_resource_reader_binding_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_gateway_secret_create_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_gateway_secret_create_default.go index 884667c..54ce987 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_gateway_secret_create_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_gateway_secret_create_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_gateway_vwc_update_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_gateway_vwc_update_default.go index ebc9ba4..8dc55f4 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_gateway_vwc_update_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_gateway_vwc_update_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_graphqlapi_mutator_binding_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_graphqlapi_mutator_binding_default.go index 6170b9e..dbc74d2 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_graphqlapi_mutator_binding_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_graphqlapi_mutator_binding_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_resource_mutator_binding_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_resource_mutator_binding_default.go index 38d2a16..258eff9 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_resource_mutator_binding_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_resource_mutator_binding_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_resource_reader_binding_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_resource_reader_binding_default.go index 32ddd53..d8e1b90 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_resource_reader_binding_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_resource_reader_binding_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_upstream_mutator_binding_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_upstream_mutator_binding_default.go index 29213d7..cf10460 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_upstream_mutator_binding_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_gloo_upstream_mutator_binding_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_kube_leader_election_binding_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_kube_leader_election_binding_default.go index cbf1560..bfae756 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_kube_leader_election_binding_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_kube_leader_election_binding_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_kube_resource_watcher_binding_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_kube_resource_watcher_binding_default.go index 9d26916..6e23f0a 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_kube_resource_watcher_binding_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_kube_resource_watcher_binding_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_settings_user_binding_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_settings_user_binding_default.go index 00fc256..7f0bdb4 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_settings_user_binding_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_binding_settings_user_binding_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gateway_resource_reader_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gateway_resource_reader_default.go index 65ef625..0a5137f 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gateway_resource_reader_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gateway_resource_reader_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_gateway_secret_create_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_gateway_secret_create_default.go index 0565170..3602635 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_gateway_secret_create_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_gateway_secret_create_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_gateway_vwc_update_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_gateway_vwc_update_default.go index ea5f10d..e46bce6 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_gateway_vwc_update_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_gateway_vwc_update_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_graphqlapi_mutator_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_graphqlapi_mutator_default.go index 598ad64..806db66 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_graphqlapi_mutator_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_graphqlapi_mutator_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_resource_mutator_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_resource_mutator_default.go index 0850f34..9233fb0 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_resource_mutator_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_resource_mutator_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_resource_reader_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_resource_reader_default.go index b0b7936..fc56326 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_resource_reader_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_resource_reader_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_upstream_mutator_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_upstream_mutator_default.go index 1110b7d..8421bf8 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_upstream_mutator_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_gloo_upstream_mutator_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_kube_leader_election_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_kube_leader_election_default.go index 0cf1898..c79f3db 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_kube_leader_election_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_kube_leader_election_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_kube_resource_watcher_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_kube_resource_watcher_default.go index 29df715..de8d71d 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_kube_resource_watcher_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_kube_resource_watcher_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_settings_user_default.go b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_settings_user_default.go index fc1db3b..7bbd421 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_settings_user_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/cluster_role_settings_user_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/config_map_namespace_gateway_proxy_envoy_config.go b/apis/gateway/v1alpha1/glooedge/mutate/config_map_namespace_gateway_proxy_envoy_config.go index 1b93e54..88c3217 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/config_map_namespace_gateway_proxy_envoy_config.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/config_map_namespace_gateway_proxy_envoy_config.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_authconfigs_enterprise_gloo_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_authconfigs_enterprise_gloo_solo_io.go index f46886f..5f63a52 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_authconfigs_enterprise_gloo_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_authconfigs_enterprise_gloo_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_gateways_gateway_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_gateways_gateway_solo_io.go index 1280dd0..f17d1ab 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_gateways_gateway_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_gateways_gateway_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_graphqlapis_graphql_gloo_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_graphqlapis_graphql_gloo_solo_io.go index f7d004b..e7aa5ca 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_graphqlapis_graphql_gloo_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_graphqlapis_graphql_gloo_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_httpgateways_gateway_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_httpgateways_gateway_solo_io.go index f35806a..6fd70c3 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_httpgateways_gateway_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_httpgateways_gateway_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_proxies_gloo_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_proxies_gloo_solo_io.go index 32b0b87..661d784 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_proxies_gloo_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_proxies_gloo_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_ratelimitconfigs_ratelimit_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_ratelimitconfigs_ratelimit_solo_io.go index c69a356..db231c8 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_ratelimitconfigs_ratelimit_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_ratelimitconfigs_ratelimit_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_routeoptions_gateway_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_routeoptions_gateway_solo_io.go index 050ddb3..856a209 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_routeoptions_gateway_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_routeoptions_gateway_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_routetables_gateway_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_routetables_gateway_solo_io.go index 820bbef..54f3a6c 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_routetables_gateway_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_routetables_gateway_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_settings_gloo_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_settings_gloo_solo_io.go index 1d5e345..970732e 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_settings_gloo_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_settings_gloo_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_tcpgateways_gateway_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_tcpgateways_gateway_solo_io.go index c67a606..64fdb82 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_tcpgateways_gateway_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_tcpgateways_gateway_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_upstreamgroups_gloo_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_upstreamgroups_gloo_solo_io.go index c1d1aa2..e51e4f1 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_upstreamgroups_gloo_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_upstreamgroups_gloo_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_upstreams_gloo_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_upstreams_gloo_solo_io.go index 1b786fd..e76f0aa 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_upstreams_gloo_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_upstreams_gloo_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_virtualhostoptions_gateway_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_virtualhostoptions_gateway_solo_io.go index 115c201..f7efe80 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_virtualhostoptions_gateway_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_virtualhostoptions_gateway_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/crd_virtualservices_gateway_solo_io.go b/apis/gateway/v1alpha1/glooedge/mutate/crd_virtualservices_gateway_solo_io.go index ac2073b..9cc9105 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/crd_virtualservices_gateway_solo_io.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/crd_virtualservices_gateway_solo_io.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_discovery.go b/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_discovery.go index be2bdaa..32c31a7 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_discovery.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_discovery.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_gateway_proxy.go b/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_gateway_proxy.go index 21f4a64..d3b18c8 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_gateway_proxy.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_gateway_proxy.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_gloo.go b/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_gloo.go index 7c32c6a..053b4ef 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_gloo.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/deployment_namespace_gloo.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/issuer_namespace_certificate_authority.go b/apis/gateway/v1alpha1/glooedge/mutate/issuer_namespace_certificate_authority.go index 15b8276..aca0d6f 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/issuer_namespace_certificate_authority.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/issuer_namespace_certificate_authority.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/namespace_namespace.go b/apis/gateway/v1alpha1/glooedge/mutate/namespace_namespace.go index da75d21..60260df 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/namespace_namespace.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/namespace_namespace.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_certgen.go b/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_certgen.go index 45e87b9..563cc11 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_certgen.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_certgen.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_discovery.go b/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_discovery.go index 0bdd9a9..986948f 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_discovery.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_discovery.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_gateway_proxy.go b/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_gateway_proxy.go index 341a445..a6f932d 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_gateway_proxy.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_gateway_proxy.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_gloo.go b/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_gloo.go index cd30a22..1869ee3 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_gloo.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/service_account_namespace_gloo.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/service_namespace_gloo.go b/apis/gateway/v1alpha1/glooedge/mutate/service_namespace_gloo.go index a63c6cc..734b62c 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/service_namespace_gloo.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/service_namespace_gloo.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/settings_namespace_default.go b/apis/gateway/v1alpha1/glooedge/mutate/settings_namespace_default.go index 8e6c353..7174807 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/settings_namespace_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/settings_namespace_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/mutate/validating_webhook_gloo_gateway_validation_webhook_default.go b/apis/gateway/v1alpha1/glooedge/mutate/validating_webhook_gloo_gateway_validation_webhook_default.go index ce8be03..1c3c614 100644 --- a/apis/gateway/v1alpha1/glooedge/mutate/validating_webhook_gloo_gateway_validation_webhook_default.go +++ b/apis/gateway/v1alpha1/glooedge/mutate/validating_webhook_gloo_gateway_validation_webhook_default.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/namespace.go b/apis/gateway/v1alpha1/glooedge/namespace.go index 4b578d4..123d4bd 100644 --- a/apis/gateway/v1alpha1/glooedge/namespace.go +++ b/apis/gateway/v1alpha1/glooedge/namespace.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/rbac.go b/apis/gateway/v1alpha1/glooedge/rbac.go index 61025d5..1672509 100644 --- a/apis/gateway/v1alpha1/glooedge/rbac.go +++ b/apis/gateway/v1alpha1/glooedge/rbac.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/resources.go b/apis/gateway/v1alpha1/glooedge/resources.go index 0e6c330..0e45308 100644 --- a/apis/gateway/v1alpha1/glooedge/resources.go +++ b/apis/gateway/v1alpha1/glooedge/resources.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/service.go b/apis/gateway/v1alpha1/glooedge/service.go index d5df8ec..4d79300 100644 --- a/apis/gateway/v1alpha1/glooedge/service.go +++ b/apis/gateway/v1alpha1/glooedge/service.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/settings.go b/apis/gateway/v1alpha1/glooedge/settings.go index 3ea7b50..eeafc48 100644 --- a/apis/gateway/v1alpha1/glooedge/settings.go +++ b/apis/gateway/v1alpha1/glooedge/settings.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/glooedge/webhook.go b/apis/gateway/v1alpha1/glooedge/webhook.go index 2aa6a27..fc4d1d1 100644 --- a/apis/gateway/v1alpha1/glooedge/webhook.go +++ b/apis/gateway/v1alpha1/glooedge/webhook.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/groupversion_info.go b/apis/gateway/v1alpha1/groupversion_info.go index 266e577..b391b61 100644 --- a/apis/gateway/v1alpha1/groupversion_info.go +++ b/apis/gateway/v1alpha1/groupversion_info.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/gateway/v1alpha1/zz_generated.deepcopy.go b/apis/gateway/v1alpha1/zz_generated.deepcopy.go index 760502b..a709c3c 100644 --- a/apis/gateway/v1alpha1/zz_generated.deepcopy.go +++ b/apis/gateway/v1alpha1/zz_generated.deepcopy.go @@ -2,7 +2,7 @@ // +build !ignore_autogenerated /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/supportservices.go b/apis/orchestration/supportservices.go index 4ca6dc5..64d5647 100644 --- a/apis/orchestration/supportservices.go +++ b/apis/orchestration/supportservices.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/supportservices_latest.go b/apis/orchestration/supportservices_latest.go index 419aff2..c9072c8 100644 --- a/apis/orchestration/supportservices_latest.go +++ b/apis/orchestration/supportservices_latest.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/v1alpha1/groupversion_info.go b/apis/orchestration/v1alpha1/groupversion_info.go index 47d7cfb..49192d4 100644 --- a/apis/orchestration/v1alpha1/groupversion_info.go +++ b/apis/orchestration/v1alpha1/groupversion_info.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/v1alpha1/supportservices/constants/names.go b/apis/orchestration/v1alpha1/supportservices/constants/names.go index 5570975..51111be 100644 --- a/apis/orchestration/v1alpha1/supportservices/constants/names.go +++ b/apis/orchestration/v1alpha1/supportservices/constants/names.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/v1alpha1/supportservices/mutate/namespace_parent_name.go b/apis/orchestration/v1alpha1/supportservices/mutate/namespace_parent_name.go index 43446f4..71e3cbf 100644 --- a/apis/orchestration/v1alpha1/supportservices/mutate/namespace_parent_name.go +++ b/apis/orchestration/v1alpha1/supportservices/mutate/namespace_parent_name.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/v1alpha1/supportservices/namespace.go b/apis/orchestration/v1alpha1/supportservices/namespace.go index 518fc6e..52ad994 100644 --- a/apis/orchestration/v1alpha1/supportservices/namespace.go +++ b/apis/orchestration/v1alpha1/supportservices/namespace.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/v1alpha1/supportservices/resources.go b/apis/orchestration/v1alpha1/supportservices/resources.go index 43dd804..124da6f 100644 --- a/apis/orchestration/v1alpha1/supportservices/resources.go +++ b/apis/orchestration/v1alpha1/supportservices/resources.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/v1alpha1/supportservices_types.go b/apis/orchestration/v1alpha1/supportservices_types.go index 16e8076..06c2ba3 100644 --- a/apis/orchestration/v1alpha1/supportservices_types.go +++ b/apis/orchestration/v1alpha1/supportservices_types.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/orchestration/v1alpha1/zz_generated.deepcopy.go b/apis/orchestration/v1alpha1/zz_generated.deepcopy.go index 5fb83fb..bae292b 100644 --- a/apis/orchestration/v1alpha1/zz_generated.deepcopy.go +++ b/apis/orchestration/v1alpha1/zz_generated.deepcopy.go @@ -2,7 +2,7 @@ // +build !ignore_autogenerated /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/secrets/externalsecrets.go b/apis/secrets/externalsecrets.go new file mode 100644 index 0000000..b2b82ea --- /dev/null +++ b/apis/secrets/externalsecrets.go @@ -0,0 +1,32 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package secrets + +import ( + v1alpha1secrets "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + //+kubebuilder:scaffold:operator-builder:imports + + "k8s.io/apimachinery/pkg/runtime/schema" +) + +// ExternalSecretsGroupVersions returns all group version objects associated with this kind. +func ExternalSecretsGroupVersions() []schema.GroupVersion { + return []schema.GroupVersion{ + v1alpha1secrets.GroupVersion, + //+kubebuilder:scaffold:operator-builder:groupversions + } +} diff --git a/apis/secrets/externalsecrets_latest.go b/apis/secrets/externalsecrets_latest.go new file mode 100644 index 0000000..e449b3a --- /dev/null +++ b/apis/secrets/externalsecrets_latest.go @@ -0,0 +1,32 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package secrets + +import ( + v1alpha1secrets "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + v1alpha1externalsecrets "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets" +) + +// Code generated by operator-builder. DO NOT EDIT. + +// ExternalSecretsLatestGroupVersion returns the latest group version object associated with this +// particular kind. +var ExternalSecretsLatestGroupVersion = v1alpha1secrets.GroupVersion + +// ExternalSecretsLatestSample returns the latest sample manifest associated with this +// particular kind. +var ExternalSecretsLatestSample = v1alpha1externalsecrets.Sample(false) diff --git a/apis/secrets/v1alpha1/externalsecrets/config.go b/apis/secrets/v1alpha1/externalsecrets/config.go new file mode 100644 index 0000000..7a119ca --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/config.go @@ -0,0 +1,60 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package externalsecrets + +import ( + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets/mutate" +) + +// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete + +// CreateSecretNamespaceExternalSecretsWebhook creates the Secret resource with name external-secrets-webhook. +func CreateSecretNamespaceExternalSecretsWebhook( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "v1", + "kind": "Secret", + "metadata": map[string]interface{}{ + "name": "external-secrets-webhook", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-webhook", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "external-secrets.io/component": "webhook", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + }, + } + + return mutate.MutateSecretNamespaceExternalSecretsWebhook(resourceObj, parent, collection, reconciler, req) +} diff --git a/apis/secrets/v1alpha1/externalsecrets/constants/names.go b/apis/secrets/v1alpha1/externalsecrets/constants/names.go new file mode 100644 index 0000000..c1f91d2 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/constants/names.go @@ -0,0 +1,53 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package constants + +// this package includes the constants which include the resource names. it is a standalone +// package to prevent import cycle errors when attempting to reference the names from other +// packages (e.g. mutate). +const ( + SecretNamespaceExternalSecretsWebhook = "external-secrets-webhook" + CRDAcraccesstokensGeneratorsExternalSecretsIo = "acraccesstokens.generators.external-secrets.io" + CRDClusterexternalsecretsExternalSecretsIo = "clusterexternalsecrets.external-secrets.io" + CRDClustersecretstoresExternalSecretsIo = "clustersecretstores.external-secrets.io" + CRDEcrauthorizationtokensGeneratorsExternalSecretsIo = "ecrauthorizationtokens.generators.external-secrets.io" + CRDExternalsecretsExternalSecretsIo = "externalsecrets.external-secrets.io" + CRDFakesGeneratorsExternalSecretsIo = "fakes.generators.external-secrets.io" + CRDGcraccesstokensGeneratorsExternalSecretsIo = "gcraccesstokens.generators.external-secrets.io" + CRDPasswordsGeneratorsExternalSecretsIo = "passwords.generators.external-secrets.io" + CRDPushsecretsExternalSecretsIo = "pushsecrets.external-secrets.io" + CRDSecretstoresExternalSecretsIo = "secretstores.external-secrets.io" + CRDVaultdynamicsecretsGeneratorsExternalSecretsIo = "vaultdynamicsecrets.generators.external-secrets.io" + DeploymentNamespaceExternalSecretsCertController = "external-secrets-cert-controller" + DeploymentNamespaceExternalSecrets = "external-secrets" + DeploymentNamespaceExternalSecretsWebhook = "external-secrets-webhook" + NamespaceNamespace = "parent.Spec.Namespace" + ServiceAccountNamespaceExternalSecretsCertController = "external-secrets-cert-controller" + ServiceAccountNamespaceExternalSecrets = "external-secrets" + ServiceAccountNamespaceExternalSecretsWebhook = "external-secrets-webhook" + ClusterRoleExternalSecretsCertController = "external-secrets-cert-controller" + ClusterRoleExternalSecretsController = "external-secrets-controller" + ClusterRoleExternalSecretsView = "external-secrets-view" + ClusterRoleExternalSecretsEdit = "external-secrets-edit" + ClusterRoleBindingExternalSecretsCertController = "external-secrets-cert-controller" + ClusterRoleBindingExternalSecretsController = "external-secrets-controller" + RoleNamespaceExternalSecretsLeaderelection = "external-secrets-leaderelection" + RoleBindingNamespaceExternalSecretsLeaderelection = "external-secrets-leaderelection" + ServiceNamespaceExternalSecretsWebhook = "external-secrets-webhook" + ValidatingWebhookSecretstoreValidate = "secretstore-validate" + ValidatingWebhookExternalsecretValidate = "externalsecret-validate" +) diff --git a/apis/secrets/v1alpha1/externalsecrets/crds.go b/apis/secrets/v1alpha1/externalsecrets/crds.go new file mode 100644 index 0000000..8e434cf --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/crds.go @@ -0,0 +1,12221 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package externalsecrets + +import ( + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets/mutate" +) + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDAcraccesstokensGeneratorsExternalSecretsIo creates the CustomResourceDefinition resource with name acraccesstokens.generators.external-secrets.io. +func CreateCRDAcraccesstokensGeneratorsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/acraccesstoken.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "acraccesstokens.generators.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "generators.external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "acraccesstoken", + }, + "kind": "ACRAccessToken", + "listKind": "ACRAccessTokenList", + "plural": "acraccesstokens", + "shortNames": []interface{}{ + "acraccesstoken", + }, + "singular": "acraccesstoken", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": `ACRAccessToken returns a Azure Container Registry token that can be used for pushing/pulling images. Note: by default it will return an ACR Refresh Token with full access (depending on the identity). This can be scoped down to the repository level using .spec.scope. In case scope is defined it will return an ACR Access Token. + See docs: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md`, + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "ACRAccessTokenSpec defines how to generate the access token e.g. how to authenticate and which registry to use. see: https://github.com/Azure/acr/blob/main/docs/AAD-OAuth.md#overview", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "properties": map[string]interface{}{ + "managedIdentity": map[string]interface{}{ + "description": "ManagedIdentity uses Azure Managed Identity to authenticate with Azure.", + "properties": map[string]interface{}{ + "identityId": map[string]interface{}{ + "description": "If multiple Managed Identity is assigned to the pod, you can select the one to be used", + "type": "string", + }, + }, + "type": "object", + }, + "servicePrincipal": map[string]interface{}{ + "description": "ServicePrincipal uses Azure Service Principal credentials to authenticate with Azure.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "Configuration used to authenticate with Azure using static credentials stored in a Kind=Secret.", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "description": "The Azure clientId of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientSecret": map[string]interface{}{ + "description": "The Azure ClientSecret of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretRef", + }, + "type": "object", + }, + "workloadIdentity": map[string]interface{}{ + "description": "WorkloadIdentity uses Azure Workload Identity to authenticate with Azure.", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "environmentType": map[string]interface{}{ + "default": "PublicCloud", + "description": "EnvironmentType specifies the Azure cloud environment endpoints to use for connecting and authenticating with Azure. By default it points to the public cloud AAD endpoint. The following endpoints are available, also see here: https://github.com/Azure/go-autorest/blob/main/autorest/azure/environments.go#L152 PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud", + "enum": []interface{}{ + "PublicCloud", + "USGovernmentCloud", + "ChinaCloud", + "GermanCloud", + }, + "type": "string", + }, + "registry": map[string]interface{}{ + "description": "the domain name of the ACR registry e.g. foobarexample.azurecr.io", + "type": "string", + }, + "scope": map[string]interface{}{ + "description": `Define the scope for the access token, e.g. pull/push access for a repository. if not provided it will return a refresh token that has full scope. Note: you need to pin it down to the repository level, there is no wildcard available. + examples: repository:my-repository:pull,push repository:my-repository:pull + see docs for details: https://docs.docker.com/registry/spec/auth/scope/`, + "type": "string", + }, + "tenantId": map[string]interface{}{ + "description": "TenantID configures the Azure Tenant to send requests to. Required for ServicePrincipal auth type.", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "registry", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDAcraccesstokensGeneratorsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDClusterexternalsecretsExternalSecretsIo creates the CustomResourceDefinition resource with name clusterexternalsecrets.external-secrets.io. +func CreateCRDClusterexternalsecretsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/clusterexternalsecret.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "clusterexternalsecrets.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "externalsecrets", + }, + "kind": "ClusterExternalSecret", + "listKind": "ClusterExternalSecretList", + "plural": "clusterexternalsecrets", + "shortNames": []interface{}{ + "ces", + }, + "singular": "clusterexternalsecret", + }, + "scope": "Cluster", + "versions": []interface{}{ + map[string]interface{}{ + "additionalPrinterColumns": []interface{}{ + map[string]interface{}{ + "jsonPath": ".spec.externalSecretSpec.secretStoreRef.name", + "name": "Store", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".spec.refreshTime", + "name": "Refresh Interval", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].status", + "name": "Ready", + "type": "string", + }, + }, + "name": "v1beta1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "ClusterExternalSecret is the Schema for the clusterexternalsecrets API.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "ClusterExternalSecretSpec defines the desired state of ClusterExternalSecret.", + "properties": map[string]interface{}{ + "externalSecretMetadata": map[string]interface{}{ + "description": "The metadata of the external secrets to be created", + "properties": map[string]interface{}{ + "annotations": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "labels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + }, + "type": "object", + }, + "externalSecretName": map[string]interface{}{ + "description": "The name of the external secrets to be created defaults to the name of the ClusterExternalSecret", + "type": "string", + }, + "externalSecretSpec": map[string]interface{}{ + "description": "The spec for the ExternalSecrets to be created", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "description": "Data defines the connection between the Kubernetes Secret keys and the Provider data", + "items": map[string]interface{}{ + "description": "ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.) and the Provider data.", + "properties": map[string]interface{}{ + "remoteRef": map[string]interface{}{ + "description": "RemoteRef points to the remote secret and defines which secret (version/property/..) to fetch.", + "properties": map[string]interface{}{ + "conversionStrategy": map[string]interface{}{ + "default": "Default", + "description": "Used to define a conversion Strategy", + "enum": []interface{}{ + "Default", + "Unicode", + }, + "type": "string", + }, + "decodingStrategy": map[string]interface{}{ + "default": "None", + "description": "Used to define a decoding Strategy", + "enum": []interface{}{ + "Auto", + "Base64", + "Base64URL", + "None", + }, + "type": "string", + }, + "key": map[string]interface{}{ + "description": "Key is the key used in the Provider, mandatory", + "type": "string", + }, + "metadataPolicy": map[string]interface{}{ + "default": "None", + "description": "Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None", + "enum": []interface{}{ + "None", + "Fetch", + }, + "type": "string", + }, + "property": map[string]interface{}{ + "description": "Used to select a specific property of the Provider value (if a map), if supported", + "type": "string", + }, + "version": map[string]interface{}{ + "description": "Used to select a specific version of the Provider value, if supported", + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "secretKey": map[string]interface{}{ + "description": "SecretKey defines the key in which the controller stores the value. This is the key in the Kind=Secret", + "type": "string", + }, + "sourceRef": map[string]interface{}{ + "description": "SourceRef allows you to override the source from which the value will pulled from.", + "maxProperties": 1, + "properties": map[string]interface{}{ + "generatorRef": map[string]interface{}{ + "description": `GeneratorRef points to a generator custom resource. + Deprecated: The generatorRef is not implemented in .data[]. this will be removed with v1.`, + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "default": "generators.external-secrets.io/v1alpha1", + "description": "Specify the apiVersion of the generator resource", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Specify the Kind of the resource, e.g. Password, ACRAccessToken etc.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Specify the name of the generator resource", + "type": "string", + }, + }, + "required": []interface{}{ + "kind", + "name", + }, + "type": "object", + }, + "storeRef": map[string]interface{}{ + "description": "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.", + "properties": map[string]interface{}{ + "kind": map[string]interface{}{ + "description": "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Name of the SecretStore resource", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "remoteRef", + "secretKey", + }, + "type": "object", + }, + "type": "array", + }, + "dataFrom": map[string]interface{}{ + "description": "DataFrom is used to fetch all properties from a specific Provider data If multiple entries are specified, the Secret keys are merged in the specified order", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "extract": map[string]interface{}{ + "description": "Used to extract multiple key/value pairs from one secret Note: Extract does not support sourceRef.Generator or sourceRef.GeneratorRef.", + "properties": map[string]interface{}{ + "conversionStrategy": map[string]interface{}{ + "default": "Default", + "description": "Used to define a conversion Strategy", + "enum": []interface{}{ + "Default", + "Unicode", + }, + "type": "string", + }, + "decodingStrategy": map[string]interface{}{ + "default": "None", + "description": "Used to define a decoding Strategy", + "enum": []interface{}{ + "Auto", + "Base64", + "Base64URL", + "None", + }, + "type": "string", + }, + "key": map[string]interface{}{ + "description": "Key is the key used in the Provider, mandatory", + "type": "string", + }, + "metadataPolicy": map[string]interface{}{ + "default": "None", + "description": "Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None", + "enum": []interface{}{ + "None", + "Fetch", + }, + "type": "string", + }, + "property": map[string]interface{}{ + "description": "Used to select a specific property of the Provider value (if a map), if supported", + "type": "string", + }, + "version": map[string]interface{}{ + "description": "Used to select a specific version of the Provider value, if supported", + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "find": map[string]interface{}{ + "description": "Used to find secrets based on tags or regular expressions Note: Find does not support sourceRef.Generator or sourceRef.GeneratorRef.", + "properties": map[string]interface{}{ + "conversionStrategy": map[string]interface{}{ + "default": "Default", + "description": "Used to define a conversion Strategy", + "enum": []interface{}{ + "Default", + "Unicode", + }, + "type": "string", + }, + "decodingStrategy": map[string]interface{}{ + "default": "None", + "description": "Used to define a decoding Strategy", + "enum": []interface{}{ + "Auto", + "Base64", + "Base64URL", + "None", + }, + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Finds secrets based on the name.", + "properties": map[string]interface{}{ + "regexp": map[string]interface{}{ + "description": "Finds secrets base", + "type": "string", + }, + }, + "type": "object", + }, + "path": map[string]interface{}{ + "description": "A root path to start the find operations.", + "type": "string", + }, + "tags": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Find secrets based on tags.", + "type": "object", + }, + }, + "type": "object", + }, + "rewrite": map[string]interface{}{ + "description": "Used to rewrite secret Keys after getting them from the secret Provider Multiple Rewrite operations can be provided. They are applied in a layered order (first to last)", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "regexp": map[string]interface{}{ + "description": "Used to rewrite with regular expressions. The resulting key will be the output of a regexp.ReplaceAll operation.", + "properties": map[string]interface{}{ + "source": map[string]interface{}{ + "description": "Used to define the regular expression of a re.Compiler.", + "type": "string", + }, + "target": map[string]interface{}{ + "description": "Used to define the target pattern of a ReplaceAll operation.", + "type": "string", + }, + }, + "required": []interface{}{ + "source", + "target", + }, + "type": "object", + }, + "transform": map[string]interface{}{ + "description": "Used to apply string transformation on the secrets. The resulting key will be the output of the template applied by the operation.", + "properties": map[string]interface{}{ + "template": map[string]interface{}{ + "description": "Used to define the template to apply on the secret name. `.value ` will specify the secret name in the template.", + "type": "string", + }, + }, + "required": []interface{}{ + "template", + }, + "type": "object", + }, + }, + "type": "object", + }, + "type": "array", + }, + "sourceRef": map[string]interface{}{ + "description": "SourceRef points to a store or generator which contains secret values ready to use. Use this in combination with Extract or Find pull values out of a specific SecretStore. When sourceRef points to a generator Extract or Find is not supported. The generator returns a static map of values", + "maxProperties": 1, + "properties": map[string]interface{}{ + "generatorRef": map[string]interface{}{ + "description": "GeneratorRef points to a generator custom resource.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "default": "generators.external-secrets.io/v1alpha1", + "description": "Specify the apiVersion of the generator resource", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Specify the Kind of the resource, e.g. Password, ACRAccessToken etc.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Specify the name of the generator resource", + "type": "string", + }, + }, + "required": []interface{}{ + "kind", + "name", + }, + "type": "object", + }, + "storeRef": map[string]interface{}{ + "description": "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.", + "properties": map[string]interface{}{ + "kind": map[string]interface{}{ + "description": "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Name of the SecretStore resource", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "type": "array", + }, + "refreshInterval": map[string]interface{}{ + "default": "1h", + "description": "RefreshInterval is the amount of time before the values are read again from the SecretStore provider Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\" May be set to zero to fetch and create it once. Defaults to 1h.", + "type": "string", + }, + "secretStoreRef": map[string]interface{}{ + "description": "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.", + "properties": map[string]interface{}{ + "kind": map[string]interface{}{ + "description": "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Name of the SecretStore resource", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "target": map[string]interface{}{ + "default": map[string]interface{}{ + "creationPolicy": "Owner", + "deletionPolicy": "Retain", + }, + "description": "ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret.", + "properties": map[string]interface{}{ + "creationPolicy": map[string]interface{}{ + "default": "Owner", + "description": "CreationPolicy defines rules on how to create the resulting Secret Defaults to 'Owner'", + "enum": []interface{}{ + "Owner", + "Orphan", + "Merge", + "None", + }, + "type": "string", + }, + "deletionPolicy": map[string]interface{}{ + "default": "Retain", + "description": "DeletionPolicy defines rules on how to delete the resulting Secret Defaults to 'Retain'", + "enum": []interface{}{ + "Delete", + "Merge", + "Retain", + }, + "type": "string", + }, + "immutable": map[string]interface{}{ + "description": "Immutable defines if the final secret will be immutable", + "type": "boolean", + }, + "name": map[string]interface{}{ + "description": "Name defines the name of the Secret resource to be managed This field is immutable Defaults to the .metadata.name of the ExternalSecret resource", + "type": "string", + }, + "template": map[string]interface{}{ + "description": "Template defines a blueprint for the created Secret resource.", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "engineVersion": map[string]interface{}{ + "default": "v2", + "description": "EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[].", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + "mergePolicy": map[string]interface{}{ + "default": "Replace", + "enum": []interface{}{ + "Replace", + "Merge", + }, + "type": "string", + }, + "metadata": map[string]interface{}{ + "description": "ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint.", + "properties": map[string]interface{}{ + "annotations": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "labels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + }, + "type": "object", + }, + "templateFrom": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "configMap": map[string]interface{}{ + "properties": map[string]interface{}{ + "items": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "templateAs": map[string]interface{}{ + "default": "Values", + "enum": []interface{}{ + "Values", + "KeysAndValues", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "items", + "name", + }, + "type": "object", + }, + "literal": map[string]interface{}{ + "type": "string", + }, + "secret": map[string]interface{}{ + "properties": map[string]interface{}{ + "items": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "templateAs": map[string]interface{}{ + "default": "Values", + "enum": []interface{}{ + "Values", + "KeysAndValues", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "items", + "name", + }, + "type": "object", + }, + "target": map[string]interface{}{ + "default": "Data", + "enum": []interface{}{ + "Data", + "Annotations", + "Labels", + }, + "type": "string", + }, + }, + "type": "object", + }, + "type": "array", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "namespaceSelector": map[string]interface{}{ + "description": "The labels to select by to find the Namespaces to create the ExternalSecrets in.", + "properties": map[string]interface{}{ + "matchExpressions": map[string]interface{}{ + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": map[string]interface{}{ + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "key is the label key that the selector applies to.", + "type": "string", + }, + "operator": map[string]interface{}{ + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string", + }, + "values": map[string]interface{}{ + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "key", + "operator", + }, + "type": "object", + }, + "type": "array", + }, + "matchLabels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + }, + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + }, + "namespaces": map[string]interface{}{ + "description": "Choose namespaces by name. This field is ORed with anything that NamespaceSelector ends up choosing.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "refreshTime": map[string]interface{}{ + "description": "The time in which the controller should reconcile its objects and recheck namespaces for labels.", + "type": "string", + }, + }, + "required": []interface{}{ + "externalSecretSpec", + }, + "type": "object", + }, + "status": map[string]interface{}{ + "description": "ClusterExternalSecretStatus defines the observed state of ClusterExternalSecret.", + "properties": map[string]interface{}{ + "conditions": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "message": map[string]interface{}{ + "type": "string", + }, + "status": map[string]interface{}{ + "type": "string", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "status", + "type", + }, + "type": "object", + }, + "type": "array", + }, + "externalSecretName": map[string]interface{}{ + "description": "ExternalSecretName is the name of the ExternalSecrets created by the ClusterExternalSecret", + "type": "string", + }, + "failedNamespaces": map[string]interface{}{ + "description": "Failed namespaces are the namespaces that failed to apply an ExternalSecret", + "items": map[string]interface{}{ + "description": "ClusterExternalSecretNamespaceFailure represents a failed namespace deployment and it's reason.", + "properties": map[string]interface{}{ + "namespace": map[string]interface{}{ + "description": "Namespace is the namespace that failed when trying to apply an ExternalSecret", + "type": "string", + }, + "reason": map[string]interface{}{ + "description": "Reason is why the ExternalSecret failed to apply to the namespace", + "type": "string", + }, + }, + "required": []interface{}{ + "namespace", + }, + "type": "object", + }, + "type": "array", + }, + "provisionedNamespaces": map[string]interface{}{ + "description": "ProvisionedNamespaces are the namespaces where the ClusterExternalSecret has secrets", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDClusterexternalsecretsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDClustersecretstoresExternalSecretsIo creates the CustomResourceDefinition resource with name clustersecretstores.external-secrets.io. +func CreateCRDClustersecretstoresExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/clustersecretstore.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "clustersecretstores.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "externalsecrets", + }, + "kind": "ClusterSecretStore", + "listKind": "ClusterSecretStoreList", + "plural": "clustersecretstores", + "shortNames": []interface{}{ + "css", + }, + "singular": "clustersecretstore", + }, + "scope": "Cluster", + "versions": []interface{}{ + map[string]interface{}{ + "additionalPrinterColumns": []interface{}{ + map[string]interface{}{ + "jsonPath": ".metadata.creationTimestamp", + "name": "AGE", + "type": "date", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].reason", + "name": "Status", + "type": "string", + }, + }, + "deprecated": true, + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "ClusterSecretStore represents a secure external location for storing secrets, which can be referenced as part of `storeRef` fields.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "SecretStoreSpec defines the desired state of SecretStore.", + "properties": map[string]interface{}{ + "controller": map[string]interface{}{ + "description": "Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters ES based on this property", + "type": "string", + }, + "provider": map[string]interface{}{ + "description": "Used to configure the provider. Only one provider may be set", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "akeyless": map[string]interface{}{ + "description": "Akeyless configures this store to sync secrets using Akeyless Vault provider", + "properties": map[string]interface{}{ + "akeylessGWApiURL": map[string]interface{}{ + "description": "Akeyless GW API Url from which the secrets to be fetched from.", + "type": "string", + }, + "authSecretRef": map[string]interface{}{ + "description": "Auth configures how the operator authenticates with Akeyless.", + "properties": map[string]interface{}{ + "kubernetesAuth": map[string]interface{}{ + "description": "Kubernetes authenticates with Akeyless by passing the ServiceAccount token stored in the named Secret resource.", + "properties": map[string]interface{}{ + "accessID": map[string]interface{}{ + "description": "the Akeyless Kubernetes auth-method access-id", + "type": "string", + }, + "k8sConfName": map[string]interface{}{ + "description": "Kubernetes-auth configuration name in Akeyless-Gateway", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Akeyless. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Akeyless. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessID", + "k8sConfName", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a Secret that contains the details to authenticate with Akeyless.", + "properties": map[string]interface{}{ + "accessID": map[string]interface{}{ + "description": "The SecretAccessID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessType": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessTypeParam": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM/base64 encoded CA bundle used to validate Akeyless Gateway certificate. Only used if the AkeylessGWApiURL URL is using HTTPS protocol. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Akeyless Gateway certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "akeylessGWApiURL", + "authSecretRef", + }, + "type": "object", + }, + "alibaba": map[string]interface{}{ + "description": "Alibaba configures this store to sync secrets using Alibaba Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "AlibabaAuth contains a secretRef for credentials.", + "properties": map[string]interface{}{ + "rrsa": map[string]interface{}{ + "description": "Authenticate against Alibaba using RRSA.", + "properties": map[string]interface{}{ + "oidcProviderArn": map[string]interface{}{ + "type": "string", + }, + "oidcTokenFilePath": map[string]interface{}{ + "type": "string", + }, + "roleArn": map[string]interface{}{ + "type": "string", + }, + "sessionName": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "oidcProviderArn", + "oidcTokenFilePath", + "roleArn", + "sessionName", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AlibabaAuthSecretRef holds secret references for Alibaba credentials.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessKeySecretSecretRef": map[string]interface{}{ + "description": "The AccessKeySecret is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessKeyIDSecretRef", + "accessKeySecretSecretRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "regionID": map[string]interface{}{ + "description": "Alibaba Region to be used for the provider", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "regionID", + }, + "type": "object", + }, + "aws": map[string]interface{}{ + "description": "AWS configures this store to sync secrets using AWS Secret Manager provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against AWS if not set aws sdk will infer credentials from your environment see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "properties": map[string]interface{}{ + "jwt": map[string]interface{}{ + "description": "Authenticate against AWS using service account tokens.", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AWSAuthSecretRef holds secret references for AWS credentials both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "region": map[string]interface{}{ + "description": "AWS Region to be used for the provider", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a Role ARN which the SecretManager provider will assume", + "type": "string", + }, + "service": map[string]interface{}{ + "description": "Service defines which service should be used to fetch the secrets", + "enum": []interface{}{ + "SecretsManager", + "ParameterStore", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "region", + "service", + }, + "type": "object", + }, + "azurekv": map[string]interface{}{ + "description": "AzureKV configures this store to sync secrets using Azure Key Vault provider", + "properties": map[string]interface{}{ + "authSecretRef": map[string]interface{}{ + "description": "Auth configures how the operator authenticates with Azure. Required for ServicePrincipal auth type.", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "description": "The Azure clientId of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientSecret": map[string]interface{}{ + "description": "The Azure ClientSecret of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "authType": map[string]interface{}{ + "default": "ServicePrincipal", + "description": "Auth type defines how to authenticate to the keyvault service. Valid values are: - \"ServicePrincipal\" (default): Using a service principal (tenantId, clientId, clientSecret) - \"ManagedIdentity\": Using Managed Identity assigned to the pod (see aad-pod-identity)", + "enum": []interface{}{ + "ServicePrincipal", + "ManagedIdentity", + "WorkloadIdentity", + }, + "type": "string", + }, + "identityId": map[string]interface{}{ + "description": "If multiple Managed Identity is assigned to the pod, you can select the one to be used", + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "tenantId": map[string]interface{}{ + "description": "TenantID configures the Azure Tenant to send requests to. Required for ServicePrincipal auth type.", + "type": "string", + }, + "vaultUrl": map[string]interface{}{ + "description": "Vault Url from which the secrets to be fetched from.", + "type": "string", + }, + }, + "required": []interface{}{ + "vaultUrl", + }, + "type": "object", + }, + "fake": map[string]interface{}{ + "description": "Fake configures a store with static key/value pairs", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "value": map[string]interface{}{ + "type": "string", + }, + "valueMap": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "version": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "data", + }, + "type": "object", + }, + "gcpsm": map[string]interface{}{ + "description": "GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against GCP", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "workloadIdentity": map[string]interface{}{ + "properties": map[string]interface{}{ + "clusterLocation": map[string]interface{}{ + "type": "string", + }, + "clusterName": map[string]interface{}{ + "type": "string", + }, + "clusterProjectID": map[string]interface{}{ + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "clusterLocation", + "clusterName", + "serviceAccountRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID project where secret is located", + "type": "string", + }, + }, + "type": "object", + }, + "gitlab": map[string]interface{}{ + "description": "GitLab configures this store to sync secrets using GitLab Variables provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with a GitLab instance.", + "properties": map[string]interface{}{ + "SecretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "accessToken": map[string]interface{}{ + "description": "AccessToken is used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "SecretRef", + }, + "type": "object", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID specifies a project where secrets are located.", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "URL configures the GitLab instance URL. Defaults to https://gitlab.com/.", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "ibm": map[string]interface{}{ + "description": "IBM configures this store to sync secrets using IBM Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the IBM secrets manager.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretApiKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretRef", + }, + "type": "object", + }, + "serviceUrl": map[string]interface{}{ + "description": "ServiceURL is the Endpoint URL that is specific to the Secrets Manager service instance", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes configures this store to sync secrets using a Kubernetes cluster provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with a Kubernetes instance.", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "cert": map[string]interface{}{ + "description": "has both clientCert and clientKey as secretKeySelector", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientKey": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "serviceAccount": map[string]interface{}{ + "description": "points to a service account that should be used for authentication", + "properties": map[string]interface{}{ + "serviceAccount": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "token": map[string]interface{}{ + "description": "use static token to authenticate with", + "properties": map[string]interface{}{ + "bearerToken": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "remoteNamespace": map[string]interface{}{ + "default": "default", + "description": "Remote namespace to fetch the secrets from", + "type": "string", + }, + "server": map[string]interface{}{ + "description": "configures the Kubernetes server Address.", + "properties": map[string]interface{}{ + "caBundle": map[string]interface{}{ + "description": "CABundle is a base64-encoded CA certificate", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "see: https://external-secrets.io/v0.4.1/spec/#external-secrets.io/v1alpha1.CAProvider", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "url": map[string]interface{}{ + "default": "kubernetes.default", + "description": "configures the Kubernetes server Address.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "oracle": map[string]interface{}{ + "description": "Oracle configures this store to sync secrets using Oracle Vault provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Oracle Vault. If empty, instance principal is used. Optionally, the authenticating principal type and/or user data may be supplied for the use of workload identity and user principal.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef to pass through sensitive information.", + "properties": map[string]interface{}{ + "fingerprint": map[string]interface{}{ + "description": "Fingerprint is the fingerprint of the API private key.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "privatekey": map[string]interface{}{ + "description": "PrivateKey is the user's API Signing Key in PEM format, used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "fingerprint", + "privatekey", + }, + "type": "object", + }, + "tenancy": map[string]interface{}{ + "description": "Tenancy is the tenancy OCID where user is located.", + "type": "string", + }, + "user": map[string]interface{}{ + "description": "User is an access OCID specific to the account.", + "type": "string", + }, + }, + "required": []interface{}{ + "secretRef", + "tenancy", + "user", + }, + "type": "object", + }, + "compartment": map[string]interface{}{ + "description": "Compartment is the vault compartment OCID. Required for PushSecret", + "type": "string", + }, + "encryptionKey": map[string]interface{}{ + "description": "EncryptionKey is the OCID of the encryption key within the vault. Required for PushSecret", + "type": "string", + }, + "principalType": map[string]interface{}{ + "description": "The type of principal to use for authentication. If left blank, the Auth struct will determine the principal type. This optional field must be specified if using workload identity.", + "enum": []interface{}{ + "", + "UserPrincipal", + "InstancePrincipal", + "Workload", + }, + "type": "string", + }, + "region": map[string]interface{}{ + "description": "Region is the region where vault is located.", + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "vault": map[string]interface{}{ + "description": "Vault is the vault's OCID of the specific vault where secret is located.", + "type": "string", + }, + }, + "required": []interface{}{ + "region", + "vault", + }, + "type": "object", + }, + "vault": map[string]interface{}{ + "description": "Vault configures this store to sync secrets using Hashi provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Vault server.", + "properties": map[string]interface{}{ + "appRole": map[string]interface{}{ + "description": "AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "approle", + "description": "Path where the App Role authentication backend is mounted in Vault, e.g: \"approle\"", + "type": "string", + }, + "roleId": map[string]interface{}{ + "description": "RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault.", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + "roleId", + "secretRef", + }, + "type": "object", + }, + "cert": map[string]interface{}{ + "description": "Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "ClientCert is a certificate to authenticate using the Cert Vault authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "jwt": map[string]interface{}{ + "description": "Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method", + "properties": map[string]interface{}{ + "kubernetesServiceAccountToken": map[string]interface{}{ + "description": "Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "expirationSeconds": map[string]interface{}{ + "description": "Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to 10 minutes.", + "format": "int64", + "type": "integer", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Service account field containing the name of a kubernetes ServiceAccount.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "serviceAccountRef", + }, + "type": "object", + }, + "path": map[string]interface{}{ + "default": "jwt", + "description": "Path where the JWT authentication backend is mounted in Vault, e.g: \"jwt\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.", + "properties": map[string]interface{}{ + "mountPath": map[string]interface{}{ + "default": "kubernetes", + "description": "Path where the Kubernetes authentication backend is mounted in Vault, e.g: \"kubernetes\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies.", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "mountPath", + "role", + }, + "type": "object", + }, + "ldap": map[string]interface{}{ + "description": "Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "ldap", + "description": "Path where the LDAP authentication backend is mounted in Vault, e.g: \"ldap\"", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "username": map[string]interface{}{ + "description": "Username is a LDAP user name used to authenticate using the LDAP Vault authentication method", + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "username", + }, + "type": "object", + }, + "tokenSecretRef": map[string]interface{}{ + "description": "TokenSecretRef authenticates with Vault by presenting a token.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Vault server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "forwardInconsistent": map[string]interface{}{ + "description": "ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header", + "type": "boolean", + }, + "namespace": map[string]interface{}{ + "description": "Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: \"ns1\". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces", + "type": "string", + }, + "path": map[string]interface{}{ + "description": "Path is the mount path of the Vault KV backend endpoint, e.g: \"secret\". The v2 KV secret engine version specific \"/data\" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.", + "type": "string", + }, + "readYourWrites": map[string]interface{}{ + "description": "ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency", + "type": "boolean", + }, + "server": map[string]interface{}{ + "description": "Server is the connection address for the Vault server, e.g: \"https://vault.example.com:8200\".", + "type": "string", + }, + "version": map[string]interface{}{ + "default": "v2", + "description": "Version is the Vault KV secret engine version. This can be either \"v1\" or \"v2\". Version defaults to \"v2\".", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "server", + }, + "type": "object", + }, + "webhook": map[string]interface{}{ + "description": "Webhook configures this store to sync secrets using a generic templated webhook", + "properties": map[string]interface{}{ + "body": map[string]interface{}{ + "description": "Body", + "type": "string", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate webhook server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate webhook server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "headers": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Headers", + "type": "object", + }, + "method": map[string]interface{}{ + "description": "Webhook Method", + "type": "string", + }, + "result": map[string]interface{}{ + "description": "Result formatting", + "properties": map[string]interface{}{ + "jsonPath": map[string]interface{}{ + "description": "Json path of return value", + "type": "string", + }, + }, + "type": "object", + }, + "secrets": map[string]interface{}{ + "description": "Secrets to fill in templates These secrets will be passed to the templating function as key value pairs under the given name", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "name": map[string]interface{}{ + "description": "Name of this secret in templates", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Secret ref to fill in credentials", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "name", + "secretRef", + }, + "type": "object", + }, + "type": "array", + }, + "timeout": map[string]interface{}{ + "description": "Timeout", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "Webhook url to call", + "type": "string", + }, + }, + "required": []interface{}{ + "result", + "url", + }, + "type": "object", + }, + "yandexlockbox": map[string]interface{}{ + "description": "YandexLockbox configures this store to sync secrets using Yandex Lockbox provider", + "properties": map[string]interface{}{ + "apiEndpoint": map[string]interface{}{ + "description": "Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443')", + "type": "string", + }, + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against Yandex Lockbox", + "properties": map[string]interface{}{ + "authorizedKeySecretRef": map[string]interface{}{ + "description": "The authorized key used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Yandex.Cloud server certificate.", + "properties": map[string]interface{}{ + "certSecretRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + }, + "type": "object", + }, + "retrySettings": map[string]interface{}{ + "description": "Used to configure http retries if failed", + "properties": map[string]interface{}{ + "maxRetries": map[string]interface{}{ + "format": "int32", + "type": "integer", + }, + "retryInterval": map[string]interface{}{ + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "provider", + }, + "type": "object", + }, + "status": map[string]interface{}{ + "description": "SecretStoreStatus defines the observed state of the SecretStore.", + "properties": map[string]interface{}{ + "conditions": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "lastTransitionTime": map[string]interface{}{ + "format": "date-time", + "type": "string", + }, + "message": map[string]interface{}{ + "type": "string", + }, + "reason": map[string]interface{}{ + "type": "string", + }, + "status": map[string]interface{}{ + "type": "string", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "status", + "type", + }, + "type": "object", + }, + "type": "array", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": false, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + map[string]interface{}{ + "additionalPrinterColumns": []interface{}{ + map[string]interface{}{ + "jsonPath": ".metadata.creationTimestamp", + "name": "AGE", + "type": "date", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].reason", + "name": "Status", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".status.capabilities", + "name": "Capabilities", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].status", + "name": "Ready", + "type": "string", + }, + }, + "name": "v1beta1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "ClusterSecretStore represents a secure external location for storing secrets, which can be referenced as part of `storeRef` fields.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "SecretStoreSpec defines the desired state of SecretStore.", + "properties": map[string]interface{}{ + "conditions": map[string]interface{}{ + "description": "Used to constraint a ClusterSecretStore to specific namespaces. Relevant only to ClusterSecretStore", + "items": map[string]interface{}{ + "description": "ClusterSecretStoreCondition describes a condition by which to choose namespaces to process ExternalSecrets in for a ClusterSecretStore instance.", + "properties": map[string]interface{}{ + "namespaceSelector": map[string]interface{}{ + "description": "Choose namespace using a labelSelector", + "properties": map[string]interface{}{ + "matchExpressions": map[string]interface{}{ + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": map[string]interface{}{ + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "key is the label key that the selector applies to.", + "type": "string", + }, + "operator": map[string]interface{}{ + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string", + }, + "values": map[string]interface{}{ + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "key", + "operator", + }, + "type": "object", + }, + "type": "array", + }, + "matchLabels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + }, + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + }, + "namespaces": map[string]interface{}{ + "description": "Choose namespaces by name", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "type": "object", + }, + "type": "array", + }, + "controller": map[string]interface{}{ + "description": "Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters ES based on this property", + "type": "string", + }, + "provider": map[string]interface{}{ + "description": "Used to configure the provider. Only one provider may be set", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "akeyless": map[string]interface{}{ + "description": "Akeyless configures this store to sync secrets using Akeyless Vault provider", + "properties": map[string]interface{}{ + "akeylessGWApiURL": map[string]interface{}{ + "description": "Akeyless GW API Url from which the secrets to be fetched from.", + "type": "string", + }, + "authSecretRef": map[string]interface{}{ + "description": "Auth configures how the operator authenticates with Akeyless.", + "properties": map[string]interface{}{ + "kubernetesAuth": map[string]interface{}{ + "description": "Kubernetes authenticates with Akeyless by passing the ServiceAccount token stored in the named Secret resource.", + "properties": map[string]interface{}{ + "accessID": map[string]interface{}{ + "description": "the Akeyless Kubernetes auth-method access-id", + "type": "string", + }, + "k8sConfName": map[string]interface{}{ + "description": "Kubernetes-auth configuration name in Akeyless-Gateway", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Akeyless. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Akeyless. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessID", + "k8sConfName", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a Secret that contains the details to authenticate with Akeyless.", + "properties": map[string]interface{}{ + "accessID": map[string]interface{}{ + "description": "The SecretAccessID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessType": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessTypeParam": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM/base64 encoded CA bundle used to validate Akeyless Gateway certificate. Only used if the AkeylessGWApiURL URL is using HTTPS protocol. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Akeyless Gateway certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "akeylessGWApiURL", + "authSecretRef", + }, + "type": "object", + }, + "alibaba": map[string]interface{}{ + "description": "Alibaba configures this store to sync secrets using Alibaba Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "AlibabaAuth contains a secretRef for credentials.", + "properties": map[string]interface{}{ + "rrsa": map[string]interface{}{ + "description": "Authenticate against Alibaba using RRSA.", + "properties": map[string]interface{}{ + "oidcProviderArn": map[string]interface{}{ + "type": "string", + }, + "oidcTokenFilePath": map[string]interface{}{ + "type": "string", + }, + "roleArn": map[string]interface{}{ + "type": "string", + }, + "sessionName": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "oidcProviderArn", + "oidcTokenFilePath", + "roleArn", + "sessionName", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AlibabaAuthSecretRef holds secret references for Alibaba credentials.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessKeySecretSecretRef": map[string]interface{}{ + "description": "The AccessKeySecret is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessKeyIDSecretRef", + "accessKeySecretSecretRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "regionID": map[string]interface{}{ + "description": "Alibaba Region to be used for the provider", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "regionID", + }, + "type": "object", + }, + "aws": map[string]interface{}{ + "description": "AWS configures this store to sync secrets using AWS Secret Manager provider", + "properties": map[string]interface{}{ + "additionalRoles": map[string]interface{}{ + "description": "AdditionalRoles is a chained list of Role ARNs which the provider will sequentially assume before assuming the Role", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against AWS if not set aws sdk will infer credentials from your environment see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "properties": map[string]interface{}{ + "jwt": map[string]interface{}{ + "description": "Authenticate against AWS using service account tokens.", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AWSAuthSecretRef holds secret references for AWS credentials both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "sessionTokenSecretRef": map[string]interface{}{ + "description": "The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "externalID": map[string]interface{}{ + "description": "AWS External ID set on assumed IAM roles", + "type": "string", + }, + "region": map[string]interface{}{ + "description": "AWS Region to be used for the provider", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a Role ARN which the provider will assume", + "type": "string", + }, + "secretsManager": map[string]interface{}{ + "description": "SecretsManager defines how the provider behaves when interacting with AWS SecretsManager", + "properties": map[string]interface{}{ + "forceDeleteWithoutRecovery": map[string]interface{}{ + "description": "Specifies whether to delete the secret without any recovery window. You can't use both this parameter and RecoveryWindowInDays in the same call. If you don't use either, then by default Secrets Manager uses a 30 day recovery window. see: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html#SecretsManager-DeleteSecret-request-ForceDeleteWithoutRecovery", + "type": "boolean", + }, + "recoveryWindowInDays": map[string]interface{}{ + "description": "The number of days from 7 to 30 that Secrets Manager waits before permanently deleting the secret. You can't use both this parameter and ForceDeleteWithoutRecovery in the same call. If you don't use either, then by default Secrets Manager uses a 30 day recovery window. see: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html#SecretsManager-DeleteSecret-request-RecoveryWindowInDays", + "format": "int64", + "type": "integer", + }, + }, + "type": "object", + }, + "service": map[string]interface{}{ + "description": "Service defines which service should be used to fetch the secrets", + "enum": []interface{}{ + "SecretsManager", + "ParameterStore", + }, + "type": "string", + }, + "sessionTags": map[string]interface{}{ + "description": "AWS STS assume role session tags", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "value": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "key", + "value", + }, + "type": "object", + }, + "type": "array", + }, + "transitiveTagKeys": map[string]interface{}{ + "description": "AWS STS assume role transitive session tags. Required when multiple rules are used with the provider", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "region", + "service", + }, + "type": "object", + }, + "azurekv": map[string]interface{}{ + "description": "AzureKV configures this store to sync secrets using Azure Key Vault provider", + "properties": map[string]interface{}{ + "authSecretRef": map[string]interface{}{ + "description": "Auth configures how the operator authenticates with Azure. Required for ServicePrincipal auth type.", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "description": "The Azure clientId of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientSecret": map[string]interface{}{ + "description": "The Azure ClientSecret of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "authType": map[string]interface{}{ + "default": "ServicePrincipal", + "description": "Auth type defines how to authenticate to the keyvault service. Valid values are: - \"ServicePrincipal\" (default): Using a service principal (tenantId, clientId, clientSecret) - \"ManagedIdentity\": Using Managed Identity assigned to the pod (see aad-pod-identity)", + "enum": []interface{}{ + "ServicePrincipal", + "ManagedIdentity", + "WorkloadIdentity", + }, + "type": "string", + }, + "environmentType": map[string]interface{}{ + "default": "PublicCloud", + "description": "EnvironmentType specifies the Azure cloud environment endpoints to use for connecting and authenticating with Azure. By default it points to the public cloud AAD endpoint. The following endpoints are available, also see here: https://github.com/Azure/go-autorest/blob/main/autorest/azure/environments.go#L152 PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud", + "enum": []interface{}{ + "PublicCloud", + "USGovernmentCloud", + "ChinaCloud", + "GermanCloud", + }, + "type": "string", + }, + "identityId": map[string]interface{}{ + "description": "If multiple Managed Identity is assigned to the pod, you can select the one to be used", + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "tenantId": map[string]interface{}{ + "description": "TenantID configures the Azure Tenant to send requests to. Required for ServicePrincipal auth type.", + "type": "string", + }, + "vaultUrl": map[string]interface{}{ + "description": "Vault Url from which the secrets to be fetched from.", + "type": "string", + }, + }, + "required": []interface{}{ + "vaultUrl", + }, + "type": "object", + }, + "conjur": map[string]interface{}{ + "description": "Conjur configures this store to sync secrets using conjur provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "properties": map[string]interface{}{ + "apikey": map[string]interface{}{ + "properties": map[string]interface{}{ + "account": map[string]interface{}{ + "type": "string", + }, + "apiKeyRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "userRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "account", + "apiKeyRef", + "userRef", + }, + "type": "object", + }, + "jwt": map[string]interface{}{ + "properties": map[string]interface{}{ + "account": map[string]interface{}{ + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Conjur using the JWT authentication method.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional ServiceAccountRef specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "serviceID": map[string]interface{}{ + "description": "The conjur authn jwt webservice id", + "type": "string", + }, + }, + "required": []interface{}{ + "account", + "serviceID", + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "Used to provide custom certificate authority (CA) certificates for a secret store. The CAProvider points to a Secret or ConfigMap resource that contains a PEM-encoded certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "url": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "url", + }, + "type": "object", + }, + "delinea": map[string]interface{}{ + "description": "Delinea DevOps Secrets Vault https://docs.delinea.com/online-help/products/devops-secrets-vault/current", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "description": "ClientID is the non-secret part of the credential.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef references a key in a secret that will be used as value.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "value": map[string]interface{}{ + "description": "Value can be specified directly to set a value without using a secret.", + "type": "string", + }, + }, + "type": "object", + }, + "clientSecret": map[string]interface{}{ + "description": "ClientSecret is the secret part of the credential.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef references a key in a secret that will be used as value.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "value": map[string]interface{}{ + "description": "Value can be specified directly to set a value without using a secret.", + "type": "string", + }, + }, + "type": "object", + }, + "tenant": map[string]interface{}{ + "description": "Tenant is the chosen hostname / site name.", + "type": "string", + }, + "tld": map[string]interface{}{ + "description": "TLD is based on the server location that was chosen during provisioning. If unset, defaults to \"com\".", + "type": "string", + }, + "urlTemplate": map[string]interface{}{ + "description": "URLTemplate If unset, defaults to \"https://%s.secretsvaultcloud.%s/v1/%s%s\".", + "type": "string", + }, + }, + "required": []interface{}{ + "clientId", + "clientSecret", + "tenant", + }, + "type": "object", + }, + "doppler": map[string]interface{}{ + "description": "Doppler configures this store to sync secrets using the Doppler provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how the Operator authenticates with the Doppler API", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "dopplerToken": map[string]interface{}{ + "description": "The DopplerToken is used for authentication. See https://docs.doppler.com/reference/api#authentication for auth token types. The Key attribute defaults to dopplerToken if not specified.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "dopplerToken", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretRef", + }, + "type": "object", + }, + "config": map[string]interface{}{ + "description": "Doppler config (required if not using a Service Token)", + "type": "string", + }, + "format": map[string]interface{}{ + "description": "Format enables the downloading of secrets as a file (string)", + "enum": []interface{}{ + "json", + "dotnet-json", + "env", + "yaml", + "docker", + }, + "type": "string", + }, + "nameTransformer": map[string]interface{}{ + "description": "Environment variable compatible name transforms that change secret names to a different format", + "enum": []interface{}{ + "upper-camel", + "camel", + "lower-snake", + "tf-var", + "dotnet-env", + "lower-kebab", + }, + "type": "string", + }, + "project": map[string]interface{}{ + "description": "Doppler project (required if not using a Service Token)", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "fake": map[string]interface{}{ + "description": "Fake configures a store with static key/value pairs", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "value": map[string]interface{}{ + "type": "string", + }, + "valueMap": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Deprecated: ValueMap is deprecated and is intended to be removed in the future, use the `value` field instead.", + "type": "object", + }, + "version": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "data", + }, + "type": "object", + }, + "gcpsm": map[string]interface{}{ + "description": "GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against GCP", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "workloadIdentity": map[string]interface{}{ + "properties": map[string]interface{}{ + "clusterLocation": map[string]interface{}{ + "type": "string", + }, + "clusterName": map[string]interface{}{ + "type": "string", + }, + "clusterProjectID": map[string]interface{}{ + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "clusterLocation", + "clusterName", + "serviceAccountRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID project where secret is located", + "type": "string", + }, + }, + "type": "object", + }, + "gitlab": map[string]interface{}{ + "description": "GitLab configures this store to sync secrets using GitLab Variables provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with a GitLab instance.", + "properties": map[string]interface{}{ + "SecretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "accessToken": map[string]interface{}{ + "description": "AccessToken is used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "SecretRef", + }, + "type": "object", + }, + "environment": map[string]interface{}{ + "description": "Environment environment_scope of gitlab CI/CD variables (Please see https://docs.gitlab.com/ee/ci/environments/#create-a-static-environment on how to create environments)", + "type": "string", + }, + "groupIDs": map[string]interface{}{ + "description": "GroupIDs specify, which gitlab groups to pull secrets from. Group secrets are read from left to right followed by the project variables.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "inheritFromGroups": map[string]interface{}{ + "description": "InheritFromGroups specifies whether parent groups should be discovered and checked for secrets.", + "type": "boolean", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID specifies a project where secrets are located.", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "URL configures the GitLab instance URL. Defaults to https://gitlab.com/.", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "ibm": map[string]interface{}{ + "description": "IBM configures this store to sync secrets using IBM Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the IBM secrets manager.", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "containerAuth": map[string]interface{}{ + "description": "IBM Container-based auth with IAM Trusted Profile.", + "properties": map[string]interface{}{ + "iamEndpoint": map[string]interface{}{ + "type": "string", + }, + "profile": map[string]interface{}{ + "description": "the IBM Trusted Profile", + "type": "string", + }, + "tokenLocation": map[string]interface{}{ + "description": "Location the token is mounted on the pod", + "type": "string", + }, + }, + "required": []interface{}{ + "profile", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretApiKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "serviceUrl": map[string]interface{}{ + "description": "ServiceURL is the Endpoint URL that is specific to the Secrets Manager service instance", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "keepersecurity": map[string]interface{}{ + "description": "KeeperSecurity configures this store to sync secrets using the KeeperSecurity provider", + "properties": map[string]interface{}{ + "authRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "folderID": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "authRef", + "folderID", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes configures this store to sync secrets using a Kubernetes cluster provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with a Kubernetes instance.", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "cert": map[string]interface{}{ + "description": "has both clientCert and clientKey as secretKeySelector", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientKey": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "serviceAccount": map[string]interface{}{ + "description": "points to a service account that should be used for authentication", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "token": map[string]interface{}{ + "description": "use static token to authenticate with", + "properties": map[string]interface{}{ + "bearerToken": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "remoteNamespace": map[string]interface{}{ + "default": "default", + "description": "Remote namespace to fetch the secrets from", + "type": "string", + }, + "server": map[string]interface{}{ + "description": "configures the Kubernetes server Address.", + "properties": map[string]interface{}{ + "caBundle": map[string]interface{}{ + "description": "CABundle is a base64-encoded CA certificate", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "see: https://external-secrets.io/v0.4.1/spec/#external-secrets.io/v1alpha1.CAProvider", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "url": map[string]interface{}{ + "default": "kubernetes.default", + "description": "configures the Kubernetes server Address.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "onepassword": map[string]interface{}{ + "description": "OnePassword configures this store to sync secrets using the 1Password Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against OnePassword Connect Server", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "OnePasswordAuthSecretRef holds secret references for 1Password credentials.", + "properties": map[string]interface{}{ + "connectTokenSecretRef": map[string]interface{}{ + "description": "The ConnectToken is used for authentication to a 1Password Connect Server.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "connectTokenSecretRef", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretRef", + }, + "type": "object", + }, + "connectHost": map[string]interface{}{ + "description": "ConnectHost defines the OnePassword Connect Server to connect to", + "type": "string", + }, + "vaults": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "integer", + }, + "description": "Vaults defines which OnePassword vaults to search in which order", + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + "connectHost", + "vaults", + }, + "type": "object", + }, + "oracle": map[string]interface{}{ + "description": "Oracle configures this store to sync secrets using Oracle Vault provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Oracle Vault. If empty, use the instance principal, otherwise the user credentials specified in Auth.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef to pass through sensitive information.", + "properties": map[string]interface{}{ + "fingerprint": map[string]interface{}{ + "description": "Fingerprint is the fingerprint of the API private key.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "privatekey": map[string]interface{}{ + "description": "PrivateKey is the user's API Signing Key in PEM format, used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "fingerprint", + "privatekey", + }, + "type": "object", + }, + "tenancy": map[string]interface{}{ + "description": "Tenancy is the tenancy OCID where user is located.", + "type": "string", + }, + "user": map[string]interface{}{ + "description": "User is an access OCID specific to the account.", + "type": "string", + }, + }, + "required": []interface{}{ + "secretRef", + "tenancy", + "user", + }, + "type": "object", + }, + "compartment": map[string]interface{}{ + "description": "Compartment is the vault compartment OCID. Required for PushSecret", + "type": "string", + }, + "encryptionKey": map[string]interface{}{ + "description": "EncryptionKey is the OCID of the encryption key within the vault. Required for PushSecret", + "type": "string", + }, + "principalType": map[string]interface{}{ + "description": "The type of principal to use for authentication. If left blank, the Auth struct will determine the principal type. This optional field must be specified if using workload identity.", + "enum": []interface{}{ + "", + "UserPrincipal", + "InstancePrincipal", + "Workload", + }, + "type": "string", + }, + "region": map[string]interface{}{ + "description": "Region is the region where vault is located.", + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "vault": map[string]interface{}{ + "description": "Vault is the vault's OCID of the specific vault where secret is located.", + "type": "string", + }, + }, + "required": []interface{}{ + "region", + "vault", + }, + "type": "object", + }, + "scaleway": map[string]interface{}{ + "description": "Scaleway", + "properties": map[string]interface{}{ + "accessKey": map[string]interface{}{ + "description": "AccessKey is the non-secret part of the api key.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef references a key in a secret that will be used as value.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "value": map[string]interface{}{ + "description": "Value can be specified directly to set a value without using a secret.", + "type": "string", + }, + }, + "type": "object", + }, + "apiUrl": map[string]interface{}{ + "description": "APIURL is the url of the api to use. Defaults to https://api.scaleway.com", + "type": "string", + }, + "projectId": map[string]interface{}{ + "description": "ProjectID is the id of your project, which you can find in the console: https://console.scaleway.com/project/settings", + "type": "string", + }, + "region": map[string]interface{}{ + "description": "Region where your secrets are located: https://developers.scaleway.com/en/quickstart/#region-and-zone", + "type": "string", + }, + "secretKey": map[string]interface{}{ + "description": "SecretKey is the non-secret part of the api key.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef references a key in a secret that will be used as value.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "value": map[string]interface{}{ + "description": "Value can be specified directly to set a value without using a secret.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessKey", + "projectId", + "region", + "secretKey", + }, + "type": "object", + }, + "senhasegura": map[string]interface{}{ + "description": "Senhasegura configures this store to sync secrets using senhasegura provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines parameters to authenticate in senhasegura", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "type": "string", + }, + "clientSecretSecretRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "clientId", + "clientSecretSecretRef", + }, + "type": "object", + }, + "ignoreSslCertificate": map[string]interface{}{ + "default": false, + "description": "IgnoreSslCertificate defines if SSL certificate must be ignored", + "type": "boolean", + }, + "module": map[string]interface{}{ + "description": "Module defines which senhasegura module should be used to get secrets", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "URL of senhasegura", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "module", + "url", + }, + "type": "object", + }, + "vault": map[string]interface{}{ + "description": "Vault configures this store to sync secrets using Hashi provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Vault server.", + "properties": map[string]interface{}{ + "appRole": map[string]interface{}{ + "description": "AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "approle", + "description": "Path where the App Role authentication backend is mounted in Vault, e.g: \"approle\"", + "type": "string", + }, + "roleId": map[string]interface{}{ + "description": "RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault.", + "type": "string", + }, + "roleRef": map[string]interface{}{ + "description": "Reference to a key in a Secret that contains the App Role ID used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role id.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + "secretRef", + }, + "type": "object", + }, + "cert": map[string]interface{}{ + "description": "Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "ClientCert is a certificate to authenticate using the Cert Vault authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "iam": map[string]interface{}{ + "description": "Iam authenticates with vault by passing a special AWS request signed with AWS IAM credentials AWS IAM authentication method", + "properties": map[string]interface{}{ + "externalID": map[string]interface{}{ + "description": "AWS External ID set on assumed IAM roles", + "type": "string", + }, + "jwt": map[string]interface{}{ + "description": "Specify a service account with IRSA enabled", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "path": map[string]interface{}{ + "description": "Path where the AWS auth method is enabled in Vault, e.g: \"aws\"", + "type": "string", + }, + "region": map[string]interface{}{ + "description": "AWS region", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "This is the AWS role to be assumed before talking to vault", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Specify credentials in a Secret object", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "sessionTokenSecretRef": map[string]interface{}{ + "description": "The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "vaultAwsIamServerID": map[string]interface{}{ + "description": "X-Vault-AWS-IAM-Server-ID is an additional header used by Vault IAM auth method to mitigate against different types of replay attacks. More details here: https://developer.hashicorp.com/vault/docs/auth/aws", + "type": "string", + }, + "vaultRole": map[string]interface{}{ + "description": "Vault Role. In vault, a role describes an identity with a set of permissions, groups, or policies you want to attach a user of the secrets engine", + "type": "string", + }, + }, + "required": []interface{}{ + "vaultRole", + }, + "type": "object", + }, + "jwt": map[string]interface{}{ + "description": "Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method", + "properties": map[string]interface{}{ + "kubernetesServiceAccountToken": map[string]interface{}{ + "description": "Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. Deprecated: use serviceAccountRef.Audiences instead", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "expirationSeconds": map[string]interface{}{ + "description": "Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Deprecated: this will be removed in the future. Defaults to 10 minutes.", + "format": "int64", + "type": "integer", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Service account field containing the name of a kubernetes ServiceAccount.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "serviceAccountRef", + }, + "type": "object", + }, + "path": map[string]interface{}{ + "default": "jwt", + "description": "Path where the JWT authentication backend is mounted in Vault, e.g: \"jwt\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.", + "properties": map[string]interface{}{ + "mountPath": map[string]interface{}{ + "default": "kubernetes", + "description": "Path where the Kubernetes authentication backend is mounted in Vault, e.g: \"kubernetes\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies.", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "mountPath", + "role", + }, + "type": "object", + }, + "ldap": map[string]interface{}{ + "description": "Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "ldap", + "description": "Path where the LDAP authentication backend is mounted in Vault, e.g: \"ldap\"", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "username": map[string]interface{}{ + "description": "Username is a LDAP user name used to authenticate using the LDAP Vault authentication method", + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "username", + }, + "type": "object", + }, + "tokenSecretRef": map[string]interface{}{ + "description": "TokenSecretRef authenticates with Vault by presenting a token.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "userPass": map[string]interface{}{ + "description": "UserPass authenticates with Vault by passing username/password pair", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "user", + "description": "Path where the UserPassword authentication backend is mounted in Vault, e.g: \"user\"", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing password for the user used to authenticate with Vault using the UserPass authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "username": map[string]interface{}{ + "description": "Username is a user name used to authenticate using the UserPass Vault authentication method", + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "username", + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Vault server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "forwardInconsistent": map[string]interface{}{ + "description": "ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header", + "type": "boolean", + }, + "namespace": map[string]interface{}{ + "description": "Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: \"ns1\". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces", + "type": "string", + }, + "path": map[string]interface{}{ + "description": "Path is the mount path of the Vault KV backend endpoint, e.g: \"secret\". The v2 KV secret engine version specific \"/data\" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.", + "type": "string", + }, + "readYourWrites": map[string]interface{}{ + "description": "ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency", + "type": "boolean", + }, + "server": map[string]interface{}{ + "description": "Server is the connection address for the Vault server, e.g: \"https://vault.example.com:8200\".", + "type": "string", + }, + "version": map[string]interface{}{ + "default": "v2", + "description": "Version is the Vault KV secret engine version. This can be either \"v1\" or \"v2\". Version defaults to \"v2\".", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "server", + }, + "type": "object", + }, + "webhook": map[string]interface{}{ + "description": "Webhook configures this store to sync secrets using a generic templated webhook", + "properties": map[string]interface{}{ + "body": map[string]interface{}{ + "description": "Body", + "type": "string", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate webhook server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate webhook server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "headers": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Headers", + "type": "object", + }, + "method": map[string]interface{}{ + "description": "Webhook Method", + "type": "string", + }, + "result": map[string]interface{}{ + "description": "Result formatting", + "properties": map[string]interface{}{ + "jsonPath": map[string]interface{}{ + "description": "Json path of return value", + "type": "string", + }, + }, + "type": "object", + }, + "secrets": map[string]interface{}{ + "description": "Secrets to fill in templates These secrets will be passed to the templating function as key value pairs under the given name", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "name": map[string]interface{}{ + "description": "Name of this secret in templates", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Secret ref to fill in credentials", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "name", + "secretRef", + }, + "type": "object", + }, + "type": "array", + }, + "timeout": map[string]interface{}{ + "description": "Timeout", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "Webhook url to call", + "type": "string", + }, + }, + "required": []interface{}{ + "result", + "url", + }, + "type": "object", + }, + "yandexcertificatemanager": map[string]interface{}{ + "description": "YandexCertificateManager configures this store to sync secrets using Yandex Certificate Manager provider", + "properties": map[string]interface{}{ + "apiEndpoint": map[string]interface{}{ + "description": "Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443')", + "type": "string", + }, + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against Yandex Certificate Manager", + "properties": map[string]interface{}{ + "authorizedKeySecretRef": map[string]interface{}{ + "description": "The authorized key used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Yandex.Cloud server certificate.", + "properties": map[string]interface{}{ + "certSecretRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "yandexlockbox": map[string]interface{}{ + "description": "YandexLockbox configures this store to sync secrets using Yandex Lockbox provider", + "properties": map[string]interface{}{ + "apiEndpoint": map[string]interface{}{ + "description": "Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443')", + "type": "string", + }, + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against Yandex Lockbox", + "properties": map[string]interface{}{ + "authorizedKeySecretRef": map[string]interface{}{ + "description": "The authorized key used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Yandex.Cloud server certificate.", + "properties": map[string]interface{}{ + "certSecretRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + }, + "type": "object", + }, + "refreshInterval": map[string]interface{}{ + "description": "Used to configure store refresh interval in seconds. Empty or 0 will default to the controller config.", + "type": "integer", + }, + "retrySettings": map[string]interface{}{ + "description": "Used to configure http retries if failed", + "properties": map[string]interface{}{ + "maxRetries": map[string]interface{}{ + "format": "int32", + "type": "integer", + }, + "retryInterval": map[string]interface{}{ + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "provider", + }, + "type": "object", + }, + "status": map[string]interface{}{ + "description": "SecretStoreStatus defines the observed state of the SecretStore.", + "properties": map[string]interface{}{ + "capabilities": map[string]interface{}{ + "description": "SecretStoreCapabilities defines the possible operations a SecretStore can do.", + "type": "string", + }, + "conditions": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "lastTransitionTime": map[string]interface{}{ + "format": "date-time", + "type": "string", + }, + "message": map[string]interface{}{ + "type": "string", + }, + "reason": map[string]interface{}{ + "type": "string", + }, + "status": map[string]interface{}{ + "type": "string", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "status", + "type", + }, + "type": "object", + }, + "type": "array", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDClustersecretstoresExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDEcrauthorizationtokensGeneratorsExternalSecretsIo creates the CustomResourceDefinition resource with name ecrauthorizationtokens.generators.external-secrets.io. +func CreateCRDEcrauthorizationtokensGeneratorsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/ecrauthorizationtoken.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "ecrauthorizationtokens.generators.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "generators.external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "ecrauthorizationtoken", + }, + "kind": "ECRAuthorizationToken", + "listKind": "ECRAuthorizationTokenList", + "plural": "ecrauthorizationtokens", + "shortNames": []interface{}{ + "ecrauthorizationtoken", + }, + "singular": "ecrauthorizationtoken", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "ECRAuthorizationTokenSpec uses the GetAuthorizationToken API to retrieve an authorization token. The authorization token is valid for 12 hours. The authorizationToken returned is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. For more information, see Registry authentication (https://docs.aws.amazon.com/AmazonECR/latest/userguide/Registries.html#registry_auth) in the Amazon Elastic Container Registry User Guide.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines how to authenticate with AWS", + "properties": map[string]interface{}{ + "jwt": map[string]interface{}{ + "description": "Authenticate against AWS using service account tokens.", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AWSAuthSecretRef holds secret references for AWS credentials both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "sessionTokenSecretRef": map[string]interface{}{ + "description": "The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "region": map[string]interface{}{ + "description": "Region specifies the region to operate in.", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "You can assume a role before making calls to the desired AWS service.", + "type": "string", + }, + }, + "required": []interface{}{ + "region", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDEcrauthorizationtokensGeneratorsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDExternalsecretsExternalSecretsIo creates the CustomResourceDefinition resource with name externalsecrets.external-secrets.io. +func CreateCRDExternalsecretsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/externalsecret.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "externalsecrets.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "externalsecrets", + }, + "kind": "ExternalSecret", + "listKind": "ExternalSecretList", + "plural": "externalsecrets", + "shortNames": []interface{}{ + "es", + }, + "singular": "externalsecret", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "additionalPrinterColumns": []interface{}{ + map[string]interface{}{ + "jsonPath": ".spec.secretStoreRef.name", + "name": "Store", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".spec.refreshInterval", + "name": "Refresh Interval", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].reason", + "name": "Status", + "type": "string", + }, + }, + "deprecated": true, + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "ExternalSecret is the Schema for the external-secrets API.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "ExternalSecretSpec defines the desired state of ExternalSecret.", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "description": "Data defines the connection between the Kubernetes Secret keys and the Provider data", + "items": map[string]interface{}{ + "description": "ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.) and the Provider data.", + "properties": map[string]interface{}{ + "remoteRef": map[string]interface{}{ + "description": "ExternalSecretDataRemoteRef defines Provider data location.", + "properties": map[string]interface{}{ + "conversionStrategy": map[string]interface{}{ + "default": "Default", + "description": "Used to define a conversion Strategy", + "enum": []interface{}{ + "Default", + "Unicode", + }, + "type": "string", + }, + "key": map[string]interface{}{ + "description": "Key is the key used in the Provider, mandatory", + "type": "string", + }, + "property": map[string]interface{}{ + "description": "Used to select a specific property of the Provider value (if a map), if supported", + "type": "string", + }, + "version": map[string]interface{}{ + "description": "Used to select a specific version of the Provider value, if supported", + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "secretKey": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "remoteRef", + "secretKey", + }, + "type": "object", + }, + "type": "array", + }, + "dataFrom": map[string]interface{}{ + "description": "DataFrom is used to fetch all properties from a specific Provider data If multiple entries are specified, the Secret keys are merged in the specified order", + "items": map[string]interface{}{ + "description": "ExternalSecretDataRemoteRef defines Provider data location.", + "properties": map[string]interface{}{ + "conversionStrategy": map[string]interface{}{ + "default": "Default", + "description": "Used to define a conversion Strategy", + "enum": []interface{}{ + "Default", + "Unicode", + }, + "type": "string", + }, + "key": map[string]interface{}{ + "description": "Key is the key used in the Provider, mandatory", + "type": "string", + }, + "property": map[string]interface{}{ + "description": "Used to select a specific property of the Provider value (if a map), if supported", + "type": "string", + }, + "version": map[string]interface{}{ + "description": "Used to select a specific version of the Provider value, if supported", + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "refreshInterval": map[string]interface{}{ + "default": "1h", + "description": "RefreshInterval is the amount of time before the values are read again from the SecretStore provider Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\" May be set to zero to fetch and create it once. Defaults to 1h.", + "type": "string", + }, + "secretStoreRef": map[string]interface{}{ + "description": "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.", + "properties": map[string]interface{}{ + "kind": map[string]interface{}{ + "description": "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Name of the SecretStore resource", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "target": map[string]interface{}{ + "description": "ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret.", + "properties": map[string]interface{}{ + "creationPolicy": map[string]interface{}{ + "default": "Owner", + "description": "CreationPolicy defines rules on how to create the resulting Secret Defaults to 'Owner'", + "enum": []interface{}{ + "Owner", + "Merge", + "None", + }, + "type": "string", + }, + "immutable": map[string]interface{}{ + "description": "Immutable defines if the final secret will be immutable", + "type": "boolean", + }, + "name": map[string]interface{}{ + "description": "Name defines the name of the Secret resource to be managed This field is immutable Defaults to the .metadata.name of the ExternalSecret resource", + "type": "string", + }, + "template": map[string]interface{}{ + "description": "Template defines a blueprint for the created Secret resource.", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "engineVersion": map[string]interface{}{ + "default": "v1", + "description": "EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[].", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + "metadata": map[string]interface{}{ + "description": "ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint.", + "properties": map[string]interface{}{ + "annotations": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "labels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + }, + "type": "object", + }, + "templateFrom": map[string]interface{}{ + "items": map[string]interface{}{ + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "configMap": map[string]interface{}{ + "properties": map[string]interface{}{ + "items": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "items", + "name", + }, + "type": "object", + }, + "secret": map[string]interface{}{ + "properties": map[string]interface{}{ + "items": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "items", + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "type": "array", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretStoreRef", + "target", + }, + "type": "object", + }, + "status": map[string]interface{}{ + "properties": map[string]interface{}{ + "binding": map[string]interface{}{ + "description": "Binding represents a servicebinding.io Provisioned Service reference to the secret", + "properties": map[string]interface{}{ + "name": map[string]interface{}{ + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?", + "type": "string", + }, + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + }, + "conditions": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "lastTransitionTime": map[string]interface{}{ + "format": "date-time", + "type": "string", + }, + "message": map[string]interface{}{ + "type": "string", + }, + "reason": map[string]interface{}{ + "type": "string", + }, + "status": map[string]interface{}{ + "type": "string", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "status", + "type", + }, + "type": "object", + }, + "type": "array", + }, + "refreshTime": map[string]interface{}{ + "description": "refreshTime is the time and date the external secret was fetched and the target secret updated", + "format": "date-time", + "nullable": true, + "type": "string", + }, + "syncedResourceVersion": map[string]interface{}{ + "description": "SyncedResourceVersion keeps track of the last synced version", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": false, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + map[string]interface{}{ + "additionalPrinterColumns": []interface{}{ + map[string]interface{}{ + "jsonPath": ".spec.secretStoreRef.name", + "name": "Store", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".spec.refreshInterval", + "name": "Refresh Interval", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].reason", + "name": "Status", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].status", + "name": "Ready", + "type": "string", + }, + }, + "name": "v1beta1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "ExternalSecret is the Schema for the external-secrets API.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "ExternalSecretSpec defines the desired state of ExternalSecret.", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "description": "Data defines the connection between the Kubernetes Secret keys and the Provider data", + "items": map[string]interface{}{ + "description": "ExternalSecretData defines the connection between the Kubernetes Secret key (spec.data.) and the Provider data.", + "properties": map[string]interface{}{ + "remoteRef": map[string]interface{}{ + "description": "RemoteRef points to the remote secret and defines which secret (version/property/..) to fetch.", + "properties": map[string]interface{}{ + "conversionStrategy": map[string]interface{}{ + "default": "Default", + "description": "Used to define a conversion Strategy", + "enum": []interface{}{ + "Default", + "Unicode", + }, + "type": "string", + }, + "decodingStrategy": map[string]interface{}{ + "default": "None", + "description": "Used to define a decoding Strategy", + "enum": []interface{}{ + "Auto", + "Base64", + "Base64URL", + "None", + }, + "type": "string", + }, + "key": map[string]interface{}{ + "description": "Key is the key used in the Provider, mandatory", + "type": "string", + }, + "metadataPolicy": map[string]interface{}{ + "default": "None", + "description": "Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None", + "enum": []interface{}{ + "None", + "Fetch", + }, + "type": "string", + }, + "property": map[string]interface{}{ + "description": "Used to select a specific property of the Provider value (if a map), if supported", + "type": "string", + }, + "version": map[string]interface{}{ + "description": "Used to select a specific version of the Provider value, if supported", + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "secretKey": map[string]interface{}{ + "description": "SecretKey defines the key in which the controller stores the value. This is the key in the Kind=Secret", + "type": "string", + }, + "sourceRef": map[string]interface{}{ + "description": "SourceRef allows you to override the source from which the value will pulled from.", + "maxProperties": 1, + "properties": map[string]interface{}{ + "generatorRef": map[string]interface{}{ + "description": `GeneratorRef points to a generator custom resource. + Deprecated: The generatorRef is not implemented in .data[]. this will be removed with v1.`, + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "default": "generators.external-secrets.io/v1alpha1", + "description": "Specify the apiVersion of the generator resource", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Specify the Kind of the resource, e.g. Password, ACRAccessToken etc.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Specify the name of the generator resource", + "type": "string", + }, + }, + "required": []interface{}{ + "kind", + "name", + }, + "type": "object", + }, + "storeRef": map[string]interface{}{ + "description": "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.", + "properties": map[string]interface{}{ + "kind": map[string]interface{}{ + "description": "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Name of the SecretStore resource", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "remoteRef", + "secretKey", + }, + "type": "object", + }, + "type": "array", + }, + "dataFrom": map[string]interface{}{ + "description": "DataFrom is used to fetch all properties from a specific Provider data If multiple entries are specified, the Secret keys are merged in the specified order", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "extract": map[string]interface{}{ + "description": "Used to extract multiple key/value pairs from one secret Note: Extract does not support sourceRef.Generator or sourceRef.GeneratorRef.", + "properties": map[string]interface{}{ + "conversionStrategy": map[string]interface{}{ + "default": "Default", + "description": "Used to define a conversion Strategy", + "enum": []interface{}{ + "Default", + "Unicode", + }, + "type": "string", + }, + "decodingStrategy": map[string]interface{}{ + "default": "None", + "description": "Used to define a decoding Strategy", + "enum": []interface{}{ + "Auto", + "Base64", + "Base64URL", + "None", + }, + "type": "string", + }, + "key": map[string]interface{}{ + "description": "Key is the key used in the Provider, mandatory", + "type": "string", + }, + "metadataPolicy": map[string]interface{}{ + "default": "None", + "description": "Policy for fetching tags/labels from provider secrets, possible options are Fetch, None. Defaults to None", + "enum": []interface{}{ + "None", + "Fetch", + }, + "type": "string", + }, + "property": map[string]interface{}{ + "description": "Used to select a specific property of the Provider value (if a map), if supported", + "type": "string", + }, + "version": map[string]interface{}{ + "description": "Used to select a specific version of the Provider value, if supported", + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "find": map[string]interface{}{ + "description": "Used to find secrets based on tags or regular expressions Note: Find does not support sourceRef.Generator or sourceRef.GeneratorRef.", + "properties": map[string]interface{}{ + "conversionStrategy": map[string]interface{}{ + "default": "Default", + "description": "Used to define a conversion Strategy", + "enum": []interface{}{ + "Default", + "Unicode", + }, + "type": "string", + }, + "decodingStrategy": map[string]interface{}{ + "default": "None", + "description": "Used to define a decoding Strategy", + "enum": []interface{}{ + "Auto", + "Base64", + "Base64URL", + "None", + }, + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Finds secrets based on the name.", + "properties": map[string]interface{}{ + "regexp": map[string]interface{}{ + "description": "Finds secrets base", + "type": "string", + }, + }, + "type": "object", + }, + "path": map[string]interface{}{ + "description": "A root path to start the find operations.", + "type": "string", + }, + "tags": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Find secrets based on tags.", + "type": "object", + }, + }, + "type": "object", + }, + "rewrite": map[string]interface{}{ + "description": "Used to rewrite secret Keys after getting them from the secret Provider Multiple Rewrite operations can be provided. They are applied in a layered order (first to last)", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "regexp": map[string]interface{}{ + "description": "Used to rewrite with regular expressions. The resulting key will be the output of a regexp.ReplaceAll operation.", + "properties": map[string]interface{}{ + "source": map[string]interface{}{ + "description": "Used to define the regular expression of a re.Compiler.", + "type": "string", + }, + "target": map[string]interface{}{ + "description": "Used to define the target pattern of a ReplaceAll operation.", + "type": "string", + }, + }, + "required": []interface{}{ + "source", + "target", + }, + "type": "object", + }, + "transform": map[string]interface{}{ + "description": "Used to apply string transformation on the secrets. The resulting key will be the output of the template applied by the operation.", + "properties": map[string]interface{}{ + "template": map[string]interface{}{ + "description": "Used to define the template to apply on the secret name. `.value ` will specify the secret name in the template.", + "type": "string", + }, + }, + "required": []interface{}{ + "template", + }, + "type": "object", + }, + }, + "type": "object", + }, + "type": "array", + }, + "sourceRef": map[string]interface{}{ + "description": "SourceRef points to a store or generator which contains secret values ready to use. Use this in combination with Extract or Find pull values out of a specific SecretStore. When sourceRef points to a generator Extract or Find is not supported. The generator returns a static map of values", + "maxProperties": 1, + "properties": map[string]interface{}{ + "generatorRef": map[string]interface{}{ + "description": "GeneratorRef points to a generator custom resource.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "default": "generators.external-secrets.io/v1alpha1", + "description": "Specify the apiVersion of the generator resource", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Specify the Kind of the resource, e.g. Password, ACRAccessToken etc.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Specify the name of the generator resource", + "type": "string", + }, + }, + "required": []interface{}{ + "kind", + "name", + }, + "type": "object", + }, + "storeRef": map[string]interface{}{ + "description": "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.", + "properties": map[string]interface{}{ + "kind": map[string]interface{}{ + "description": "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Name of the SecretStore resource", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "type": "array", + }, + "refreshInterval": map[string]interface{}{ + "default": "1h", + "description": "RefreshInterval is the amount of time before the values are read again from the SecretStore provider Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\" May be set to zero to fetch and create it once. Defaults to 1h.", + "type": "string", + }, + "secretStoreRef": map[string]interface{}{ + "description": "SecretStoreRef defines which SecretStore to fetch the ExternalSecret data.", + "properties": map[string]interface{}{ + "kind": map[string]interface{}{ + "description": "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "Name of the SecretStore resource", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "target": map[string]interface{}{ + "default": map[string]interface{}{ + "creationPolicy": "Owner", + "deletionPolicy": "Retain", + }, + "description": "ExternalSecretTarget defines the Kubernetes Secret to be created There can be only one target per ExternalSecret.", + "properties": map[string]interface{}{ + "creationPolicy": map[string]interface{}{ + "default": "Owner", + "description": "CreationPolicy defines rules on how to create the resulting Secret Defaults to 'Owner'", + "enum": []interface{}{ + "Owner", + "Orphan", + "Merge", + "None", + }, + "type": "string", + }, + "deletionPolicy": map[string]interface{}{ + "default": "Retain", + "description": "DeletionPolicy defines rules on how to delete the resulting Secret Defaults to 'Retain'", + "enum": []interface{}{ + "Delete", + "Merge", + "Retain", + }, + "type": "string", + }, + "immutable": map[string]interface{}{ + "description": "Immutable defines if the final secret will be immutable", + "type": "boolean", + }, + "name": map[string]interface{}{ + "description": "Name defines the name of the Secret resource to be managed This field is immutable Defaults to the .metadata.name of the ExternalSecret resource", + "type": "string", + }, + "template": map[string]interface{}{ + "description": "Template defines a blueprint for the created Secret resource.", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "engineVersion": map[string]interface{}{ + "default": "v2", + "description": "EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[].", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + "mergePolicy": map[string]interface{}{ + "default": "Replace", + "enum": []interface{}{ + "Replace", + "Merge", + }, + "type": "string", + }, + "metadata": map[string]interface{}{ + "description": "ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint.", + "properties": map[string]interface{}{ + "annotations": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "labels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + }, + "type": "object", + }, + "templateFrom": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "configMap": map[string]interface{}{ + "properties": map[string]interface{}{ + "items": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "templateAs": map[string]interface{}{ + "default": "Values", + "enum": []interface{}{ + "Values", + "KeysAndValues", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "items", + "name", + }, + "type": "object", + }, + "literal": map[string]interface{}{ + "type": "string", + }, + "secret": map[string]interface{}{ + "properties": map[string]interface{}{ + "items": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "templateAs": map[string]interface{}{ + "default": "Values", + "enum": []interface{}{ + "Values", + "KeysAndValues", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "items", + "name", + }, + "type": "object", + }, + "target": map[string]interface{}{ + "default": "Data", + "enum": []interface{}{ + "Data", + "Annotations", + "Labels", + }, + "type": "string", + }, + }, + "type": "object", + }, + "type": "array", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "status": map[string]interface{}{ + "properties": map[string]interface{}{ + "binding": map[string]interface{}{ + "description": "Binding represents a servicebinding.io Provisioned Service reference to the secret", + "properties": map[string]interface{}{ + "name": map[string]interface{}{ + "description": "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?", + "type": "string", + }, + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + }, + "conditions": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "lastTransitionTime": map[string]interface{}{ + "format": "date-time", + "type": "string", + }, + "message": map[string]interface{}{ + "type": "string", + }, + "reason": map[string]interface{}{ + "type": "string", + }, + "status": map[string]interface{}{ + "type": "string", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "status", + "type", + }, + "type": "object", + }, + "type": "array", + }, + "refreshTime": map[string]interface{}{ + "description": "refreshTime is the time and date the external secret was fetched and the target secret updated", + "format": "date-time", + "nullable": true, + "type": "string", + }, + "syncedResourceVersion": map[string]interface{}{ + "description": "SyncedResourceVersion keeps track of the last synced version", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDExternalsecretsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDFakesGeneratorsExternalSecretsIo creates the CustomResourceDefinition resource with name fakes.generators.external-secrets.io. +func CreateCRDFakesGeneratorsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/fake.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "fakes.generators.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "generators.external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "fake", + }, + "kind": "Fake", + "listKind": "FakeList", + "plural": "fakes", + "shortNames": []interface{}{ + "fake", + }, + "singular": "fake", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "Fake generator is used for testing. It lets you define a static set of credentials that is always returned.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "FakeSpec contains the static data.", + "properties": map[string]interface{}{ + "controller": map[string]interface{}{ + "description": "Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters VDS based on this property", + "type": "string", + }, + "data": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Data defines the static data returned by this generator.", + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDFakesGeneratorsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDGcraccesstokensGeneratorsExternalSecretsIo creates the CustomResourceDefinition resource with name gcraccesstokens.generators.external-secrets.io. +func CreateCRDGcraccesstokensGeneratorsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/gcraccesstoken.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "gcraccesstokens.generators.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "generators.external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "gcraccesstoken", + }, + "kind": "GCRAccessToken", + "listKind": "GCRAccessTokenList", + "plural": "gcraccesstokens", + "shortNames": []interface{}{ + "gcraccesstoken", + }, + "singular": "gcraccesstoken", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "GCRAccessToken generates an GCP access token that can be used to authenticate with GCR.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the means for authenticating with GCP", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "workloadIdentity": map[string]interface{}{ + "properties": map[string]interface{}{ + "clusterLocation": map[string]interface{}{ + "type": "string", + }, + "clusterName": map[string]interface{}{ + "type": "string", + }, + "clusterProjectID": map[string]interface{}{ + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "clusterLocation", + "clusterName", + "serviceAccountRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID defines which project to use to authenticate with", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "projectID", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDGcraccesstokensGeneratorsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDPasswordsGeneratorsExternalSecretsIo creates the CustomResourceDefinition resource with name passwords.generators.external-secrets.io. +func CreateCRDPasswordsGeneratorsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/password.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "passwords.generators.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "generators.external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "password", + }, + "kind": "Password", + "listKind": "PasswordList", + "plural": "passwords", + "shortNames": []interface{}{ + "password", + }, + "singular": "password", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "Password generates a random password based on the configuration parameters in spec. You can specify the length, characterset and other attributes.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "PasswordSpec controls the behavior of the password generator.", + "properties": map[string]interface{}{ + "allowRepeat": map[string]interface{}{ + "default": false, + "description": "set AllowRepeat to true to allow repeating characters.", + "type": "boolean", + }, + "digits": map[string]interface{}{ + "description": "Digits specifies the number of digits in the generated password. If omitted it defaults to 25% of the length of the password", + "type": "integer", + }, + "length": map[string]interface{}{ + "default": 24, + "description": "Length of the password to be generated. Defaults to 24", + "type": "integer", + }, + "noUpper": map[string]interface{}{ + "default": false, + "description": "Set NoUpper to disable uppercase characters", + "type": "boolean", + }, + "symbolCharacters": map[string]interface{}{ + "description": "SymbolCharacters specifies the special characters that should be used in the generated password.", + "type": "string", + }, + "symbols": map[string]interface{}{ + "description": "Symbols specifies the number of symbol characters in the generated password. If omitted it defaults to 25% of the length of the password", + "type": "integer", + }, + }, + "required": []interface{}{ + "allowRepeat", + "length", + "noUpper", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDPasswordsGeneratorsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDPushsecretsExternalSecretsIo creates the CustomResourceDefinition resource with name pushsecrets.external-secrets.io. +func CreateCRDPushsecretsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/pushsecret.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "pushsecrets.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "pushsecrets", + }, + "kind": "PushSecret", + "listKind": "PushSecretList", + "plural": "pushsecrets", + "singular": "pushsecret", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "additionalPrinterColumns": []interface{}{ + map[string]interface{}{ + "jsonPath": ".metadata.creationTimestamp", + "name": "AGE", + "type": "date", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].reason", + "name": "Status", + "type": "string", + }, + }, + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "PushSecretSpec configures the behavior of the PushSecret.", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "description": "Secret Data that should be pushed to providers", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "match": map[string]interface{}{ + "description": "Match a given Secret Key to be pushed to the provider.", + "properties": map[string]interface{}{ + "remoteRef": map[string]interface{}{ + "description": "Remote Refs to push to providers.", + "properties": map[string]interface{}{ + "property": map[string]interface{}{ + "description": "Name of the property in the resulting secret", + "type": "string", + }, + "remoteKey": map[string]interface{}{ + "description": "Name of the resulting provider secret.", + "type": "string", + }, + }, + "required": []interface{}{ + "remoteKey", + }, + "type": "object", + }, + "secretKey": map[string]interface{}{ + "description": "Secret Key to be pushed", + "type": "string", + }, + }, + "required": []interface{}{ + "remoteRef", + }, + "type": "object", + }, + "metadata": map[string]interface{}{ + "description": "Metadata is metadata attached to the secret. The structure of metadata is provider specific, please look it up in the provider documentation.", + "x-kubernetes-preserve-unknown-fields": true, + }, + }, + "required": []interface{}{ + "match", + }, + "type": "object", + }, + "type": "array", + }, + "deletionPolicy": map[string]interface{}{ + "default": "None", + "description": "Deletion Policy to handle Secrets in the provider. Possible Values: \"Delete/None\". Defaults to \"None\".", + "enum": []interface{}{ + "Delete", + "None", + }, + "type": "string", + }, + "refreshInterval": map[string]interface{}{ + "description": "The Interval to which External Secrets will try to push a secret definition", + "type": "string", + }, + "secretStoreRefs": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "kind": map[string]interface{}{ + "default": "SecretStore", + "description": "Kind of the SecretStore resource (SecretStore or ClusterSecretStore) Defaults to `SecretStore`", + "type": "string", + }, + "labelSelector": map[string]interface{}{ + "description": "Optionally, sync to secret stores with label selector", + "properties": map[string]interface{}{ + "matchExpressions": map[string]interface{}{ + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": map[string]interface{}{ + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "key is the label key that the selector applies to.", + "type": "string", + }, + "operator": map[string]interface{}{ + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string", + }, + "values": map[string]interface{}{ + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "key", + "operator", + }, + "type": "object", + }, + "type": "array", + }, + "matchLabels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + }, + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + }, + "name": map[string]interface{}{ + "description": "Optionally, sync to the SecretStore of the given name", + "type": "string", + }, + }, + "type": "object", + }, + "type": "array", + }, + "selector": map[string]interface{}{ + "description": "The Secret Selector (k8s source) for the Push Secret", + "properties": map[string]interface{}{ + "secret": map[string]interface{}{ + "description": "Select a Secret to Push.", + "properties": map[string]interface{}{ + "name": map[string]interface{}{ + "description": "Name of the Secret. The Secret must exist in the same namespace as the PushSecret manifest.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secret", + }, + "type": "object", + }, + "template": map[string]interface{}{ + "description": "Template defines a blueprint for the created Secret resource.", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "engineVersion": map[string]interface{}{ + "default": "v2", + "description": "EngineVersion specifies the template engine version that should be used to compile/execute the template specified in .data and .templateFrom[].", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + "mergePolicy": map[string]interface{}{ + "default": "Replace", + "enum": []interface{}{ + "Replace", + "Merge", + }, + "type": "string", + }, + "metadata": map[string]interface{}{ + "description": "ExternalSecretTemplateMetadata defines metadata fields for the Secret blueprint.", + "properties": map[string]interface{}{ + "annotations": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "labels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + }, + "type": "object", + }, + "templateFrom": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "configMap": map[string]interface{}{ + "properties": map[string]interface{}{ + "items": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "templateAs": map[string]interface{}{ + "default": "Values", + "enum": []interface{}{ + "Values", + "KeysAndValues", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "items", + "name", + }, + "type": "object", + }, + "literal": map[string]interface{}{ + "type": "string", + }, + "secret": map[string]interface{}{ + "properties": map[string]interface{}{ + "items": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "templateAs": map[string]interface{}{ + "default": "Values", + "enum": []interface{}{ + "Values", + "KeysAndValues", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "items", + "name", + }, + "type": "object", + }, + "target": map[string]interface{}{ + "default": "Data", + "enum": []interface{}{ + "Data", + "Annotations", + "Labels", + }, + "type": "string", + }, + }, + "type": "object", + }, + "type": "array", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretStoreRefs", + "selector", + }, + "type": "object", + }, + "status": map[string]interface{}{ + "description": "PushSecretStatus indicates the history of the status of PushSecret.", + "properties": map[string]interface{}{ + "conditions": map[string]interface{}{ + "items": map[string]interface{}{ + "description": "PushSecretStatusCondition indicates the status of the PushSecret.", + "properties": map[string]interface{}{ + "lastTransitionTime": map[string]interface{}{ + "format": "date-time", + "type": "string", + }, + "message": map[string]interface{}{ + "type": "string", + }, + "reason": map[string]interface{}{ + "type": "string", + }, + "status": map[string]interface{}{ + "type": "string", + }, + "type": map[string]interface{}{ + "description": "PushSecretConditionType indicates the condition of the PushSecret.", + "type": "string", + }, + }, + "required": []interface{}{ + "status", + "type", + }, + "type": "object", + }, + "type": "array", + }, + "refreshTime": map[string]interface{}{ + "description": "refreshTime is the time and date the external secret was fetched and the target secret updated", + "format": "date-time", + "nullable": true, + "type": "string", + }, + "syncedPushSecrets": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "properties": map[string]interface{}{ + "match": map[string]interface{}{ + "description": "Match a given Secret Key to be pushed to the provider.", + "properties": map[string]interface{}{ + "remoteRef": map[string]interface{}{ + "description": "Remote Refs to push to providers.", + "properties": map[string]interface{}{ + "property": map[string]interface{}{ + "description": "Name of the property in the resulting secret", + "type": "string", + }, + "remoteKey": map[string]interface{}{ + "description": "Name of the resulting provider secret.", + "type": "string", + }, + }, + "required": []interface{}{ + "remoteKey", + }, + "type": "object", + }, + "secretKey": map[string]interface{}{ + "description": "Secret Key to be pushed", + "type": "string", + }, + }, + "required": []interface{}{ + "remoteRef", + }, + "type": "object", + }, + "metadata": map[string]interface{}{ + "description": "Metadata is metadata attached to the secret. The structure of metadata is provider specific, please look it up in the provider documentation.", + "x-kubernetes-preserve-unknown-fields": true, + }, + }, + "required": []interface{}{ + "match", + }, + "type": "object", + }, + "type": "object", + }, + "description": "Synced Push Secrets for later deletion. Matches Secret Stores to PushSecretData that was stored to that secretStore.", + "type": "object", + }, + "syncedResourceVersion": map[string]interface{}{ + "description": "SyncedResourceVersion keeps track of the last synced version.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDPushsecretsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDSecretstoresExternalSecretsIo creates the CustomResourceDefinition resource with name secretstores.external-secrets.io. +func CreateCRDSecretstoresExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/secretstore.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "secretstores.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "externalsecrets", + }, + "kind": "SecretStore", + "listKind": "SecretStoreList", + "plural": "secretstores", + "shortNames": []interface{}{ + "ss", + }, + "singular": "secretstore", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "additionalPrinterColumns": []interface{}{ + map[string]interface{}{ + "jsonPath": ".metadata.creationTimestamp", + "name": "AGE", + "type": "date", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].reason", + "name": "Status", + "type": "string", + }, + }, + "deprecated": true, + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "SecretStore represents a secure external location for storing secrets, which can be referenced as part of `storeRef` fields.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "SecretStoreSpec defines the desired state of SecretStore.", + "properties": map[string]interface{}{ + "controller": map[string]interface{}{ + "description": "Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters ES based on this property", + "type": "string", + }, + "provider": map[string]interface{}{ + "description": "Used to configure the provider. Only one provider may be set", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "akeyless": map[string]interface{}{ + "description": "Akeyless configures this store to sync secrets using Akeyless Vault provider", + "properties": map[string]interface{}{ + "akeylessGWApiURL": map[string]interface{}{ + "description": "Akeyless GW API Url from which the secrets to be fetched from.", + "type": "string", + }, + "authSecretRef": map[string]interface{}{ + "description": "Auth configures how the operator authenticates with Akeyless.", + "properties": map[string]interface{}{ + "kubernetesAuth": map[string]interface{}{ + "description": "Kubernetes authenticates with Akeyless by passing the ServiceAccount token stored in the named Secret resource.", + "properties": map[string]interface{}{ + "accessID": map[string]interface{}{ + "description": "the Akeyless Kubernetes auth-method access-id", + "type": "string", + }, + "k8sConfName": map[string]interface{}{ + "description": "Kubernetes-auth configuration name in Akeyless-Gateway", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Akeyless. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Akeyless. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessID", + "k8sConfName", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a Secret that contains the details to authenticate with Akeyless.", + "properties": map[string]interface{}{ + "accessID": map[string]interface{}{ + "description": "The SecretAccessID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessType": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessTypeParam": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM/base64 encoded CA bundle used to validate Akeyless Gateway certificate. Only used if the AkeylessGWApiURL URL is using HTTPS protocol. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Akeyless Gateway certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "akeylessGWApiURL", + "authSecretRef", + }, + "type": "object", + }, + "alibaba": map[string]interface{}{ + "description": "Alibaba configures this store to sync secrets using Alibaba Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "AlibabaAuth contains a secretRef for credentials.", + "properties": map[string]interface{}{ + "rrsa": map[string]interface{}{ + "description": "Authenticate against Alibaba using RRSA.", + "properties": map[string]interface{}{ + "oidcProviderArn": map[string]interface{}{ + "type": "string", + }, + "oidcTokenFilePath": map[string]interface{}{ + "type": "string", + }, + "roleArn": map[string]interface{}{ + "type": "string", + }, + "sessionName": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "oidcProviderArn", + "oidcTokenFilePath", + "roleArn", + "sessionName", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AlibabaAuthSecretRef holds secret references for Alibaba credentials.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessKeySecretSecretRef": map[string]interface{}{ + "description": "The AccessKeySecret is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessKeyIDSecretRef", + "accessKeySecretSecretRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "regionID": map[string]interface{}{ + "description": "Alibaba Region to be used for the provider", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "regionID", + }, + "type": "object", + }, + "aws": map[string]interface{}{ + "description": "AWS configures this store to sync secrets using AWS Secret Manager provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against AWS if not set aws sdk will infer credentials from your environment see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "properties": map[string]interface{}{ + "jwt": map[string]interface{}{ + "description": "Authenticate against AWS using service account tokens.", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AWSAuthSecretRef holds secret references for AWS credentials both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "region": map[string]interface{}{ + "description": "AWS Region to be used for the provider", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a Role ARN which the SecretManager provider will assume", + "type": "string", + }, + "service": map[string]interface{}{ + "description": "Service defines which service should be used to fetch the secrets", + "enum": []interface{}{ + "SecretsManager", + "ParameterStore", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "region", + "service", + }, + "type": "object", + }, + "azurekv": map[string]interface{}{ + "description": "AzureKV configures this store to sync secrets using Azure Key Vault provider", + "properties": map[string]interface{}{ + "authSecretRef": map[string]interface{}{ + "description": "Auth configures how the operator authenticates with Azure. Required for ServicePrincipal auth type.", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "description": "The Azure clientId of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientSecret": map[string]interface{}{ + "description": "The Azure ClientSecret of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "authType": map[string]interface{}{ + "default": "ServicePrincipal", + "description": "Auth type defines how to authenticate to the keyvault service. Valid values are: - \"ServicePrincipal\" (default): Using a service principal (tenantId, clientId, clientSecret) - \"ManagedIdentity\": Using Managed Identity assigned to the pod (see aad-pod-identity)", + "enum": []interface{}{ + "ServicePrincipal", + "ManagedIdentity", + "WorkloadIdentity", + }, + "type": "string", + }, + "identityId": map[string]interface{}{ + "description": "If multiple Managed Identity is assigned to the pod, you can select the one to be used", + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "tenantId": map[string]interface{}{ + "description": "TenantID configures the Azure Tenant to send requests to. Required for ServicePrincipal auth type.", + "type": "string", + }, + "vaultUrl": map[string]interface{}{ + "description": "Vault Url from which the secrets to be fetched from.", + "type": "string", + }, + }, + "required": []interface{}{ + "vaultUrl", + }, + "type": "object", + }, + "fake": map[string]interface{}{ + "description": "Fake configures a store with static key/value pairs", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "value": map[string]interface{}{ + "type": "string", + }, + "valueMap": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "type": "object", + }, + "version": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "data", + }, + "type": "object", + }, + "gcpsm": map[string]interface{}{ + "description": "GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against GCP", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "workloadIdentity": map[string]interface{}{ + "properties": map[string]interface{}{ + "clusterLocation": map[string]interface{}{ + "type": "string", + }, + "clusterName": map[string]interface{}{ + "type": "string", + }, + "clusterProjectID": map[string]interface{}{ + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "clusterLocation", + "clusterName", + "serviceAccountRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID project where secret is located", + "type": "string", + }, + }, + "type": "object", + }, + "gitlab": map[string]interface{}{ + "description": "GitLab configures this store to sync secrets using GitLab Variables provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with a GitLab instance.", + "properties": map[string]interface{}{ + "SecretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "accessToken": map[string]interface{}{ + "description": "AccessToken is used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "SecretRef", + }, + "type": "object", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID specifies a project where secrets are located.", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "URL configures the GitLab instance URL. Defaults to https://gitlab.com/.", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "ibm": map[string]interface{}{ + "description": "IBM configures this store to sync secrets using IBM Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the IBM secrets manager.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretApiKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretRef", + }, + "type": "object", + }, + "serviceUrl": map[string]interface{}{ + "description": "ServiceURL is the Endpoint URL that is specific to the Secrets Manager service instance", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes configures this store to sync secrets using a Kubernetes cluster provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with a Kubernetes instance.", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "cert": map[string]interface{}{ + "description": "has both clientCert and clientKey as secretKeySelector", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientKey": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "serviceAccount": map[string]interface{}{ + "description": "points to a service account that should be used for authentication", + "properties": map[string]interface{}{ + "serviceAccount": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "token": map[string]interface{}{ + "description": "use static token to authenticate with", + "properties": map[string]interface{}{ + "bearerToken": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "remoteNamespace": map[string]interface{}{ + "default": "default", + "description": "Remote namespace to fetch the secrets from", + "type": "string", + }, + "server": map[string]interface{}{ + "description": "configures the Kubernetes server Address.", + "properties": map[string]interface{}{ + "caBundle": map[string]interface{}{ + "description": "CABundle is a base64-encoded CA certificate", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "see: https://external-secrets.io/v0.4.1/spec/#external-secrets.io/v1alpha1.CAProvider", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "url": map[string]interface{}{ + "default": "kubernetes.default", + "description": "configures the Kubernetes server Address.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "oracle": map[string]interface{}{ + "description": "Oracle configures this store to sync secrets using Oracle Vault provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Oracle Vault. If empty, instance principal is used. Optionally, the authenticating principal type and/or user data may be supplied for the use of workload identity and user principal.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef to pass through sensitive information.", + "properties": map[string]interface{}{ + "fingerprint": map[string]interface{}{ + "description": "Fingerprint is the fingerprint of the API private key.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "privatekey": map[string]interface{}{ + "description": "PrivateKey is the user's API Signing Key in PEM format, used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "fingerprint", + "privatekey", + }, + "type": "object", + }, + "tenancy": map[string]interface{}{ + "description": "Tenancy is the tenancy OCID where user is located.", + "type": "string", + }, + "user": map[string]interface{}{ + "description": "User is an access OCID specific to the account.", + "type": "string", + }, + }, + "required": []interface{}{ + "secretRef", + "tenancy", + "user", + }, + "type": "object", + }, + "compartment": map[string]interface{}{ + "description": "Compartment is the vault compartment OCID. Required for PushSecret", + "type": "string", + }, + "encryptionKey": map[string]interface{}{ + "description": "EncryptionKey is the OCID of the encryption key within the vault. Required for PushSecret", + "type": "string", + }, + "principalType": map[string]interface{}{ + "description": "The type of principal to use for authentication. If left blank, the Auth struct will determine the principal type. This optional field must be specified if using workload identity.", + "enum": []interface{}{ + "", + "UserPrincipal", + "InstancePrincipal", + "Workload", + }, + "type": "string", + }, + "region": map[string]interface{}{ + "description": "Region is the region where vault is located.", + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "vault": map[string]interface{}{ + "description": "Vault is the vault's OCID of the specific vault where secret is located.", + "type": "string", + }, + }, + "required": []interface{}{ + "region", + "vault", + }, + "type": "object", + }, + "vault": map[string]interface{}{ + "description": "Vault configures this store to sync secrets using Hashi provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Vault server.", + "properties": map[string]interface{}{ + "appRole": map[string]interface{}{ + "description": "AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "approle", + "description": "Path where the App Role authentication backend is mounted in Vault, e.g: \"approle\"", + "type": "string", + }, + "roleId": map[string]interface{}{ + "description": "RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault.", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + "roleId", + "secretRef", + }, + "type": "object", + }, + "cert": map[string]interface{}{ + "description": "Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "ClientCert is a certificate to authenticate using the Cert Vault authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "jwt": map[string]interface{}{ + "description": "Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method", + "properties": map[string]interface{}{ + "kubernetesServiceAccountToken": map[string]interface{}{ + "description": "Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "expirationSeconds": map[string]interface{}{ + "description": "Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to 10 minutes.", + "format": "int64", + "type": "integer", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Service account field containing the name of a kubernetes ServiceAccount.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "serviceAccountRef", + }, + "type": "object", + }, + "path": map[string]interface{}{ + "default": "jwt", + "description": "Path where the JWT authentication backend is mounted in Vault, e.g: \"jwt\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.", + "properties": map[string]interface{}{ + "mountPath": map[string]interface{}{ + "default": "kubernetes", + "description": "Path where the Kubernetes authentication backend is mounted in Vault, e.g: \"kubernetes\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies.", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "mountPath", + "role", + }, + "type": "object", + }, + "ldap": map[string]interface{}{ + "description": "Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "ldap", + "description": "Path where the LDAP authentication backend is mounted in Vault, e.g: \"ldap\"", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "username": map[string]interface{}{ + "description": "Username is a LDAP user name used to authenticate using the LDAP Vault authentication method", + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "username", + }, + "type": "object", + }, + "tokenSecretRef": map[string]interface{}{ + "description": "TokenSecretRef authenticates with Vault by presenting a token.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Vault server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "forwardInconsistent": map[string]interface{}{ + "description": "ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header", + "type": "boolean", + }, + "namespace": map[string]interface{}{ + "description": "Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: \"ns1\". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces", + "type": "string", + }, + "path": map[string]interface{}{ + "description": "Path is the mount path of the Vault KV backend endpoint, e.g: \"secret\". The v2 KV secret engine version specific \"/data\" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.", + "type": "string", + }, + "readYourWrites": map[string]interface{}{ + "description": "ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency", + "type": "boolean", + }, + "server": map[string]interface{}{ + "description": "Server is the connection address for the Vault server, e.g: \"https://vault.example.com:8200\".", + "type": "string", + }, + "version": map[string]interface{}{ + "default": "v2", + "description": "Version is the Vault KV secret engine version. This can be either \"v1\" or \"v2\". Version defaults to \"v2\".", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "server", + }, + "type": "object", + }, + "webhook": map[string]interface{}{ + "description": "Webhook configures this store to sync secrets using a generic templated webhook", + "properties": map[string]interface{}{ + "body": map[string]interface{}{ + "description": "Body", + "type": "string", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate webhook server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate webhook server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "headers": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Headers", + "type": "object", + }, + "method": map[string]interface{}{ + "description": "Webhook Method", + "type": "string", + }, + "result": map[string]interface{}{ + "description": "Result formatting", + "properties": map[string]interface{}{ + "jsonPath": map[string]interface{}{ + "description": "Json path of return value", + "type": "string", + }, + }, + "type": "object", + }, + "secrets": map[string]interface{}{ + "description": "Secrets to fill in templates These secrets will be passed to the templating function as key value pairs under the given name", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "name": map[string]interface{}{ + "description": "Name of this secret in templates", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Secret ref to fill in credentials", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "name", + "secretRef", + }, + "type": "object", + }, + "type": "array", + }, + "timeout": map[string]interface{}{ + "description": "Timeout", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "Webhook url to call", + "type": "string", + }, + }, + "required": []interface{}{ + "result", + "url", + }, + "type": "object", + }, + "yandexlockbox": map[string]interface{}{ + "description": "YandexLockbox configures this store to sync secrets using Yandex Lockbox provider", + "properties": map[string]interface{}{ + "apiEndpoint": map[string]interface{}{ + "description": "Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443')", + "type": "string", + }, + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against Yandex Lockbox", + "properties": map[string]interface{}{ + "authorizedKeySecretRef": map[string]interface{}{ + "description": "The authorized key used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Yandex.Cloud server certificate.", + "properties": map[string]interface{}{ + "certSecretRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + }, + "type": "object", + }, + "retrySettings": map[string]interface{}{ + "description": "Used to configure http retries if failed", + "properties": map[string]interface{}{ + "maxRetries": map[string]interface{}{ + "format": "int32", + "type": "integer", + }, + "retryInterval": map[string]interface{}{ + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "provider", + }, + "type": "object", + }, + "status": map[string]interface{}{ + "description": "SecretStoreStatus defines the observed state of the SecretStore.", + "properties": map[string]interface{}{ + "conditions": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "lastTransitionTime": map[string]interface{}{ + "format": "date-time", + "type": "string", + }, + "message": map[string]interface{}{ + "type": "string", + }, + "reason": map[string]interface{}{ + "type": "string", + }, + "status": map[string]interface{}{ + "type": "string", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "status", + "type", + }, + "type": "object", + }, + "type": "array", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": false, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + map[string]interface{}{ + "additionalPrinterColumns": []interface{}{ + map[string]interface{}{ + "jsonPath": ".metadata.creationTimestamp", + "name": "AGE", + "type": "date", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].reason", + "name": "Status", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".status.capabilities", + "name": "Capabilities", + "type": "string", + }, + map[string]interface{}{ + "jsonPath": ".status.conditions[?(@.type==\"Ready\")].status", + "name": "Ready", + "type": "string", + }, + }, + "name": "v1beta1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "description": "SecretStore represents a secure external location for storing secrets, which can be referenced as part of `storeRef` fields.", + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "description": "SecretStoreSpec defines the desired state of SecretStore.", + "properties": map[string]interface{}{ + "conditions": map[string]interface{}{ + "description": "Used to constraint a ClusterSecretStore to specific namespaces. Relevant only to ClusterSecretStore", + "items": map[string]interface{}{ + "description": "ClusterSecretStoreCondition describes a condition by which to choose namespaces to process ExternalSecrets in for a ClusterSecretStore instance.", + "properties": map[string]interface{}{ + "namespaceSelector": map[string]interface{}{ + "description": "Choose namespace using a labelSelector", + "properties": map[string]interface{}{ + "matchExpressions": map[string]interface{}{ + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.", + "items": map[string]interface{}{ + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "key is the label key that the selector applies to.", + "type": "string", + }, + "operator": map[string]interface{}{ + "description": "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.", + "type": "string", + }, + "values": map[string]interface{}{ + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "key", + "operator", + }, + "type": "object", + }, + "type": "array", + }, + "matchLabels": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.", + "type": "object", + }, + }, + "type": "object", + "x-kubernetes-map-type": "atomic", + }, + "namespaces": map[string]interface{}{ + "description": "Choose namespaces by name", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "type": "object", + }, + "type": "array", + }, + "controller": map[string]interface{}{ + "description": "Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters ES based on this property", + "type": "string", + }, + "provider": map[string]interface{}{ + "description": "Used to configure the provider. Only one provider may be set", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "akeyless": map[string]interface{}{ + "description": "Akeyless configures this store to sync secrets using Akeyless Vault provider", + "properties": map[string]interface{}{ + "akeylessGWApiURL": map[string]interface{}{ + "description": "Akeyless GW API Url from which the secrets to be fetched from.", + "type": "string", + }, + "authSecretRef": map[string]interface{}{ + "description": "Auth configures how the operator authenticates with Akeyless.", + "properties": map[string]interface{}{ + "kubernetesAuth": map[string]interface{}{ + "description": "Kubernetes authenticates with Akeyless by passing the ServiceAccount token stored in the named Secret resource.", + "properties": map[string]interface{}{ + "accessID": map[string]interface{}{ + "description": "the Akeyless Kubernetes auth-method access-id", + "type": "string", + }, + "k8sConfName": map[string]interface{}{ + "description": "Kubernetes-auth configuration name in Akeyless-Gateway", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Akeyless. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Akeyless. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessID", + "k8sConfName", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a Secret that contains the details to authenticate with Akeyless.", + "properties": map[string]interface{}{ + "accessID": map[string]interface{}{ + "description": "The SecretAccessID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessType": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessTypeParam": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM/base64 encoded CA bundle used to validate Akeyless Gateway certificate. Only used if the AkeylessGWApiURL URL is using HTTPS protocol. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Akeyless Gateway certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "akeylessGWApiURL", + "authSecretRef", + }, + "type": "object", + }, + "alibaba": map[string]interface{}{ + "description": "Alibaba configures this store to sync secrets using Alibaba Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "AlibabaAuth contains a secretRef for credentials.", + "properties": map[string]interface{}{ + "rrsa": map[string]interface{}{ + "description": "Authenticate against Alibaba using RRSA.", + "properties": map[string]interface{}{ + "oidcProviderArn": map[string]interface{}{ + "type": "string", + }, + "oidcTokenFilePath": map[string]interface{}{ + "type": "string", + }, + "roleArn": map[string]interface{}{ + "type": "string", + }, + "sessionName": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "oidcProviderArn", + "oidcTokenFilePath", + "roleArn", + "sessionName", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AlibabaAuthSecretRef holds secret references for Alibaba credentials.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "accessKeySecretSecretRef": map[string]interface{}{ + "description": "The AccessKeySecret is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessKeyIDSecretRef", + "accessKeySecretSecretRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "regionID": map[string]interface{}{ + "description": "Alibaba Region to be used for the provider", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "regionID", + }, + "type": "object", + }, + "aws": map[string]interface{}{ + "description": "AWS configures this store to sync secrets using AWS Secret Manager provider", + "properties": map[string]interface{}{ + "additionalRoles": map[string]interface{}{ + "description": "AdditionalRoles is a chained list of Role ARNs which the provider will sequentially assume before assuming the Role", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against AWS if not set aws sdk will infer credentials from your environment see: https://docs.aws.amazon.com/sdk-for-go/v1/developer-guide/configuring-sdk.html#specifying-credentials", + "properties": map[string]interface{}{ + "jwt": map[string]interface{}{ + "description": "Authenticate against AWS using service account tokens.", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "AWSAuthSecretRef holds secret references for AWS credentials both AccessKeyID and SecretAccessKey must be defined in order to properly authenticate.", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "sessionTokenSecretRef": map[string]interface{}{ + "description": "The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "externalID": map[string]interface{}{ + "description": "AWS External ID set on assumed IAM roles", + "type": "string", + }, + "region": map[string]interface{}{ + "description": "AWS Region to be used for the provider", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a Role ARN which the provider will assume", + "type": "string", + }, + "secretsManager": map[string]interface{}{ + "description": "SecretsManager defines how the provider behaves when interacting with AWS SecretsManager", + "properties": map[string]interface{}{ + "forceDeleteWithoutRecovery": map[string]interface{}{ + "description": "Specifies whether to delete the secret without any recovery window. You can't use both this parameter and RecoveryWindowInDays in the same call. If you don't use either, then by default Secrets Manager uses a 30 day recovery window. see: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html#SecretsManager-DeleteSecret-request-ForceDeleteWithoutRecovery", + "type": "boolean", + }, + "recoveryWindowInDays": map[string]interface{}{ + "description": "The number of days from 7 to 30 that Secrets Manager waits before permanently deleting the secret. You can't use both this parameter and ForceDeleteWithoutRecovery in the same call. If you don't use either, then by default Secrets Manager uses a 30 day recovery window. see: https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_DeleteSecret.html#SecretsManager-DeleteSecret-request-RecoveryWindowInDays", + "format": "int64", + "type": "integer", + }, + }, + "type": "object", + }, + "service": map[string]interface{}{ + "description": "Service defines which service should be used to fetch the secrets", + "enum": []interface{}{ + "SecretsManager", + "ParameterStore", + }, + "type": "string", + }, + "sessionTags": map[string]interface{}{ + "description": "AWS STS assume role session tags", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "value": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "key", + "value", + }, + "type": "object", + }, + "type": "array", + }, + "transitiveTagKeys": map[string]interface{}{ + "description": "AWS STS assume role transitive session tags. Required when multiple rules are used with the provider", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "region", + "service", + }, + "type": "object", + }, + "azurekv": map[string]interface{}{ + "description": "AzureKV configures this store to sync secrets using Azure Key Vault provider", + "properties": map[string]interface{}{ + "authSecretRef": map[string]interface{}{ + "description": "Auth configures how the operator authenticates with Azure. Required for ServicePrincipal auth type.", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "description": "The Azure clientId of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientSecret": map[string]interface{}{ + "description": "The Azure ClientSecret of the service principle used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "authType": map[string]interface{}{ + "default": "ServicePrincipal", + "description": "Auth type defines how to authenticate to the keyvault service. Valid values are: - \"ServicePrincipal\" (default): Using a service principal (tenantId, clientId, clientSecret) - \"ManagedIdentity\": Using Managed Identity assigned to the pod (see aad-pod-identity)", + "enum": []interface{}{ + "ServicePrincipal", + "ManagedIdentity", + "WorkloadIdentity", + }, + "type": "string", + }, + "environmentType": map[string]interface{}{ + "default": "PublicCloud", + "description": "EnvironmentType specifies the Azure cloud environment endpoints to use for connecting and authenticating with Azure. By default it points to the public cloud AAD endpoint. The following endpoints are available, also see here: https://github.com/Azure/go-autorest/blob/main/autorest/azure/environments.go#L152 PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud", + "enum": []interface{}{ + "PublicCloud", + "USGovernmentCloud", + "ChinaCloud", + "GermanCloud", + }, + "type": "string", + }, + "identityId": map[string]interface{}{ + "description": "If multiple Managed Identity is assigned to the pod, you can select the one to be used", + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "tenantId": map[string]interface{}{ + "description": "TenantID configures the Azure Tenant to send requests to. Required for ServicePrincipal auth type.", + "type": "string", + }, + "vaultUrl": map[string]interface{}{ + "description": "Vault Url from which the secrets to be fetched from.", + "type": "string", + }, + }, + "required": []interface{}{ + "vaultUrl", + }, + "type": "object", + }, + "conjur": map[string]interface{}{ + "description": "Conjur configures this store to sync secrets using conjur provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "properties": map[string]interface{}{ + "apikey": map[string]interface{}{ + "properties": map[string]interface{}{ + "account": map[string]interface{}{ + "type": "string", + }, + "apiKeyRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "userRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "account", + "apiKeyRef", + "userRef", + }, + "type": "object", + }, + "jwt": map[string]interface{}{ + "properties": map[string]interface{}{ + "account": map[string]interface{}{ + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Conjur using the JWT authentication method.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional ServiceAccountRef specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "serviceID": map[string]interface{}{ + "description": "The conjur authn jwt webservice id", + "type": "string", + }, + }, + "required": []interface{}{ + "account", + "serviceID", + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "Used to provide custom certificate authority (CA) certificates for a secret store. The CAProvider points to a Secret or ConfigMap resource that contains a PEM-encoded certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "url": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "url", + }, + "type": "object", + }, + "delinea": map[string]interface{}{ + "description": "Delinea DevOps Secrets Vault https://docs.delinea.com/online-help/products/devops-secrets-vault/current", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "description": "ClientID is the non-secret part of the credential.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef references a key in a secret that will be used as value.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "value": map[string]interface{}{ + "description": "Value can be specified directly to set a value without using a secret.", + "type": "string", + }, + }, + "type": "object", + }, + "clientSecret": map[string]interface{}{ + "description": "ClientSecret is the secret part of the credential.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef references a key in a secret that will be used as value.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "value": map[string]interface{}{ + "description": "Value can be specified directly to set a value without using a secret.", + "type": "string", + }, + }, + "type": "object", + }, + "tenant": map[string]interface{}{ + "description": "Tenant is the chosen hostname / site name.", + "type": "string", + }, + "tld": map[string]interface{}{ + "description": "TLD is based on the server location that was chosen during provisioning. If unset, defaults to \"com\".", + "type": "string", + }, + "urlTemplate": map[string]interface{}{ + "description": "URLTemplate If unset, defaults to \"https://%s.secretsvaultcloud.%s/v1/%s%s\".", + "type": "string", + }, + }, + "required": []interface{}{ + "clientId", + "clientSecret", + "tenant", + }, + "type": "object", + }, + "doppler": map[string]interface{}{ + "description": "Doppler configures this store to sync secrets using the Doppler provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how the Operator authenticates with the Doppler API", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "dopplerToken": map[string]interface{}{ + "description": "The DopplerToken is used for authentication. See https://docs.doppler.com/reference/api#authentication for auth token types. The Key attribute defaults to dopplerToken if not specified.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "dopplerToken", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretRef", + }, + "type": "object", + }, + "config": map[string]interface{}{ + "description": "Doppler config (required if not using a Service Token)", + "type": "string", + }, + "format": map[string]interface{}{ + "description": "Format enables the downloading of secrets as a file (string)", + "enum": []interface{}{ + "json", + "dotnet-json", + "env", + "yaml", + "docker", + }, + "type": "string", + }, + "nameTransformer": map[string]interface{}{ + "description": "Environment variable compatible name transforms that change secret names to a different format", + "enum": []interface{}{ + "upper-camel", + "camel", + "lower-snake", + "tf-var", + "dotnet-env", + "lower-kebab", + }, + "type": "string", + }, + "project": map[string]interface{}{ + "description": "Doppler project (required if not using a Service Token)", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "fake": map[string]interface{}{ + "description": "Fake configures a store with static key/value pairs", + "properties": map[string]interface{}{ + "data": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "type": "string", + }, + "value": map[string]interface{}{ + "type": "string", + }, + "valueMap": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Deprecated: ValueMap is deprecated and is intended to be removed in the future, use the `value` field instead.", + "type": "object", + }, + "version": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "key", + }, + "type": "object", + }, + "type": "array", + }, + }, + "required": []interface{}{ + "data", + }, + "type": "object", + }, + "gcpsm": map[string]interface{}{ + "description": "GCPSM configures this store to sync secrets using Google Cloud Platform Secret Manager provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against GCP", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "workloadIdentity": map[string]interface{}{ + "properties": map[string]interface{}{ + "clusterLocation": map[string]interface{}{ + "type": "string", + }, + "clusterName": map[string]interface{}{ + "type": "string", + }, + "clusterProjectID": map[string]interface{}{ + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "clusterLocation", + "clusterName", + "serviceAccountRef", + }, + "type": "object", + }, + }, + "type": "object", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID project where secret is located", + "type": "string", + }, + }, + "type": "object", + }, + "gitlab": map[string]interface{}{ + "description": "GitLab configures this store to sync secrets using GitLab Variables provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with a GitLab instance.", + "properties": map[string]interface{}{ + "SecretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "accessToken": map[string]interface{}{ + "description": "AccessToken is used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "SecretRef", + }, + "type": "object", + }, + "environment": map[string]interface{}{ + "description": "Environment environment_scope of gitlab CI/CD variables (Please see https://docs.gitlab.com/ee/ci/environments/#create-a-static-environment on how to create environments)", + "type": "string", + }, + "groupIDs": map[string]interface{}{ + "description": "GroupIDs specify, which gitlab groups to pull secrets from. Group secrets are read from left to right followed by the project variables.", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "inheritFromGroups": map[string]interface{}{ + "description": "InheritFromGroups specifies whether parent groups should be discovered and checked for secrets.", + "type": "boolean", + }, + "projectID": map[string]interface{}{ + "description": "ProjectID specifies a project where secrets are located.", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "URL configures the GitLab instance URL. Defaults to https://gitlab.com/.", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "ibm": map[string]interface{}{ + "description": "IBM configures this store to sync secrets using IBM Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the IBM secrets manager.", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "containerAuth": map[string]interface{}{ + "description": "IBM Container-based auth with IAM Trusted Profile.", + "properties": map[string]interface{}{ + "iamEndpoint": map[string]interface{}{ + "type": "string", + }, + "profile": map[string]interface{}{ + "description": "the IBM Trusted Profile", + "type": "string", + }, + "tokenLocation": map[string]interface{}{ + "description": "Location the token is mounted on the pod", + "type": "string", + }, + }, + "required": []interface{}{ + "profile", + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "properties": map[string]interface{}{ + "secretApiKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "serviceUrl": map[string]interface{}{ + "description": "ServiceURL is the Endpoint URL that is specific to the Secrets Manager service instance", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "keepersecurity": map[string]interface{}{ + "description": "KeeperSecurity configures this store to sync secrets using the KeeperSecurity provider", + "properties": map[string]interface{}{ + "authRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "folderID": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "authRef", + "folderID", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes configures this store to sync secrets using a Kubernetes cluster provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with a Kubernetes instance.", + "maxProperties": 1, + "minProperties": 1, + "properties": map[string]interface{}{ + "cert": map[string]interface{}{ + "description": "has both clientCert and clientKey as secretKeySelector", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "clientKey": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "serviceAccount": map[string]interface{}{ + "description": "points to a service account that should be used for authentication", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "token": map[string]interface{}{ + "description": "use static token to authenticate with", + "properties": map[string]interface{}{ + "bearerToken": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "remoteNamespace": map[string]interface{}{ + "default": "default", + "description": "Remote namespace to fetch the secrets from", + "type": "string", + }, + "server": map[string]interface{}{ + "description": "configures the Kubernetes server Address.", + "properties": map[string]interface{}{ + "caBundle": map[string]interface{}{ + "description": "CABundle is a base64-encoded CA certificate", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "see: https://external-secrets.io/v0.4.1/spec/#external-secrets.io/v1alpha1.CAProvider", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "url": map[string]interface{}{ + "default": "kubernetes.default", + "description": "configures the Kubernetes server Address.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "onepassword": map[string]interface{}{ + "description": "OnePassword configures this store to sync secrets using the 1Password Cloud provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against OnePassword Connect Server", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "OnePasswordAuthSecretRef holds secret references for 1Password credentials.", + "properties": map[string]interface{}{ + "connectTokenSecretRef": map[string]interface{}{ + "description": "The ConnectToken is used for authentication to a 1Password Connect Server.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "connectTokenSecretRef", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "secretRef", + }, + "type": "object", + }, + "connectHost": map[string]interface{}{ + "description": "ConnectHost defines the OnePassword Connect Server to connect to", + "type": "string", + }, + "vaults": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "integer", + }, + "description": "Vaults defines which OnePassword vaults to search in which order", + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + "connectHost", + "vaults", + }, + "type": "object", + }, + "oracle": map[string]interface{}{ + "description": "Oracle configures this store to sync secrets using Oracle Vault provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Oracle Vault. If empty, use the instance principal, otherwise the user credentials specified in Auth.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef to pass through sensitive information.", + "properties": map[string]interface{}{ + "fingerprint": map[string]interface{}{ + "description": "Fingerprint is the fingerprint of the API private key.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "privatekey": map[string]interface{}{ + "description": "PrivateKey is the user's API Signing Key in PEM format, used for authentication.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "fingerprint", + "privatekey", + }, + "type": "object", + }, + "tenancy": map[string]interface{}{ + "description": "Tenancy is the tenancy OCID where user is located.", + "type": "string", + }, + "user": map[string]interface{}{ + "description": "User is an access OCID specific to the account.", + "type": "string", + }, + }, + "required": []interface{}{ + "secretRef", + "tenancy", + "user", + }, + "type": "object", + }, + "compartment": map[string]interface{}{ + "description": "Compartment is the vault compartment OCID. Required for PushSecret", + "type": "string", + }, + "encryptionKey": map[string]interface{}{ + "description": "EncryptionKey is the OCID of the encryption key within the vault. Required for PushSecret", + "type": "string", + }, + "principalType": map[string]interface{}{ + "description": "The type of principal to use for authentication. If left blank, the Auth struct will determine the principal type. This optional field must be specified if using workload identity.", + "enum": []interface{}{ + "", + "UserPrincipal", + "InstancePrincipal", + "Workload", + }, + "type": "string", + }, + "region": map[string]interface{}{ + "description": "Region is the region where vault is located.", + "type": "string", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "ServiceAccountRef specified the service account that should be used when authenticating with WorkloadIdentity.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + "vault": map[string]interface{}{ + "description": "Vault is the vault's OCID of the specific vault where secret is located.", + "type": "string", + }, + }, + "required": []interface{}{ + "region", + "vault", + }, + "type": "object", + }, + "scaleway": map[string]interface{}{ + "description": "Scaleway", + "properties": map[string]interface{}{ + "accessKey": map[string]interface{}{ + "description": "AccessKey is the non-secret part of the api key.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef references a key in a secret that will be used as value.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "value": map[string]interface{}{ + "description": "Value can be specified directly to set a value without using a secret.", + "type": "string", + }, + }, + "type": "object", + }, + "apiUrl": map[string]interface{}{ + "description": "APIURL is the url of the api to use. Defaults to https://api.scaleway.com", + "type": "string", + }, + "projectId": map[string]interface{}{ + "description": "ProjectID is the id of your project, which you can find in the console: https://console.scaleway.com/project/settings", + "type": "string", + }, + "region": map[string]interface{}{ + "description": "Region where your secrets are located: https://developers.scaleway.com/en/quickstart/#region-and-zone", + "type": "string", + }, + "secretKey": map[string]interface{}{ + "description": "SecretKey is the non-secret part of the api key.", + "properties": map[string]interface{}{ + "secretRef": map[string]interface{}{ + "description": "SecretRef references a key in a secret that will be used as value.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "value": map[string]interface{}{ + "description": "Value can be specified directly to set a value without using a secret.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "accessKey", + "projectId", + "region", + "secretKey", + }, + "type": "object", + }, + "senhasegura": map[string]interface{}{ + "description": "Senhasegura configures this store to sync secrets using senhasegura provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth defines parameters to authenticate in senhasegura", + "properties": map[string]interface{}{ + "clientId": map[string]interface{}{ + "type": "string", + }, + "clientSecretSecretRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "clientId", + "clientSecretSecretRef", + }, + "type": "object", + }, + "ignoreSslCertificate": map[string]interface{}{ + "default": false, + "description": "IgnoreSslCertificate defines if SSL certificate must be ignored", + "type": "boolean", + }, + "module": map[string]interface{}{ + "description": "Module defines which senhasegura module should be used to get secrets", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "URL of senhasegura", + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "module", + "url", + }, + "type": "object", + }, + "vault": map[string]interface{}{ + "description": "Vault configures this store to sync secrets using Hashi provider", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Vault server.", + "properties": map[string]interface{}{ + "appRole": map[string]interface{}{ + "description": "AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "approle", + "description": "Path where the App Role authentication backend is mounted in Vault, e.g: \"approle\"", + "type": "string", + }, + "roleId": map[string]interface{}{ + "description": "RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault.", + "type": "string", + }, + "roleRef": map[string]interface{}{ + "description": "Reference to a key in a Secret that contains the App Role ID used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role id.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + "secretRef", + }, + "type": "object", + }, + "cert": map[string]interface{}{ + "description": "Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "ClientCert is a certificate to authenticate using the Cert Vault authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "iam": map[string]interface{}{ + "description": "Iam authenticates with vault by passing a special AWS request signed with AWS IAM credentials AWS IAM authentication method", + "properties": map[string]interface{}{ + "externalID": map[string]interface{}{ + "description": "AWS External ID set on assumed IAM roles", + "type": "string", + }, + "jwt": map[string]interface{}{ + "description": "Specify a service account with IRSA enabled", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "path": map[string]interface{}{ + "description": "Path where the AWS auth method is enabled in Vault, e.g: \"aws\"", + "type": "string", + }, + "region": map[string]interface{}{ + "description": "AWS region", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "This is the AWS role to be assumed before talking to vault", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Specify credentials in a Secret object", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "sessionTokenSecretRef": map[string]interface{}{ + "description": "The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "vaultAwsIamServerID": map[string]interface{}{ + "description": "X-Vault-AWS-IAM-Server-ID is an additional header used by Vault IAM auth method to mitigate against different types of replay attacks. More details here: https://developer.hashicorp.com/vault/docs/auth/aws", + "type": "string", + }, + "vaultRole": map[string]interface{}{ + "description": "Vault Role. In vault, a role describes an identity with a set of permissions, groups, or policies you want to attach a user of the secrets engine", + "type": "string", + }, + }, + "required": []interface{}{ + "vaultRole", + }, + "type": "object", + }, + "jwt": map[string]interface{}{ + "description": "Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method", + "properties": map[string]interface{}{ + "kubernetesServiceAccountToken": map[string]interface{}{ + "description": "Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. Deprecated: use serviceAccountRef.Audiences instead", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "expirationSeconds": map[string]interface{}{ + "description": "Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Deprecated: this will be removed in the future. Defaults to 10 minutes.", + "format": "int64", + "type": "integer", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Service account field containing the name of a kubernetes ServiceAccount.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "serviceAccountRef", + }, + "type": "object", + }, + "path": map[string]interface{}{ + "default": "jwt", + "description": "Path where the JWT authentication backend is mounted in Vault, e.g: \"jwt\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.", + "properties": map[string]interface{}{ + "mountPath": map[string]interface{}{ + "default": "kubernetes", + "description": "Path where the Kubernetes authentication backend is mounted in Vault, e.g: \"kubernetes\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies.", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "mountPath", + "role", + }, + "type": "object", + }, + "ldap": map[string]interface{}{ + "description": "Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "ldap", + "description": "Path where the LDAP authentication backend is mounted in Vault, e.g: \"ldap\"", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "username": map[string]interface{}{ + "description": "Username is a LDAP user name used to authenticate using the LDAP Vault authentication method", + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "username", + }, + "type": "object", + }, + "tokenSecretRef": map[string]interface{}{ + "description": "TokenSecretRef authenticates with Vault by presenting a token.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "userPass": map[string]interface{}{ + "description": "UserPass authenticates with Vault by passing username/password pair", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "user", + "description": "Path where the UserPassword authentication backend is mounted in Vault, e.g: \"user\"", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing password for the user used to authenticate with Vault using the UserPass authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "username": map[string]interface{}{ + "description": "Username is a user name used to authenticate using the UserPass Vault authentication method", + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "username", + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Vault server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "forwardInconsistent": map[string]interface{}{ + "description": "ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header", + "type": "boolean", + }, + "namespace": map[string]interface{}{ + "description": "Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: \"ns1\". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces", + "type": "string", + }, + "path": map[string]interface{}{ + "description": "Path is the mount path of the Vault KV backend endpoint, e.g: \"secret\". The v2 KV secret engine version specific \"/data\" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.", + "type": "string", + }, + "readYourWrites": map[string]interface{}{ + "description": "ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency", + "type": "boolean", + }, + "server": map[string]interface{}{ + "description": "Server is the connection address for the Vault server, e.g: \"https://vault.example.com:8200\".", + "type": "string", + }, + "version": map[string]interface{}{ + "default": "v2", + "description": "Version is the Vault KV secret engine version. This can be either \"v1\" or \"v2\". Version defaults to \"v2\".", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "server", + }, + "type": "object", + }, + "webhook": map[string]interface{}{ + "description": "Webhook configures this store to sync secrets using a generic templated webhook", + "properties": map[string]interface{}{ + "body": map[string]interface{}{ + "description": "Body", + "type": "string", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate webhook server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate webhook server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key the value inside of the provider type to use, only used with \"Secret\" type", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "headers": map[string]interface{}{ + "additionalProperties": map[string]interface{}{ + "type": "string", + }, + "description": "Headers", + "type": "object", + }, + "method": map[string]interface{}{ + "description": "Webhook Method", + "type": "string", + }, + "result": map[string]interface{}{ + "description": "Result formatting", + "properties": map[string]interface{}{ + "jsonPath": map[string]interface{}{ + "description": "Json path of return value", + "type": "string", + }, + }, + "type": "object", + }, + "secrets": map[string]interface{}{ + "description": "Secrets to fill in templates These secrets will be passed to the templating function as key value pairs under the given name", + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "name": map[string]interface{}{ + "description": "Name of this secret in templates", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Secret ref to fill in credentials", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "name", + "secretRef", + }, + "type": "object", + }, + "type": "array", + }, + "timeout": map[string]interface{}{ + "description": "Timeout", + "type": "string", + }, + "url": map[string]interface{}{ + "description": "Webhook url to call", + "type": "string", + }, + }, + "required": []interface{}{ + "result", + "url", + }, + "type": "object", + }, + "yandexcertificatemanager": map[string]interface{}{ + "description": "YandexCertificateManager configures this store to sync secrets using Yandex Certificate Manager provider", + "properties": map[string]interface{}{ + "apiEndpoint": map[string]interface{}{ + "description": "Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443')", + "type": "string", + }, + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against Yandex Certificate Manager", + "properties": map[string]interface{}{ + "authorizedKeySecretRef": map[string]interface{}{ + "description": "The authorized key used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Yandex.Cloud server certificate.", + "properties": map[string]interface{}{ + "certSecretRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + "yandexlockbox": map[string]interface{}{ + "description": "YandexLockbox configures this store to sync secrets using Yandex Lockbox provider", + "properties": map[string]interface{}{ + "apiEndpoint": map[string]interface{}{ + "description": "Yandex.Cloud API endpoint (e.g. 'api.cloud.yandex.net:443')", + "type": "string", + }, + "auth": map[string]interface{}{ + "description": "Auth defines the information necessary to authenticate against Yandex Lockbox", + "properties": map[string]interface{}{ + "authorizedKeySecretRef": map[string]interface{}{ + "description": "The authorized key used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Yandex.Cloud server certificate.", + "properties": map[string]interface{}{ + "certSecretRef": map[string]interface{}{ + "description": "A reference to a specific 'key' within a Secret resource, In some instances, `key` is a required field.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "auth", + }, + "type": "object", + }, + }, + "type": "object", + }, + "refreshInterval": map[string]interface{}{ + "description": "Used to configure store refresh interval in seconds. Empty or 0 will default to the controller config.", + "type": "integer", + }, + "retrySettings": map[string]interface{}{ + "description": "Used to configure http retries if failed", + "properties": map[string]interface{}{ + "maxRetries": map[string]interface{}{ + "format": "int32", + "type": "integer", + }, + "retryInterval": map[string]interface{}{ + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "provider", + }, + "type": "object", + }, + "status": map[string]interface{}{ + "description": "SecretStoreStatus defines the observed state of the SecretStore.", + "properties": map[string]interface{}{ + "capabilities": map[string]interface{}{ + "description": "SecretStoreCapabilities defines the possible operations a SecretStore can do.", + "type": "string", + }, + "conditions": map[string]interface{}{ + "items": map[string]interface{}{ + "properties": map[string]interface{}{ + "lastTransitionTime": map[string]interface{}{ + "format": "date-time", + "type": "string", + }, + "message": map[string]interface{}{ + "type": "string", + }, + "reason": map[string]interface{}{ + "type": "string", + }, + "status": map[string]interface{}{ + "type": "string", + }, + "type": map[string]interface{}{ + "type": "string", + }, + }, + "required": []interface{}{ + "status", + "type", + }, + "type": "object", + }, + "type": "array", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDSecretstoresExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;create;update;patch;delete + +// CreateCRDVaultdynamicsecretsGeneratorsExternalSecretsIo creates the CustomResourceDefinition resource with name vaultdynamicsecrets.generators.external-secrets.io. +func CreateCRDVaultdynamicsecretsGeneratorsExternalSecretsIo( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + // Source: external-secrets/templates/crds/vaultdynamicsecret.yaml + "apiVersion": "apiextensions.k8s.io/v1", + "kind": "CustomResourceDefinition", + "metadata": map[string]interface{}{ + "annotations": map[string]interface{}{ + "controller-gen.kubebuilder.io/version": "v0.13.0", + }, + "name": "vaultdynamicsecrets.generators.external-secrets.io", + }, + "spec": map[string]interface{}{ + "group": "generators.external-secrets.io", + "names": map[string]interface{}{ + "categories": []interface{}{ + "vaultdynamicsecret", + }, + "kind": "VaultDynamicSecret", + "listKind": "VaultDynamicSecretList", + "plural": "vaultdynamicsecrets", + "shortNames": []interface{}{ + "vaultdynamicsecret", + }, + "singular": "vaultdynamicsecret", + }, + "scope": "Namespaced", + "versions": []interface{}{ + map[string]interface{}{ + "name": "v1alpha1", + "schema": map[string]interface{}{ + "openAPIV3Schema": map[string]interface{}{ + "properties": map[string]interface{}{ + "apiVersion": map[string]interface{}{ + "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources", + "type": "string", + }, + "kind": map[string]interface{}{ + "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds", + "type": "string", + }, + "metadata": map[string]interface{}{ + "type": "object", + }, + "spec": map[string]interface{}{ + "properties": map[string]interface{}{ + "controller": map[string]interface{}{ + "description": "Used to select the correct ESO controller (think: ingress.ingressClassName) The ESO controller is instantiated with a specific controller name and filters VDS based on this property", + "type": "string", + }, + "method": map[string]interface{}{ + "description": "Vault API method to use (GET/POST/other)", + "type": "string", + }, + "parameters": map[string]interface{}{ + "description": "Parameters to pass to Vault write (for non-GET methods)", + "x-kubernetes-preserve-unknown-fields": true, + }, + "path": map[string]interface{}{ + "description": "Vault path to obtain the dynamic secret from", + "type": "string", + }, + "provider": map[string]interface{}{ + "description": "Vault provider common spec", + "properties": map[string]interface{}{ + "auth": map[string]interface{}{ + "description": "Auth configures how secret-manager authenticates with the Vault server.", + "properties": map[string]interface{}{ + "appRole": map[string]interface{}{ + "description": "AppRole authenticates with Vault using the App Role auth mechanism, with the role and secret stored in a Kubernetes Secret resource.", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "approle", + "description": "Path where the App Role authentication backend is mounted in Vault, e.g: \"approle\"", + "type": "string", + }, + "roleId": map[string]interface{}{ + "description": "RoleID configured in the App Role authentication backend when setting up the authentication backend in Vault.", + "type": "string", + }, + "roleRef": map[string]interface{}{ + "description": "Reference to a key in a Secret that contains the App Role ID used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role id.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "Reference to a key in a Secret that contains the App Role secret used to authenticate with Vault. The `key` field must be specified and denotes which entry within the Secret resource is used as the app role secret.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + "secretRef", + }, + "type": "object", + }, + "cert": map[string]interface{}{ + "description": "Cert authenticates with TLS Certificates by passing client certificate, private key and ca certificate Cert authentication method", + "properties": map[string]interface{}{ + "clientCert": map[string]interface{}{ + "description": "ClientCert is a certificate to authenticate using the Cert Vault authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing client private key to authenticate with Vault using the Cert authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "iam": map[string]interface{}{ + "description": "Iam authenticates with vault by passing a special AWS request signed with AWS IAM credentials AWS IAM authentication method", + "properties": map[string]interface{}{ + "externalID": map[string]interface{}{ + "description": "AWS External ID set on assumed IAM roles", + "type": "string", + }, + "jwt": map[string]interface{}{ + "description": "Specify a service account with IRSA enabled", + "properties": map[string]interface{}{ + "serviceAccountRef": map[string]interface{}{ + "description": "A reference to a ServiceAccount resource.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "type": "object", + }, + "path": map[string]interface{}{ + "description": "Path where the AWS auth method is enabled in Vault, e.g: \"aws\"", + "type": "string", + }, + "region": map[string]interface{}{ + "description": "AWS region", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "This is the AWS role to be assumed before talking to vault", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Specify credentials in a Secret object", + "properties": map[string]interface{}{ + "accessKeyIDSecretRef": map[string]interface{}{ + "description": "The AccessKeyID is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "secretAccessKeySecretRef": map[string]interface{}{ + "description": "The SecretAccessKey is used for authentication", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "sessionTokenSecretRef": map[string]interface{}{ + "description": "The SessionToken used for authentication This must be defined if AccessKeyID and SecretAccessKey are temporary credentials see: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "type": "object", + }, + "vaultAwsIamServerID": map[string]interface{}{ + "description": "X-Vault-AWS-IAM-Server-ID is an additional header used by Vault IAM auth method to mitigate against different types of replay attacks. More details here: https://developer.hashicorp.com/vault/docs/auth/aws", + "type": "string", + }, + "vaultRole": map[string]interface{}{ + "description": "Vault Role. In vault, a role describes an identity with a set of permissions, groups, or policies you want to attach a user of the secrets engine", + "type": "string", + }, + }, + "required": []interface{}{ + "vaultRole", + }, + "type": "object", + }, + "jwt": map[string]interface{}{ + "description": "Jwt authenticates with Vault by passing role and JWT token using the JWT/OIDC authentication method", + "properties": map[string]interface{}{ + "kubernetesServiceAccountToken": map[string]interface{}{ + "description": "Optional ServiceAccountToken specifies the Kubernetes service account for which to request a token for with the `TokenRequest` API.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Optional audiences field that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Defaults to a single audience `vault` it not specified. Deprecated: use serviceAccountRef.Audiences instead", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "expirationSeconds": map[string]interface{}{ + "description": "Optional expiration time in seconds that will be used to request a temporary Kubernetes service account token for the service account referenced by `serviceAccountRef`. Deprecated: this will be removed in the future. Defaults to 10 minutes.", + "format": "int64", + "type": "integer", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Service account field containing the name of a kubernetes ServiceAccount.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "serviceAccountRef", + }, + "type": "object", + }, + "path": map[string]interface{}{ + "default": "jwt", + "description": "Path where the JWT authentication backend is mounted in Vault, e.g: \"jwt\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "Role is a JWT role to authenticate using the JWT/OIDC Vault authentication method", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional SecretRef that refers to a key in a Secret resource containing JWT token to authenticate with Vault using the JWT/OIDC authentication method.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + }, + "required": []interface{}{ + "path", + }, + "type": "object", + }, + "kubernetes": map[string]interface{}{ + "description": "Kubernetes authenticates with Vault by passing the ServiceAccount token stored in the named Secret resource to the Vault server.", + "properties": map[string]interface{}{ + "mountPath": map[string]interface{}{ + "default": "kubernetes", + "description": "Path where the Kubernetes authentication backend is mounted in Vault, e.g: \"kubernetes\"", + "type": "string", + }, + "role": map[string]interface{}{ + "description": "A required field containing the Vault Role to assume. A Role binds a Kubernetes ServiceAccount with a set of Vault policies.", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "Optional secret field containing a Kubernetes ServiceAccount JWT used for authenticating with Vault. If a name is specified without a key, `token` is the default. If one is not specified, the one bound to the controller will be used.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "serviceAccountRef": map[string]interface{}{ + "description": "Optional service account field containing the name of a kubernetes ServiceAccount. If the service account is specified, the service account secret token JWT will be used for authenticating with Vault. If the service account selector is not supplied, the secretRef will be used instead.", + "properties": map[string]interface{}{ + "audiences": map[string]interface{}{ + "description": "Audience specifies the `aud` claim for the service account token If the service account uses a well-known annotation for e.g. IRSA or GCP Workload Identity then this audiences will be appended to the list", + "items": map[string]interface{}{ + "type": "string", + }, + "type": "array", + }, + "name": map[string]interface{}{ + "description": "The name of the ServiceAccount resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "required": []interface{}{ + "name", + }, + "type": "object", + }, + }, + "required": []interface{}{ + "mountPath", + "role", + }, + "type": "object", + }, + "ldap": map[string]interface{}{ + "description": "Ldap authenticates with Vault by passing username/password pair using the LDAP authentication method", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "ldap", + "description": "Path where the LDAP authentication backend is mounted in Vault, e.g: \"ldap\"", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing password for the LDAP user used to authenticate with Vault using the LDAP authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "username": map[string]interface{}{ + "description": "Username is a LDAP user name used to authenticate using the LDAP Vault authentication method", + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "username", + }, + "type": "object", + }, + "tokenSecretRef": map[string]interface{}{ + "description": "TokenSecretRef authenticates with Vault by presenting a token.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "userPass": map[string]interface{}{ + "description": "UserPass authenticates with Vault by passing username/password pair", + "properties": map[string]interface{}{ + "path": map[string]interface{}{ + "default": "user", + "description": "Path where the UserPassword authentication backend is mounted in Vault, e.g: \"user\"", + "type": "string", + }, + "secretRef": map[string]interface{}{ + "description": "SecretRef to a key in a Secret resource containing password for the user used to authenticate with Vault using the UserPass authentication method", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key of the entry in the Secret resource's `data` field to be used. Some instances of this field may be defaulted, in others it may be required.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the Secret resource being referred to.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "Namespace of the resource being referred to. Ignored if referent is not cluster-scoped. cluster-scoped defaults to the namespace of the referent.", + "type": "string", + }, + }, + "type": "object", + }, + "username": map[string]interface{}{ + "description": "Username is a user name used to authenticate using the UserPass Vault authentication method", + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "username", + }, + "type": "object", + }, + }, + "type": "object", + }, + "caBundle": map[string]interface{}{ + "description": "PEM encoded CA bundle used to validate Vault server certificate. Only used if the Server URL is using HTTPS protocol. This parameter is ignored for plain HTTP protocol connection. If not set the system root certificates are used to validate the TLS connection.", + "format": "byte", + "type": "string", + }, + "caProvider": map[string]interface{}{ + "description": "The provider for the CA bundle to use to validate Vault server certificate.", + "properties": map[string]interface{}{ + "key": map[string]interface{}{ + "description": "The key where the CA certificate can be found in the Secret or ConfigMap.", + "type": "string", + }, + "name": map[string]interface{}{ + "description": "The name of the object located at the provider type.", + "type": "string", + }, + "namespace": map[string]interface{}{ + "description": "The namespace the Provider type is in. Can only be defined when used in a ClusterSecretStore.", + "type": "string", + }, + "type": map[string]interface{}{ + "description": "The type of provider to use such as \"Secret\", or \"ConfigMap\".", + "enum": []interface{}{ + "Secret", + "ConfigMap", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "name", + "type", + }, + "type": "object", + }, + "forwardInconsistent": map[string]interface{}{ + "description": "ForwardInconsistent tells Vault to forward read-after-write requests to the Vault leader instead of simply retrying within a loop. This can increase performance if the option is enabled serverside. https://www.vaultproject.io/docs/configuration/replication#allow_forwarding_via_header", + "type": "boolean", + }, + "namespace": map[string]interface{}{ + "description": "Name of the vault namespace. Namespaces is a set of features within Vault Enterprise that allows Vault environments to support Secure Multi-tenancy. e.g: \"ns1\". More about namespaces can be found here https://www.vaultproject.io/docs/enterprise/namespaces", + "type": "string", + }, + "path": map[string]interface{}{ + "description": "Path is the mount path of the Vault KV backend endpoint, e.g: \"secret\". The v2 KV secret engine version specific \"/data\" path suffix for fetching secrets from Vault is optional and will be appended if not present in specified path.", + "type": "string", + }, + "readYourWrites": map[string]interface{}{ + "description": "ReadYourWrites ensures isolated read-after-write semantics by providing discovered cluster replication states in each request. More information about eventual consistency in Vault can be found here https://www.vaultproject.io/docs/enterprise/consistency", + "type": "boolean", + }, + "server": map[string]interface{}{ + "description": "Server is the connection address for the Vault server, e.g: \"https://vault.example.com:8200\".", + "type": "string", + }, + "version": map[string]interface{}{ + "default": "v2", + "description": "Version is the Vault KV secret engine version. This can be either \"v1\" or \"v2\". Version defaults to \"v2\".", + "enum": []interface{}{ + "v1", + "v2", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "auth", + "server", + }, + "type": "object", + }, + "resultType": map[string]interface{}{ + "default": "Data", + "description": "Result type defines which data is returned from the generator. By default it is the \"data\" section of the Vault API response. When using e.g. /auth/token/create the \"data\" section is empty but the \"auth\" section contains the generated token. Please refer to the vault docs regarding the result data structure.", + "enum": []interface{}{ + "Data", + "Auth", + }, + "type": "string", + }, + }, + "required": []interface{}{ + "path", + "provider", + }, + "type": "object", + }, + }, + "type": "object", + }, + }, + "served": true, + "storage": true, + "subresources": map[string]interface{}{ + "status": map[string]interface{}{}, + }, + }, + }, + "conversion": map[string]interface{}{ + "strategy": "Webhook", + "webhook": map[string]interface{}{ + "conversionReviewVersions": []interface{}{ + "v1", + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "name": "release-name-external-secrets-webhook", + "namespace": "default", + "path": "/convert", + }, + }, + }, + }, + }, + }, + } + + return mutate.MutateCRDVaultdynamicsecretsGeneratorsExternalSecretsIo(resourceObj, parent, collection, reconciler, req) +} diff --git a/apis/secrets/v1alpha1/externalsecrets/deployment.go b/apis/secrets/v1alpha1/externalsecrets/deployment.go new file mode 100644 index 0000000..48a5345 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/deployment.go @@ -0,0 +1,443 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package externalsecrets + +import ( + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets/mutate" +) + +// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete + +// CreateDeploymentNamespaceExternalSecretsCertController creates the Deployment resource with name external-secrets-cert-controller. +func CreateDeploymentNamespaceExternalSecretsCertController( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "apps/v1", + "kind": "Deployment", + "metadata": map[string]interface{}{ + "name": "external-secrets-cert-controller", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-cert-controller", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "spec": map[string]interface{}{ + // controlled by field: certController.replicas + // Number of replicas to use for the external-secrets cert-controller deployment. + "replicas": parent.Spec.CertController.Replicas, + "selector": map[string]interface{}{ + "matchLabels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-cert-controller", + "app.kubernetes.io/instance": "external-secrets", + }, + }, + "template": map[string]interface{}{ + "metadata": map[string]interface{}{ + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-cert-controller", + "app.kubernetes.io/instance": "external-secrets", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "spec": map[string]interface{}{ + "serviceAccountName": "external-secrets-cert-controller", + "containers": []interface{}{ + map[string]interface{}{ + "name": "cert-controller", + // controlled by field: image + // controlled by field: version + // Image repo and name to use for external-secrets. + // Version of external-secrets to use. + "image": "" + parent.Spec.Image + ":" + parent.Spec.Version + "", + "imagePullPolicy": "IfNotPresent", + "args": []interface{}{ + "certcontroller", + "--crd-requeue-interval=5m", + "--service-name=external-secrets-webhook", + "--service-namespace=nukleros-secrets-system", + "--secret-name=external-secrets-webhook", + "--secret-namespace=nukleros-secrets-system", + }, + "ports": []interface{}{ + map[string]interface{}{ + "containerPort": 8080, + "protocol": "TCP", + "name": "metrics", + }, + }, + "readinessProbe": map[string]interface{}{ + "httpGet": map[string]interface{}{ + "port": 8081, + "path": "/readyz", + }, + "initialDelaySeconds": 20, + "periodSeconds": 5, + }, + "securityContext": map[string]interface{}{ + "allowPrivilegeEscalation": false, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "capabilities": map[string]interface{}{ + "drop": []interface{}{ + "ALL", + }, + }, + "runAsUser": 65534, + }, + "resources": map[string]interface{}{ + "requests": map[string]interface{}{ + "cpu": "50m", + "memory": "32Mi", + }, + "limits": map[string]interface{}{ + "cpu": "100m", + "memory": "64Mi", + }, + }, + }, + }, + "affinity": map[string]interface{}{ + "podAntiAffinity": map[string]interface{}{ + "preferredDuringSchedulingIgnoredDuringExecution": []interface{}{ + map[string]interface{}{ + "weight": 100, + "podAffinityTerm": map[string]interface{}{ + "topologyKey": "kubernetes.io/hostname", + "labelSelector": map[string]interface{}{ + "matchExpressions": []interface{}{ + map[string]interface{}{ + "key": "app.kubernetes.io/name", + "operator": "In", + "values": []interface{}{ + "external-secrets-cert-controller", + }, + }, + }, + }, + }, + }, + }, + }, + }, + "nodeSelector": map[string]interface{}{ + "kubernetes.io/os": "linux", + }, + }, + }, + }, + }, + } + + return mutate.MutateDeploymentNamespaceExternalSecretsCertController(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete + +// CreateDeploymentNamespaceExternalSecrets creates the Deployment resource with name external-secrets. +func CreateDeploymentNamespaceExternalSecrets( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "apps/v1", + "kind": "Deployment", + "metadata": map[string]interface{}{ + "name": "external-secrets", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "spec": map[string]interface{}{ + // controlled by field: controller.replicas + // Number of replicas to use for the external-secrets controller deployment. + "replicas": parent.Spec.Controller.Replicas, + "selector": map[string]interface{}{ + "matchLabels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + }, + }, + "template": map[string]interface{}{ + "metadata": map[string]interface{}{ + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "spec": map[string]interface{}{ + "serviceAccountName": "external-secrets", + "containers": []interface{}{ + map[string]interface{}{ + "name": "external-secrets", + // controlled by field: image + // controlled by field: version + // Image repo and name to use for external-secrets. + // Version of external-secrets to use. + "image": "" + parent.Spec.Image + ":" + parent.Spec.Version + "", + "imagePullPolicy": "IfNotPresent", + "args": []interface{}{ + "--concurrent=2", + }, + "ports": []interface{}{ + map[string]interface{}{ + "containerPort": 8080, + "protocol": "TCP", + "name": "metrics", + }, + }, + "securityContext": map[string]interface{}{ + "allowPrivilegeEscalation": false, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "capabilities": map[string]interface{}{ + "drop": []interface{}{ + "ALL", + }, + }, + "runAsUser": 65534, + }, + "resources": map[string]interface{}{ + "requests": map[string]interface{}{ + "cpu": "50m", + "memory": "32Mi", + }, + "limits": map[string]interface{}{ + "cpu": "100m", + "memory": "64Mi", + }, + }, + }, + }, + "affinity": map[string]interface{}{ + "podAntiAffinity": map[string]interface{}{ + "preferredDuringSchedulingIgnoredDuringExecution": []interface{}{ + map[string]interface{}{ + "weight": 100, + "podAffinityTerm": map[string]interface{}{ + "topologyKey": "kubernetes.io/hostname", + "labelSelector": map[string]interface{}{ + "matchExpressions": []interface{}{ + map[string]interface{}{ + "key": "app.kubernetes.io/name", + "operator": "In", + "values": []interface{}{ + "external-secrets", + }, + }, + }, + }, + }, + }, + }, + }, + }, + "nodeSelector": map[string]interface{}{ + "kubernetes.io/os": "linux", + }, + }, + }, + }, + }, + } + + return mutate.MutateDeploymentNamespaceExternalSecrets(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete + +// CreateDeploymentNamespaceExternalSecretsWebhook creates the Deployment resource with name external-secrets-webhook. +func CreateDeploymentNamespaceExternalSecretsWebhook( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "apps/v1", + "kind": "Deployment", + "metadata": map[string]interface{}{ + "name": "external-secrets-webhook", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-webhook", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "spec": map[string]interface{}{ + // controlled by field: webhook.replicas + // Number of replicas to use for the external-secrets webhook deployment. + "replicas": parent.Spec.Webhook.Replicas, + "selector": map[string]interface{}{ + "matchLabels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-webhook", + "app.kubernetes.io/instance": "external-secrets", + }, + }, + "template": map[string]interface{}{ + "metadata": map[string]interface{}{ + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-webhook", + "app.kubernetes.io/instance": "external-secrets", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "spec": map[string]interface{}{ + "hostNetwork": false, + "serviceAccountName": "external-secrets-webhook", + "containers": []interface{}{ + map[string]interface{}{ + "name": "webhook", + // controlled by field: image + // controlled by field: version + // Image repo and name to use for external-secrets. + // Version of external-secrets to use. + "image": "" + parent.Spec.Image + ":" + parent.Spec.Version + "", + "imagePullPolicy": "IfNotPresent", + "args": []interface{}{ + "webhook", + "--port=10250", + "--dns-name=external-secrets-webhook.nukleros-secrets-system.svc", + "--cert-dir=/tmp/certs", + "--check-interval=5m", + }, + "ports": []interface{}{ + map[string]interface{}{ + "containerPort": 8080, + "protocol": "TCP", + "name": "metrics", + }, + map[string]interface{}{ + "containerPort": 10250, + "protocol": "TCP", + "name": "webhook", + }, + }, + "readinessProbe": map[string]interface{}{ + "httpGet": map[string]interface{}{ + "port": 8081, + "path": "/readyz", + }, + "initialDelaySeconds": 20, + "periodSeconds": 5, + }, + "volumeMounts": []interface{}{ + map[string]interface{}{ + "name": "certs", + "mountPath": "/tmp/certs", + "readOnly": true, + }, + }, + "securityContext": map[string]interface{}{ + "allowPrivilegeEscalation": false, + "runAsNonRoot": true, + "readOnlyRootFilesystem": true, + "capabilities": map[string]interface{}{ + "drop": []interface{}{ + "ALL", + }, + }, + "runAsUser": 65534, + }, + "resources": map[string]interface{}{ + "requests": map[string]interface{}{ + "cpu": "50m", + "memory": "32Mi", + }, + "limits": map[string]interface{}{ + "cpu": "100m", + "memory": "64Mi", + }, + }, + }, + }, + "volumes": []interface{}{ + map[string]interface{}{ + "name": "certs", + "secret": map[string]interface{}{ + "secretName": "external-secrets-webhook", + }, + }, + }, + "affinity": map[string]interface{}{ + "podAntiAffinity": map[string]interface{}{ + "preferredDuringSchedulingIgnoredDuringExecution": []interface{}{ + map[string]interface{}{ + "weight": 100, + "podAffinityTerm": map[string]interface{}{ + "topologyKey": "kubernetes.io/hostname", + "labelSelector": map[string]interface{}{ + "matchExpressions": []interface{}{ + map[string]interface{}{ + "key": "app.kubernetes.io/name", + "operator": "In", + "values": []interface{}{ + "external-secrets-webhook", + }, + }, + }, + }, + }, + }, + }, + }, + }, + "nodeSelector": map[string]interface{}{ + "kubernetes.io/os": "linux", + }, + }, + }, + }, + }, + } + + return mutate.MutateDeploymentNamespaceExternalSecretsWebhook(resourceObj, parent, collection, reconciler, req) +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_binding_external_secrets_cert_controller.go b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_binding_external_secrets_cert_controller.go new file mode 100644 index 0000000..80dafea --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_binding_external_secrets_cert_controller.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateClusterRoleBindingExternalSecretsCertController mutates the ClusterRoleBinding resource with name external-secrets-cert-controller. +func MutateClusterRoleBindingExternalSecretsCertController( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_binding_external_secrets_controller.go b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_binding_external_secrets_controller.go new file mode 100644 index 0000000..81fad8d --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_binding_external_secrets_controller.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateClusterRoleBindingExternalSecretsController mutates the ClusterRoleBinding resource with name external-secrets-controller. +func MutateClusterRoleBindingExternalSecretsController( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_cert_controller.go b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_cert_controller.go new file mode 100644 index 0000000..fa25275 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_cert_controller.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateClusterRoleExternalSecretsCertController mutates the ClusterRole resource with name external-secrets-cert-controller. +func MutateClusterRoleExternalSecretsCertController( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_controller.go b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_controller.go new file mode 100644 index 0000000..4ef20b9 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_controller.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateClusterRoleExternalSecretsController mutates the ClusterRole resource with name external-secrets-controller. +func MutateClusterRoleExternalSecretsController( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_edit.go b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_edit.go new file mode 100644 index 0000000..1081b80 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_edit.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateClusterRoleExternalSecretsEdit mutates the ClusterRole resource with name external-secrets-edit. +func MutateClusterRoleExternalSecretsEdit( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_view.go b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_view.go new file mode 100644 index 0000000..e5abcb4 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/cluster_role_external_secrets_view.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateClusterRoleExternalSecretsView mutates the ClusterRole resource with name external-secrets-view. +func MutateClusterRoleExternalSecretsView( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_acraccesstokens_generators_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_acraccesstokens_generators_external_secrets_io.go new file mode 100644 index 0000000..7037555 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_acraccesstokens_generators_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDAcraccesstokensGeneratorsExternalSecretsIo mutates the CustomResourceDefinition resource with name acraccesstokens.generators.external-secrets.io. +func MutateCRDAcraccesstokensGeneratorsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_clusterexternalsecrets_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_clusterexternalsecrets_external_secrets_io.go new file mode 100644 index 0000000..a9aee68 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_clusterexternalsecrets_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDClusterexternalsecretsExternalSecretsIo mutates the CustomResourceDefinition resource with name clusterexternalsecrets.external-secrets.io. +func MutateCRDClusterexternalsecretsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_clustersecretstores_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_clustersecretstores_external_secrets_io.go new file mode 100644 index 0000000..6dbbfa2 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_clustersecretstores_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDClustersecretstoresExternalSecretsIo mutates the CustomResourceDefinition resource with name clustersecretstores.external-secrets.io. +func MutateCRDClustersecretstoresExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_ecrauthorizationtokens_generators_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_ecrauthorizationtokens_generators_external_secrets_io.go new file mode 100644 index 0000000..b266984 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_ecrauthorizationtokens_generators_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDEcrauthorizationtokensGeneratorsExternalSecretsIo mutates the CustomResourceDefinition resource with name ecrauthorizationtokens.generators.external-secrets.io. +func MutateCRDEcrauthorizationtokensGeneratorsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_externalsecrets_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_externalsecrets_external_secrets_io.go new file mode 100644 index 0000000..b342a40 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_externalsecrets_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDExternalsecretsExternalSecretsIo mutates the CustomResourceDefinition resource with name externalsecrets.external-secrets.io. +func MutateCRDExternalsecretsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_fakes_generators_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_fakes_generators_external_secrets_io.go new file mode 100644 index 0000000..3da2544 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_fakes_generators_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDFakesGeneratorsExternalSecretsIo mutates the CustomResourceDefinition resource with name fakes.generators.external-secrets.io. +func MutateCRDFakesGeneratorsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_gcraccesstokens_generators_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_gcraccesstokens_generators_external_secrets_io.go new file mode 100644 index 0000000..914a8a3 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_gcraccesstokens_generators_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDGcraccesstokensGeneratorsExternalSecretsIo mutates the CustomResourceDefinition resource with name gcraccesstokens.generators.external-secrets.io. +func MutateCRDGcraccesstokensGeneratorsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_passwords_generators_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_passwords_generators_external_secrets_io.go new file mode 100644 index 0000000..8baecb4 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_passwords_generators_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDPasswordsGeneratorsExternalSecretsIo mutates the CustomResourceDefinition resource with name passwords.generators.external-secrets.io. +func MutateCRDPasswordsGeneratorsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_pushsecrets_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_pushsecrets_external_secrets_io.go new file mode 100644 index 0000000..bc56e12 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_pushsecrets_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDPushsecretsExternalSecretsIo mutates the CustomResourceDefinition resource with name pushsecrets.external-secrets.io. +func MutateCRDPushsecretsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_secretstores_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_secretstores_external_secrets_io.go new file mode 100644 index 0000000..19c1a78 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_secretstores_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDSecretstoresExternalSecretsIo mutates the CustomResourceDefinition resource with name secretstores.external-secrets.io. +func MutateCRDSecretstoresExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/crd_vaultdynamicsecrets_generators_external_secrets_io.go b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_vaultdynamicsecrets_generators_external_secrets_io.go new file mode 100644 index 0000000..48574eb --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/crd_vaultdynamicsecrets_generators_external_secrets_io.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateCRDVaultdynamicsecretsGeneratorsExternalSecretsIo mutates the CustomResourceDefinition resource with name vaultdynamicsecrets.generators.external-secrets.io. +func MutateCRDVaultdynamicsecretsGeneratorsExternalSecretsIo( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets.go b/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets.go new file mode 100644 index 0000000..a314459 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateDeploymentNamespaceExternalSecrets mutates the Deployment resource with name external-secrets. +func MutateDeploymentNamespaceExternalSecrets( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets_cert_controller.go b/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets_cert_controller.go new file mode 100644 index 0000000..d97e9d3 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets_cert_controller.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateDeploymentNamespaceExternalSecretsCertController mutates the Deployment resource with name external-secrets-cert-controller. +func MutateDeploymentNamespaceExternalSecretsCertController( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets_webhook.go b/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets_webhook.go new file mode 100644 index 0000000..c635578 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/deployment_namespace_external_secrets_webhook.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateDeploymentNamespaceExternalSecretsWebhook mutates the Deployment resource with name external-secrets-webhook. +func MutateDeploymentNamespaceExternalSecretsWebhook( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/namespace_namespace.go b/apis/secrets/v1alpha1/externalsecrets/mutate/namespace_namespace.go new file mode 100644 index 0000000..5ae5e0c --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/namespace_namespace.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateNamespaceNamespace mutates the Namespace resource with name parent.Spec.Namespace. +func MutateNamespaceNamespace( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/role_binding_namespace_external_secrets_leaderelection.go b/apis/secrets/v1alpha1/externalsecrets/mutate/role_binding_namespace_external_secrets_leaderelection.go new file mode 100644 index 0000000..984d0a3 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/role_binding_namespace_external_secrets_leaderelection.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateRoleBindingNamespaceExternalSecretsLeaderelection mutates the RoleBinding resource with name external-secrets-leaderelection. +func MutateRoleBindingNamespaceExternalSecretsLeaderelection( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/role_namespace_external_secrets_leaderelection.go b/apis/secrets/v1alpha1/externalsecrets/mutate/role_namespace_external_secrets_leaderelection.go new file mode 100644 index 0000000..b48a080 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/role_namespace_external_secrets_leaderelection.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateRoleNamespaceExternalSecretsLeaderelection mutates the Role resource with name external-secrets-leaderelection. +func MutateRoleNamespaceExternalSecretsLeaderelection( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/secret_namespace_external_secrets_webhook.go b/apis/secrets/v1alpha1/externalsecrets/mutate/secret_namespace_external_secrets_webhook.go new file mode 100644 index 0000000..438d87b --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/secret_namespace_external_secrets_webhook.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateSecretNamespaceExternalSecretsWebhook mutates the Secret resource with name external-secrets-webhook. +func MutateSecretNamespaceExternalSecretsWebhook( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets.go b/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets.go new file mode 100644 index 0000000..2e90a7c --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateServiceAccountNamespaceExternalSecrets mutates the ServiceAccount resource with name external-secrets. +func MutateServiceAccountNamespaceExternalSecrets( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets_cert_controller.go b/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets_cert_controller.go new file mode 100644 index 0000000..3e5dacb --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets_cert_controller.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateServiceAccountNamespaceExternalSecretsCertController mutates the ServiceAccount resource with name external-secrets-cert-controller. +func MutateServiceAccountNamespaceExternalSecretsCertController( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets_webhook.go b/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets_webhook.go new file mode 100644 index 0000000..c91ed58 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/service_account_namespace_external_secrets_webhook.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateServiceAccountNamespaceExternalSecretsWebhook mutates the ServiceAccount resource with name external-secrets-webhook. +func MutateServiceAccountNamespaceExternalSecretsWebhook( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/service_namespace_external_secrets_webhook.go b/apis/secrets/v1alpha1/externalsecrets/mutate/service_namespace_external_secrets_webhook.go new file mode 100644 index 0000000..007ec22 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/service_namespace_external_secrets_webhook.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateServiceNamespaceExternalSecretsWebhook mutates the Service resource with name external-secrets-webhook. +func MutateServiceNamespaceExternalSecretsWebhook( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/validating_webhook_externalsecret_validate.go b/apis/secrets/v1alpha1/externalsecrets/mutate/validating_webhook_externalsecret_validate.go new file mode 100644 index 0000000..182cd8b --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/validating_webhook_externalsecret_validate.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateValidatingWebhookExternalsecretValidate mutates the ValidatingWebhookConfiguration resource with name externalsecret-validate. +func MutateValidatingWebhookExternalsecretValidate( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/mutate/validating_webhook_secretstore_validate.go b/apis/secrets/v1alpha1/externalsecrets/mutate/validating_webhook_secretstore_validate.go new file mode 100644 index 0000000..ec07cd7 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/mutate/validating_webhook_secretstore_validate.go @@ -0,0 +1,42 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// MutateValidatingWebhookSecretstoreValidate mutates the ValidatingWebhookConfiguration resource with name secretstore-validate. +func MutateValidatingWebhookSecretstoreValidate( + original client.Object, + parent *secretsv1alpha1.ExternalSecrets, collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, req *workload.Request, +) ([]client.Object, error) { + // if either the reconciler or request are found to be nil, return the base object. + if reconciler == nil || req == nil { + return []client.Object{original}, nil + } + + // mutation logic goes here + + return []client.Object{original}, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/namespace.go b/apis/secrets/v1alpha1/externalsecrets/namespace.go new file mode 100644 index 0000000..b5739c0 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/namespace.go @@ -0,0 +1,53 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package externalsecrets + +import ( + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets/mutate" +) + +// +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch;create;update;patch;delete + +// CreateNamespaceNamespace creates the Namespace resource with name parent.Spec.Namespace. +func CreateNamespaceNamespace( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "v1", + "kind": "Namespace", + "metadata": map[string]interface{}{ + // controlled by field: namespace + // Namespace to use for secrets support services. + "name": parent.Spec.Namespace, + }, + }, + } + + return mutate.MutateNamespaceNamespace(resourceObj, parent, collection, reconciler, req) +} diff --git a/apis/secrets/v1alpha1/externalsecrets/rbac.go b/apis/secrets/v1alpha1/externalsecrets/rbac.go new file mode 100644 index 0000000..5c54bbb --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/rbac.go @@ -0,0 +1,810 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package externalsecrets + +import ( + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets/mutate" +) + +// +kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;list;watch;create;update;patch;delete + +// CreateServiceAccountNamespaceExternalSecretsCertController creates the ServiceAccount resource with name external-secrets-cert-controller. +func CreateServiceAccountNamespaceExternalSecretsCertController( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "v1", + "kind": "ServiceAccount", + "metadata": map[string]interface{}{ + "name": "external-secrets-cert-controller", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-cert-controller", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + }, + } + + return mutate.MutateServiceAccountNamespaceExternalSecretsCertController(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;list;watch;create;update;patch;delete + +// CreateServiceAccountNamespaceExternalSecrets creates the ServiceAccount resource with name external-secrets. +func CreateServiceAccountNamespaceExternalSecrets( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "v1", + "kind": "ServiceAccount", + "metadata": map[string]interface{}{ + "name": "external-secrets", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "annotations": map[string]interface{}{ + // controlled by field: iamRoleArn + // On AWS, the IAM Role ARN that gives cert-manager access to Route53 + "eks.amazonaws.com/role-arn": parent.Spec.IamRoleArn, + }, + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + }, + } + + return mutate.MutateServiceAccountNamespaceExternalSecrets(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;list;watch;create;update;patch;delete + +// CreateServiceAccountNamespaceExternalSecretsWebhook creates the ServiceAccount resource with name external-secrets-webhook. +func CreateServiceAccountNamespaceExternalSecretsWebhook( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "v1", + "kind": "ServiceAccount", + "metadata": map[string]interface{}{ + "name": "external-secrets-webhook", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-webhook", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + }, + } + + return mutate.MutateServiceAccountNamespaceExternalSecretsWebhook(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterroles,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=apiextensions.k8s.io,resources=customresourcedefinitions,verbs=get;list;watch;update;patch +// +kubebuilder:rbac:groups=admissionregistration.k8s.io,resources=validatingwebhookconfigurations,verbs=get;list;watch;update;patch +// +kubebuilder:rbac:groups=core,resources=endpoints,verbs=list;get;watch +// +kubebuilder:rbac:groups=core,resources=events,verbs=create;patch +// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;update;patch +// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;create;update;patch + +// CreateClusterRoleExternalSecretsCertController creates the ClusterRole resource with name external-secrets-cert-controller. +func CreateClusterRoleExternalSecretsCertController( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "ClusterRole", + "metadata": map[string]interface{}{ + "name": "external-secrets-cert-controller", + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-cert-controller", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "rules": []interface{}{ + map[string]interface{}{ + "apiGroups": []interface{}{ + "apiextensions.k8s.io", + }, + "resources": []interface{}{ + "customresourcedefinitions", + }, + "verbs": []interface{}{ + "get", + "list", + "watch", + "update", + "patch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "admissionregistration.k8s.io", + }, + "resources": []interface{}{ + "validatingwebhookconfigurations", + }, + "verbs": []interface{}{ + "get", + "list", + "watch", + "update", + "patch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "endpoints", + }, + "verbs": []interface{}{ + "list", + "get", + "watch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "events", + }, + "verbs": []interface{}{ + "create", + "patch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "secrets", + }, + "verbs": []interface{}{ + "get", + "list", + "watch", + "update", + "patch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "coordination.k8s.io", + }, + "resources": []interface{}{ + "leases", + }, + "verbs": []interface{}{ + "get", + "create", + "update", + "patch", + }, + }, + }, + }, + } + + return mutate.MutateClusterRoleExternalSecretsCertController(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterroles,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=external-secrets.io,resources=secretstores,verbs=get;list;watch;update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=clustersecretstores,verbs=get;list;watch;update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=externalsecrets,verbs=get;list;watch;update;patch;create;delete +// +kubebuilder:rbac:groups=external-secrets.io,resources=clusterexternalsecrets,verbs=get;list;watch;update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=pushsecrets,verbs=get;list;watch;update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=externalsecrets/status,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=externalsecrets/finalizers,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=secretstores/status,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=secretstores/finalizers,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=clustersecretstores/status,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=clustersecretstores/finalizers,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=clusterexternalsecrets/status,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=clusterexternalsecrets/finalizers,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=pushsecrets/status,verbs=update;patch +// +kubebuilder:rbac:groups=external-secrets.io,resources=pushsecrets/finalizers,verbs=update;patch +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=acraccesstokens,verbs=get;list;watch +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=ecrauthorizationtokens,verbs=get;list;watch +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=fakes,verbs=get;list;watch +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=gcraccesstokens,verbs=get;list;watch +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=passwords,verbs=get;list;watch +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=vaultdynamicsecrets,verbs=get;list;watch +// +kubebuilder:rbac:groups=core,resources=serviceaccounts,verbs=get;list;watch +// +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch +// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch +// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;delete;patch +// +kubebuilder:rbac:groups=core,resources=serviceaccounts/token,verbs=create +// +kubebuilder:rbac:groups=core,resources=events,verbs=create;patch + +// CreateClusterRoleExternalSecretsController creates the ClusterRole resource with name external-secrets-controller. +func CreateClusterRoleExternalSecretsController( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "ClusterRole", + "metadata": map[string]interface{}{ + "name": "external-secrets-controller", + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "rules": []interface{}{ + map[string]interface{}{ + "apiGroups": []interface{}{ + "external-secrets.io", + }, + "resources": []interface{}{ + "secretstores", + "clustersecretstores", + "externalsecrets", + "clusterexternalsecrets", + "pushsecrets", + }, + "verbs": []interface{}{ + "get", + "list", + "watch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "external-secrets.io", + }, + "resources": []interface{}{ + "externalsecrets", + "externalsecrets/status", + "externalsecrets/finalizers", + "secretstores", + "secretstores/status", + "secretstores/finalizers", + "clustersecretstores", + "clustersecretstores/status", + "clustersecretstores/finalizers", + "clusterexternalsecrets", + "clusterexternalsecrets/status", + "clusterexternalsecrets/finalizers", + "pushsecrets", + "pushsecrets/status", + "pushsecrets/finalizers", + }, + "verbs": []interface{}{ + "update", + "patch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "generators.external-secrets.io", + }, + "resources": []interface{}{ + "acraccesstokens", + "ecrauthorizationtokens", + "fakes", + "gcraccesstokens", + "passwords", + "vaultdynamicsecrets", + }, + "verbs": []interface{}{ + "get", + "list", + "watch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "serviceaccounts", + "namespaces", + }, + "verbs": []interface{}{ + "get", + "list", + "watch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "configmaps", + }, + "verbs": []interface{}{ + "get", + "list", + "watch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "secrets", + }, + "verbs": []interface{}{ + "get", + "list", + "watch", + "create", + "update", + "delete", + "patch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "serviceaccounts/token", + }, + "verbs": []interface{}{ + "create", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "events", + }, + "verbs": []interface{}{ + "create", + "patch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "external-secrets.io", + }, + "resources": []interface{}{ + "externalsecrets", + }, + "verbs": []interface{}{ + "create", + "update", + "delete", + }, + }, + }, + }, + } + + return mutate.MutateClusterRoleExternalSecretsController(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterroles,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=external-secrets.io,resources=externalsecrets,verbs=get;watch;list +// +kubebuilder:rbac:groups=external-secrets.io,resources=secretstores,verbs=get;watch;list +// +kubebuilder:rbac:groups=external-secrets.io,resources=clustersecretstores,verbs=get;watch;list +// +kubebuilder:rbac:groups=external-secrets.io,resources=pushsecrets,verbs=get;watch;list +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=acraccesstokens,verbs=get;watch;list +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=ecrauthorizationtokens,verbs=get;watch;list +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=fakes,verbs=get;watch;list +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=gcraccesstokens,verbs=get;watch;list +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=passwords,verbs=get;watch;list +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=vaultdynamicsecrets,verbs=get;watch;list + +// CreateClusterRoleExternalSecretsView creates the ClusterRole resource with name external-secrets-view. +func CreateClusterRoleExternalSecretsView( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "ClusterRole", + "metadata": map[string]interface{}{ + "name": "external-secrets-view", + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "rbac.authorization.k8s.io/aggregate-to-view": "true", + "rbac.authorization.k8s.io/aggregate-to-edit": "true", + "rbac.authorization.k8s.io/aggregate-to-admin": "true", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "rules": []interface{}{ + map[string]interface{}{ + "apiGroups": []interface{}{ + "external-secrets.io", + }, + "resources": []interface{}{ + "externalsecrets", + "secretstores", + "clustersecretstores", + "pushsecrets", + }, + "verbs": []interface{}{ + "get", + "watch", + "list", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "generators.external-secrets.io", + }, + "resources": []interface{}{ + "acraccesstokens", + "ecrauthorizationtokens", + "fakes", + "gcraccesstokens", + "passwords", + "vaultdynamicsecrets", + }, + "verbs": []interface{}{ + "get", + "watch", + "list", + }, + }, + }, + }, + } + + return mutate.MutateClusterRoleExternalSecretsView(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterroles,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=external-secrets.io,resources=externalsecrets,verbs=create;delete;deletecollection;patch;update +// +kubebuilder:rbac:groups=external-secrets.io,resources=secretstores,verbs=create;delete;deletecollection;patch;update +// +kubebuilder:rbac:groups=external-secrets.io,resources=clustersecretstores,verbs=create;delete;deletecollection;patch;update +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=acraccesstokens,verbs=create;delete;deletecollection;patch;update +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=ecrauthorizationtokens,verbs=create;delete;deletecollection;patch;update +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=fakes,verbs=create;delete;deletecollection;patch;update +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=gcraccesstokens,verbs=create;delete;deletecollection;patch;update +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=passwords,verbs=create;delete;deletecollection;patch;update +// +kubebuilder:rbac:groups=generators.external-secrets.io,resources=vaultdynamicsecrets,verbs=create;delete;deletecollection;patch;update + +// CreateClusterRoleExternalSecretsEdit creates the ClusterRole resource with name external-secrets-edit. +func CreateClusterRoleExternalSecretsEdit( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "ClusterRole", + "metadata": map[string]interface{}{ + "name": "external-secrets-edit", + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "rbac.authorization.k8s.io/aggregate-to-edit": "true", + "rbac.authorization.k8s.io/aggregate-to-admin": "true", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "rules": []interface{}{ + map[string]interface{}{ + "apiGroups": []interface{}{ + "external-secrets.io", + }, + "resources": []interface{}{ + "externalsecrets", + "secretstores", + "clustersecretstores", + }, + "verbs": []interface{}{ + "create", + "delete", + "deletecollection", + "patch", + "update", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "generators.external-secrets.io", + }, + "resources": []interface{}{ + "acraccesstokens", + "ecrauthorizationtokens", + "fakes", + "gcraccesstokens", + "passwords", + "vaultdynamicsecrets", + }, + "verbs": []interface{}{ + "create", + "delete", + "deletecollection", + "patch", + "update", + }, + }, + }, + }, + } + + return mutate.MutateClusterRoleExternalSecretsEdit(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings,verbs=get;list;watch;create;update;patch;delete + +// CreateClusterRoleBindingExternalSecretsCertController creates the ClusterRoleBinding resource with name external-secrets-cert-controller. +func CreateClusterRoleBindingExternalSecretsCertController( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "ClusterRoleBinding", + "metadata": map[string]interface{}{ + "name": "external-secrets-cert-controller", + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-cert-controller", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "roleRef": map[string]interface{}{ + "apiGroup": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "name": "external-secrets-cert-controller", + }, + "subjects": []interface{}{ + map[string]interface{}{ + "name": "external-secrets-cert-controller", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "kind": "ServiceAccount", + }, + }, + }, + } + + return mutate.MutateClusterRoleBindingExternalSecretsCertController(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=clusterrolebindings,verbs=get;list;watch;create;update;patch;delete + +// CreateClusterRoleBindingExternalSecretsController creates the ClusterRoleBinding resource with name external-secrets-controller. +func CreateClusterRoleBindingExternalSecretsController( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "ClusterRoleBinding", + "metadata": map[string]interface{}{ + "name": "external-secrets-controller", + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "roleRef": map[string]interface{}{ + "apiGroup": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "name": "external-secrets-controller", + }, + "subjects": []interface{}{ + map[string]interface{}{ + "name": "external-secrets", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "kind": "ServiceAccount", + }, + }, + }, + } + + return mutate.MutateClusterRoleBindingExternalSecretsController(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=roles,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;update;patch;create +// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;create;update;patch + +// CreateRoleNamespaceExternalSecretsLeaderelection creates the Role resource with name external-secrets-leaderelection. +func CreateRoleNamespaceExternalSecretsLeaderelection( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "Role", + "metadata": map[string]interface{}{ + "name": "external-secrets-leaderelection", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "rules": []interface{}{ + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "configmaps", + }, + "resourceNames": []interface{}{ + "external-secrets-controller", + }, + "verbs": []interface{}{ + "get", + "update", + "patch", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "", + }, + "resources": []interface{}{ + "configmaps", + }, + "verbs": []interface{}{ + "create", + }, + }, + map[string]interface{}{ + "apiGroups": []interface{}{ + "coordination.k8s.io", + }, + "resources": []interface{}{ + "leases", + }, + "verbs": []interface{}{ + "get", + "create", + "update", + "patch", + }, + }, + }, + }, + } + + return mutate.MutateRoleNamespaceExternalSecretsLeaderelection(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=rbac.authorization.k8s.io,resources=rolebindings,verbs=get;list;watch;create;update;patch;delete + +// CreateRoleBindingNamespaceExternalSecretsLeaderelection creates the RoleBinding resource with name external-secrets-leaderelection. +func CreateRoleBindingNamespaceExternalSecretsLeaderelection( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "RoleBinding", + "metadata": map[string]interface{}{ + "name": "external-secrets-leaderelection", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "roleRef": map[string]interface{}{ + "apiGroup": "rbac.authorization.k8s.io", + "kind": "Role", + "name": "external-secrets-leaderelection", + }, + "subjects": []interface{}{ + map[string]interface{}{ + "kind": "ServiceAccount", + "name": "external-secrets", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + }, + }, + }, + } + + return mutate.MutateRoleBindingNamespaceExternalSecretsLeaderelection(resourceObj, parent, collection, reconciler, req) +} diff --git a/apis/secrets/v1alpha1/externalsecrets/resources.go b/apis/secrets/v1alpha1/externalsecrets/resources.go new file mode 100644 index 0000000..adf4f58 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/resources.go @@ -0,0 +1,202 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package externalsecrets + +import ( + "fmt" + + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/yaml" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" +) + +// sampleExternalSecrets is a sample containing all fields +const sampleExternalSecrets = `apiVersion: secrets.support-services.nukleros.io/v1alpha1 +kind: ExternalSecrets +metadata: + name: externalsecrets-sample +spec: + #collection: + #name: "supportservices-sample" + #namespace: "" + namespace: "nukleros-secrets-system" + version: "v0.9.11" + certController: + replicas: 1 + image: "ghcr.io/external-secrets/external-secrets" + controller: + replicas: 2 + webhook: + replicas: 2 +` + +// sampleExternalSecretsRequired is a sample containing only required fields +const sampleExternalSecretsRequired = `apiVersion: secrets.support-services.nukleros.io/v1alpha1 +kind: ExternalSecrets +metadata: + name: externalsecrets-sample +spec: + #collection: + #name: "supportservices-sample" + #namespace: "" +` + +// Sample returns the sample manifest for this custom resource. +func Sample(requiredOnly bool) string { + if requiredOnly { + return sampleExternalSecretsRequired + } + + return sampleExternalSecrets +} + +// Generate returns the child resources that are associated with this workload given +// appropriate structured inputs. +func Generate( + workloadObj secretsv1alpha1.ExternalSecrets, + collectionObj orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + resourceObjects := []client.Object{} + + for _, f := range CreateFuncs { + resources, err := f(&workloadObj, &collectionObj, reconciler, req) + + if err != nil { + return nil, err + } + + resourceObjects = append(resourceObjects, resources...) + } + + return resourceObjects, nil +} + +// GenerateForCLI returns the child resources that are associated with this workload given +// appropriate YAML manifest files. +func GenerateForCLI(workloadFile []byte, collectionFile []byte) ([]client.Object, error) { + var workloadObj secretsv1alpha1.ExternalSecrets + if err := yaml.Unmarshal(workloadFile, &workloadObj); err != nil { + return nil, fmt.Errorf("failed to unmarshal yaml into workload, %w", err) + } + + if err := workload.Validate(&workloadObj); err != nil { + return nil, fmt.Errorf("error validating workload yaml, %w", err) + } + + var collectionObj orchestrationv1alpha1.SupportServices + if err := yaml.Unmarshal(collectionFile, &collectionObj); err != nil { + return nil, fmt.Errorf("failed to unmarshal yaml into collection, %w", err) + } + + if err := workload.Validate(&collectionObj); err != nil { + return nil, fmt.Errorf("error validating collection yaml, %w", err) + } + + return Generate(workloadObj, collectionObj, nil, nil) +} + +// CreateFuncs is an array of functions that are called to create the child resources for the controller +// in memory during the reconciliation loop prior to persisting the changes or updates to the Kubernetes +// database. +var CreateFuncs = []func( + *secretsv1alpha1.ExternalSecrets, + *orchestrationv1alpha1.SupportServices, + workload.Reconciler, + *workload.Request, +) ([]client.Object, error){ + CreateSecretNamespaceExternalSecretsWebhook, + CreateCRDAcraccesstokensGeneratorsExternalSecretsIo, + CreateCRDClusterexternalsecretsExternalSecretsIo, + CreateCRDClustersecretstoresExternalSecretsIo, + CreateCRDEcrauthorizationtokensGeneratorsExternalSecretsIo, + CreateCRDExternalsecretsExternalSecretsIo, + CreateCRDFakesGeneratorsExternalSecretsIo, + CreateCRDGcraccesstokensGeneratorsExternalSecretsIo, + CreateCRDPasswordsGeneratorsExternalSecretsIo, + CreateCRDPushsecretsExternalSecretsIo, + CreateCRDSecretstoresExternalSecretsIo, + CreateCRDVaultdynamicsecretsGeneratorsExternalSecretsIo, + CreateDeploymentNamespaceExternalSecretsCertController, + CreateDeploymentNamespaceExternalSecrets, + CreateDeploymentNamespaceExternalSecretsWebhook, + CreateNamespaceNamespace, + CreateServiceAccountNamespaceExternalSecretsCertController, + CreateServiceAccountNamespaceExternalSecrets, + CreateServiceAccountNamespaceExternalSecretsWebhook, + CreateClusterRoleExternalSecretsCertController, + CreateClusterRoleExternalSecretsController, + CreateClusterRoleExternalSecretsView, + CreateClusterRoleExternalSecretsEdit, + CreateClusterRoleBindingExternalSecretsCertController, + CreateClusterRoleBindingExternalSecretsController, + CreateRoleNamespaceExternalSecretsLeaderelection, + CreateRoleBindingNamespaceExternalSecretsLeaderelection, + CreateServiceNamespaceExternalSecretsWebhook, + CreateValidatingWebhookSecretstoreValidate, + CreateValidatingWebhookExternalsecretValidate, +} + +// InitFuncs is an array of functions that are called prior to starting the controller manager. This is +// necessary in instances which the controller needs to "own" objects which depend on resources to +// pre-exist in the cluster. A common use case for this is the need to own a custom resource. +// If the controller needs to own a custom resource type, the CRD that defines it must +// first exist. In this case, the InitFunc will create the CRD so that the controller +// can own custom resources of that type. Without the InitFunc the controller will +// crash loop because when it tries to own a non-existent resource type during manager +// setup, it will fail. +var InitFuncs = []func( + *secretsv1alpha1.ExternalSecrets, + *orchestrationv1alpha1.SupportServices, + workload.Reconciler, + *workload.Request, +) ([]client.Object, error){ + CreateCRDAcraccesstokensGeneratorsExternalSecretsIo, + CreateCRDClusterexternalsecretsExternalSecretsIo, + CreateCRDClustersecretstoresExternalSecretsIo, + CreateCRDEcrauthorizationtokensGeneratorsExternalSecretsIo, + CreateCRDExternalsecretsExternalSecretsIo, + CreateCRDFakesGeneratorsExternalSecretsIo, + CreateCRDGcraccesstokensGeneratorsExternalSecretsIo, + CreateCRDPasswordsGeneratorsExternalSecretsIo, + CreateCRDPushsecretsExternalSecretsIo, + CreateCRDSecretstoresExternalSecretsIo, + CreateCRDVaultdynamicsecretsGeneratorsExternalSecretsIo, +} + +func ConvertWorkload(component, collection workload.Workload) ( + *secretsv1alpha1.ExternalSecrets, + *orchestrationv1alpha1.SupportServices, + error, +) { + p, ok := component.(*secretsv1alpha1.ExternalSecrets) + if !ok { + return nil, nil, secretsv1alpha1.ErrUnableToConvertExternalSecrets + } + + c, ok := collection.(*orchestrationv1alpha1.SupportServices) + if !ok { + return nil, nil, orchestrationv1alpha1.ErrUnableToConvertSupportServices + } + + return p, c, nil +} diff --git a/apis/secrets/v1alpha1/externalsecrets/service.go b/apis/secrets/v1alpha1/externalsecrets/service.go new file mode 100644 index 0000000..b82c456 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/service.go @@ -0,0 +1,75 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package externalsecrets + +import ( + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets/mutate" +) + +// +kubebuilder:rbac:groups=core,resources=services,verbs=get;list;watch;create;update;patch;delete + +// CreateServiceNamespaceExternalSecretsWebhook creates the Service resource with name external-secrets-webhook. +func CreateServiceNamespaceExternalSecretsWebhook( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "v1", + "kind": "Service", + "metadata": map[string]interface{}{ + "name": "external-secrets-webhook", + "namespace": parent.Spec.Namespace, // controlled by field: namespace + "labels": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-webhook", + "app.kubernetes.io/instance": "external-secrets", + "app.kubernetes.io/version": parent.Spec.Version, // controlled by field: version + "external-secrets.io/component": "webhook", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "spec": map[string]interface{}{ + "type": "ClusterIP", + "ports": []interface{}{ + map[string]interface{}{ + "port": 443, + "targetPort": 10250, + "protocol": "TCP", + "name": "webhook", + }, + }, + "selector": map[string]interface{}{ + "app.kubernetes.io/name": "external-secrets-webhook", + "app.kubernetes.io/instance": "external-secrets", + }, + }, + }, + } + + return mutate.MutateServiceNamespaceExternalSecretsWebhook(resourceObj, parent, collection, reconciler, req) +} diff --git a/apis/secrets/v1alpha1/externalsecrets/webhook.go b/apis/secrets/v1alpha1/externalsecrets/webhook.go new file mode 100644 index 0000000..d5acda4 --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets/webhook.go @@ -0,0 +1,194 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package externalsecrets + +import ( + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + "sigs.k8s.io/controller-runtime/pkg/client" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets/mutate" +) + +// +kubebuilder:rbac:groups=admissionregistration.k8s.io,resources=validatingwebhookconfigurations,verbs=get;list;watch;create;update;patch;delete + +// CreateValidatingWebhookSecretstoreValidate creates the ValidatingWebhookConfiguration resource with name secretstore-validate. +func CreateValidatingWebhookSecretstoreValidate( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "admissionregistration.k8s.io/v1", + "kind": "ValidatingWebhookConfiguration", + "metadata": map[string]interface{}{ + "name": "secretstore-validate", + "labels": map[string]interface{}{ + "external-secrets.io/component": "webhook", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "webhooks": []interface{}{ + map[string]interface{}{ + "name": "validate.secretstore.external-secrets.io", + "rules": []interface{}{ + map[string]interface{}{ + "apiGroups": []interface{}{ + "external-secrets.io", + }, + "apiVersions": []interface{}{ + "v1beta1", + }, + "operations": []interface{}{ + "CREATE", + "UPDATE", + "DELETE", + }, + "resources": []interface{}{ + "secretstores", + }, + "scope": "Namespaced", + }, + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "namespace": "nukleros-secrets-system", + "name": "external-secrets-webhook", + "path": "/validate-external-secrets-io-v1beta1-secretstore", + }, + }, + "admissionReviewVersions": []interface{}{ + "v1", + "v1beta1", + }, + "sideEffects": "None", + "timeoutSeconds": 5, + }, + map[string]interface{}{ + "name": "validate.clustersecretstore.external-secrets.io", + "rules": []interface{}{ + map[string]interface{}{ + "apiGroups": []interface{}{ + "external-secrets.io", + }, + "apiVersions": []interface{}{ + "v1beta1", + }, + "operations": []interface{}{ + "CREATE", + "UPDATE", + "DELETE", + }, + "resources": []interface{}{ + "clustersecretstores", + }, + "scope": "Cluster", + }, + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "namespace": "nukleros-secrets-system", + "name": "external-secrets-webhook", + "path": "/validate-external-secrets-io-v1beta1-clustersecretstore", + }, + }, + "admissionReviewVersions": []interface{}{ + "v1", + "v1beta1", + }, + "sideEffects": "None", + "timeoutSeconds": 5, + }, + }, + }, + } + + return mutate.MutateValidatingWebhookSecretstoreValidate(resourceObj, parent, collection, reconciler, req) +} + +// +kubebuilder:rbac:groups=admissionregistration.k8s.io,resources=validatingwebhookconfigurations,verbs=get;list;watch;create;update;patch;delete + +// CreateValidatingWebhookExternalsecretValidate creates the ValidatingWebhookConfiguration resource with name externalsecret-validate. +func CreateValidatingWebhookExternalsecretValidate( + parent *secretsv1alpha1.ExternalSecrets, + collection *orchestrationv1alpha1.SupportServices, + reconciler workload.Reconciler, + req *workload.Request, +) ([]client.Object, error) { + + var resourceObj = &unstructured.Unstructured{ + Object: map[string]interface{}{ + "apiVersion": "admissionregistration.k8s.io/v1", + "kind": "ValidatingWebhookConfiguration", + "metadata": map[string]interface{}{ + "name": "externalsecret-validate", + "labels": map[string]interface{}{ + "external-secrets.io/component": "webhook", + "platform.nukleros.io/group": "secrets", + "platform.nukleros.io/project": "external-secrets", + }, + }, + "webhooks": []interface{}{ + map[string]interface{}{ + "name": "validate.externalsecret.external-secrets.io", + "rules": []interface{}{ + map[string]interface{}{ + "apiGroups": []interface{}{ + "external-secrets.io", + }, + "apiVersions": []interface{}{ + "v1beta1", + }, + "operations": []interface{}{ + "CREATE", + "UPDATE", + "DELETE", + }, + "resources": []interface{}{ + "externalsecrets", + }, + "scope": "Namespaced", + }, + }, + "clientConfig": map[string]interface{}{ + "service": map[string]interface{}{ + "namespace": "nukleros-secrets-system", + "name": "external-secrets-webhook", + "path": "/validate-external-secrets-io-v1beta1-externalsecret", + }, + }, + "admissionReviewVersions": []interface{}{ + "v1", + "v1beta1", + }, + "sideEffects": "None", + "timeoutSeconds": 5, + "failurePolicy": "Fail", + }, + }, + }, + } + + return mutate.MutateValidatingWebhookExternalsecretValidate(resourceObj, parent, collection, reconciler, req) +} diff --git a/apis/secrets/v1alpha1/externalsecrets_types.go b/apis/secrets/v1alpha1/externalsecrets_types.go new file mode 100644 index 0000000..39239ff --- /dev/null +++ b/apis/secrets/v1alpha1/externalsecrets_types.go @@ -0,0 +1,220 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package v1alpha1 + +import ( + "errors" + + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + "github.com/nukleros/operator-builder-tools/pkg/status" + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime/schema" +) + +var ErrUnableToConvertExternalSecrets = errors.New("unable to convert to ExternalSecrets") + +// EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! +// NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. + +// ExternalSecretsSpec defines the desired state of ExternalSecrets. +type ExternalSecretsSpec struct { + // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster + // Important: Run "make" to regenerate code after modifying this file + + // +kubebuilder:validation:Optional + // Specifies a reference to the collection to use for this workload. + // Requires the name and namespace input to find the collection. + // If no collection field is set, default to selecting the only + // workload collection in the cluster, which will result in an error + // if not exactly one collection is found. + Collection ExternalSecretsCollectionSpec `json:"collection"` + + // +kubebuilder:default="nukleros-secrets-system" + // +kubebuilder:validation:Optional + // (Default: "nukleros-secrets-system") + // Namespace to use for secrets support services. + Namespace string `json:"namespace,omitempty"` + + // +kubebuilder:default="v0.9.11" + // +kubebuilder:validation:Optional + // (Default: "v0.9.11") + // Version of external-secrets to use. + Version string `json:"version,omitempty"` + + // +kubebuilder:validation:Optional + CertController ExternalSecretsSpecCertController `json:"certController,omitempty"` + + // +kubebuilder:default="ghcr.io/external-secrets/external-secrets" + // +kubebuilder:validation:Optional + // (Default: "ghcr.io/external-secrets/external-secrets") + // Image repo and name to use for external-secrets. + Image string `json:"image,omitempty"` + + // +kubebuilder:validation:Optional + Controller ExternalSecretsSpecController `json:"controller,omitempty"` + + // +kubebuilder:validation:Optional + Webhook ExternalSecretsSpecWebhook `json:"webhook,omitempty"` + + // +kubebuilder:validation:Required + // On AWS, the IAM Role ARN that gives external-secrets access to SecretsManager + IamRoleArn string `json:"iamRoleArn,omitempty"` +} + +type ExternalSecretsCollectionSpec struct { + // +kubebuilder:validation:Required + // Required if specifying collection. The name of the collection + // within a specific collection.namespace to reference. + Name string `json:"name"` + + // +kubebuilder:validation:Optional + // (Default: "") The namespace where the collection exists. Required only if + // the collection is namespace scoped and not cluster scoped. + Namespace string `json:"namespace"` +} + +type ExternalSecretsSpecCertController struct { + // +kubebuilder:default=1 + // +kubebuilder:validation:Optional + // (Default: 1) + // Number of replicas to use for the external-secrets cert-controller deployment. + Replicas int `json:"replicas,omitempty"` +} + +type ExternalSecretsSpecController struct { + // +kubebuilder:default=2 + // +kubebuilder:validation:Optional + // (Default: 2) + // Number of replicas to use for the external-secrets controller deployment. + Replicas int `json:"replicas,omitempty"` +} + +type ExternalSecretsSpecWebhook struct { + // +kubebuilder:default=2 + // +kubebuilder:validation:Optional + // (Default: 2) + // Number of replicas to use for the external-secrets webhook deployment. + Replicas int `json:"replicas,omitempty"` +} + +// ExternalSecretsStatus defines the observed state of ExternalSecrets. +type ExternalSecretsStatus struct { + // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster + // Important: Run "make" to regenerate code after modifying this file + + Created bool `json:"created,omitempty"` + DependenciesSatisfied bool `json:"dependenciesSatisfied,omitempty"` + Conditions []*status.PhaseCondition `json:"conditions,omitempty"` + Resources []*status.ChildResource `json:"resources,omitempty"` +} + +// +kubebuilder:object:root=true +// +kubebuilder:subresource:status +// +kubebuilder:resource:scope=Cluster + +// ExternalSecrets is the Schema for the externalsecrets API. +type ExternalSecrets struct { + metav1.TypeMeta `json:",inline"` + metav1.ObjectMeta `json:"metadata,omitempty"` + Spec ExternalSecretsSpec `json:"spec,omitempty"` + Status ExternalSecretsStatus `json:"status,omitempty"` +} + +// +kubebuilder:object:root=true + +// ExternalSecretsList contains a list of ExternalSecrets. +type ExternalSecretsList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []ExternalSecrets `json:"items"` +} + +// interface methods + +// GetReadyStatus returns the ready status for a component. +func (component *ExternalSecrets) GetReadyStatus() bool { + return component.Status.Created +} + +// SetReadyStatus sets the ready status for a component. +func (component *ExternalSecrets) SetReadyStatus(ready bool) { + component.Status.Created = ready +} + +// GetDependencyStatus returns the dependency status for a component. +func (component *ExternalSecrets) GetDependencyStatus() bool { + return component.Status.DependenciesSatisfied +} + +// SetDependencyStatus sets the dependency status for a component. +func (component *ExternalSecrets) SetDependencyStatus(dependencyStatus bool) { + component.Status.DependenciesSatisfied = dependencyStatus +} + +// GetPhaseConditions returns the phase conditions for a component. +func (component *ExternalSecrets) GetPhaseConditions() []*status.PhaseCondition { + return component.Status.Conditions +} + +// SetPhaseCondition sets the phase conditions for a component. +func (component *ExternalSecrets) SetPhaseCondition(condition *status.PhaseCondition) { + for i, currentCondition := range component.GetPhaseConditions() { + if currentCondition.Phase == condition.Phase { + component.Status.Conditions[i] = condition + + return + } + } + + // phase not found, lets add it to the list. + component.Status.Conditions = append(component.Status.Conditions, condition) +} + +// GetResources returns the child resource status for a component. +func (component *ExternalSecrets) GetChildResourceConditions() []*status.ChildResource { + return component.Status.Resources +} + +// SetResources sets the phase conditions for a component. +func (component *ExternalSecrets) SetChildResourceCondition(resource *status.ChildResource) { + for i, currentResource := range component.GetChildResourceConditions() { + if currentResource.Group == resource.Group && currentResource.Version == resource.Version && currentResource.Kind == resource.Kind { + if currentResource.Name == resource.Name && currentResource.Namespace == resource.Namespace { + component.Status.Resources[i] = resource + + return + } + } + } + + // phase not found, lets add it to the collection + component.Status.Resources = append(component.Status.Resources, resource) +} + +// GetDependencies returns the dependencies for a component. +func (*ExternalSecrets) GetDependencies() []workload.Workload { + return []workload.Workload{} +} + +// GetComponentGVK returns a GVK object for the component. +func (*ExternalSecrets) GetWorkloadGVK() schema.GroupVersionKind { + return GroupVersion.WithKind("ExternalSecrets") +} + +func init() { + SchemeBuilder.Register(&ExternalSecrets{}, &ExternalSecretsList{}) +} diff --git a/apis/secrets/v1alpha1/groupversion_info.go b/apis/secrets/v1alpha1/groupversion_info.go new file mode 100644 index 0000000..212d239 --- /dev/null +++ b/apis/secrets/v1alpha1/groupversion_info.go @@ -0,0 +1,36 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Package v1alpha1 contains API Schema definitions for the secrets v1alpha1 API group. +// +kubebuilder:object:generate=true +// +groupName=secrets.support-services.nukleros.io +package v1alpha1 + +import ( + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/controller-runtime/pkg/scheme" +) + +var ( + // GroupVersion is group version used to register these objects + GroupVersion = schema.GroupVersion{Group: "secrets.support-services.nukleros.io", Version: "v1alpha1"} + + // SchemeBuilder is used to add go types to the GroupVersionKind scheme + SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} + + // AddToScheme adds the types in this group-version to the given scheme. + AddToScheme = SchemeBuilder.AddToScheme +) diff --git a/apis/secrets/v1alpha1/zz_generated.deepcopy.go b/apis/secrets/v1alpha1/zz_generated.deepcopy.go new file mode 100644 index 0000000..9dd9d31 --- /dev/null +++ b/apis/secrets/v1alpha1/zz_generated.deepcopy.go @@ -0,0 +1,202 @@ +//go:build !ignore_autogenerated +// +build !ignore_autogenerated + +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by controller-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + "github.com/nukleros/operator-builder-tools/pkg/status" + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalSecrets) DeepCopyInto(out *ExternalSecrets) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + out.Spec = in.Spec + in.Status.DeepCopyInto(&out.Status) +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSecrets. +func (in *ExternalSecrets) DeepCopy() *ExternalSecrets { + if in == nil { + return nil + } + out := new(ExternalSecrets) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ExternalSecrets) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalSecretsCollectionSpec) DeepCopyInto(out *ExternalSecretsCollectionSpec) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSecretsCollectionSpec. +func (in *ExternalSecretsCollectionSpec) DeepCopy() *ExternalSecretsCollectionSpec { + if in == nil { + return nil + } + out := new(ExternalSecretsCollectionSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalSecretsList) DeepCopyInto(out *ExternalSecretsList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ExternalSecrets, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSecretsList. +func (in *ExternalSecretsList) DeepCopy() *ExternalSecretsList { + if in == nil { + return nil + } + out := new(ExternalSecretsList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ExternalSecretsList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalSecretsSpec) DeepCopyInto(out *ExternalSecretsSpec) { + *out = *in + out.Collection = in.Collection + out.CertController = in.CertController + out.Controller = in.Controller + out.Webhook = in.Webhook +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSecretsSpec. +func (in *ExternalSecretsSpec) DeepCopy() *ExternalSecretsSpec { + if in == nil { + return nil + } + out := new(ExternalSecretsSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalSecretsSpecCertController) DeepCopyInto(out *ExternalSecretsSpecCertController) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSecretsSpecCertController. +func (in *ExternalSecretsSpecCertController) DeepCopy() *ExternalSecretsSpecCertController { + if in == nil { + return nil + } + out := new(ExternalSecretsSpecCertController) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalSecretsSpecController) DeepCopyInto(out *ExternalSecretsSpecController) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSecretsSpecController. +func (in *ExternalSecretsSpecController) DeepCopy() *ExternalSecretsSpecController { + if in == nil { + return nil + } + out := new(ExternalSecretsSpecController) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalSecretsSpecWebhook) DeepCopyInto(out *ExternalSecretsSpecWebhook) { + *out = *in +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSecretsSpecWebhook. +func (in *ExternalSecretsSpecWebhook) DeepCopy() *ExternalSecretsSpecWebhook { + if in == nil { + return nil + } + out := new(ExternalSecretsSpecWebhook) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ExternalSecretsStatus) DeepCopyInto(out *ExternalSecretsStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]*status.PhaseCondition, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(status.PhaseCondition) + **out = **in + } + } + } + if in.Resources != nil { + in, out := &in.Resources, &out.Resources + *out = make([]*status.ChildResource, len(*in)) + for i := range *in { + if (*in)[i] != nil { + in, out := &(*in)[i], &(*out)[i] + *out = new(status.ChildResource) + **out = **in + } + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalSecretsStatus. +func (in *ExternalSecretsStatus) DeepCopy() *ExternalSecretsStatus { + if in == nil { + return nil + } + out := new(ExternalSecretsStatus) + in.DeepCopyInto(out) + return out +} diff --git a/cmd/ssctl/commands/generate/certificates/certmanager.go b/cmd/ssctl/commands/generate/certificates/certmanager.go index e47a75c..da96992 100644 --- a/cmd/ssctl/commands/generate/certificates/certmanager.go +++ b/cmd/ssctl/commands/generate/certificates/certmanager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/generate/gateway/externaldns.go b/cmd/ssctl/commands/generate/gateway/externaldns.go index c8daa92..2309f05 100644 --- a/cmd/ssctl/commands/generate/gateway/externaldns.go +++ b/cmd/ssctl/commands/generate/gateway/externaldns.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/generate/gateway/glooedge.go b/cmd/ssctl/commands/generate/gateway/glooedge.go index 2818614..4e08394 100644 --- a/cmd/ssctl/commands/generate/gateway/glooedge.go +++ b/cmd/ssctl/commands/generate/gateway/glooedge.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/generate/generate.go b/cmd/ssctl/commands/generate/generate.go index 4244f75..8b13e18 100644 --- a/cmd/ssctl/commands/generate/generate.go +++ b/cmd/ssctl/commands/generate/generate.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/generate/orchestration/supportservices.go b/cmd/ssctl/commands/generate/orchestration/supportservices.go index 0d4224d..f941cbd 100644 --- a/cmd/ssctl/commands/generate/orchestration/supportservices.go +++ b/cmd/ssctl/commands/generate/orchestration/supportservices.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/generate/secrets/externalsecrets.go b/cmd/ssctl/commands/generate/secrets/externalsecrets.go new file mode 100644 index 0000000..6b071c5 --- /dev/null +++ b/cmd/ssctl/commands/generate/secrets/externalsecrets.go @@ -0,0 +1,124 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package secrets + +import ( + "fmt" + "os" + "path/filepath" + "strings" + + "github.com/spf13/cobra" + "gopkg.in/yaml.v2" + + "k8s.io/apimachinery/pkg/runtime/serializer/json" + "sigs.k8s.io/controller-runtime/pkg/client" + + // common imports for subcommands + cmdgenerate "github.com/nukleros/support-services-operator/cmd/ssctl/commands/generate" + + // specific imports for workloads + + v1alpha1externalsecrets "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets" + //+kubebuilder:scaffold:operator-builder:imports +) + +// NewExternalSecretsSubCommand creates a new command and adds it to its +// parent command. +func NewExternalSecretsSubCommand(parentCommand *cobra.Command) { + generateCmd := &cmdgenerate.GenerateSubCommand{ + Name: "external-secrets", + Description: "Manage exteranl-secrets installation for secrets support services", + SubCommandOf: parentCommand, + GenerateFunc: GenerateExternalSecrets, + UseCollectionManifest: true, + CollectionKind: "SupportServices", + UseWorkloadManifest: true, + WorkloadKind: "ExternalSecrets", + } + + generateCmd.Setup() +} + +// GenerateExternalSecrets runs the logic to generate child resources for a +// ExternalSecrets workload. +func GenerateExternalSecrets(g *cmdgenerate.GenerateSubCommand) error { + var apiVersion string + + workloadFilename, _ := filepath.Abs(g.WorkloadManifest) + workloadFile, err := os.ReadFile(workloadFilename) + if err != nil { + return fmt.Errorf("failed to open workload file %s, %w", workloadFile, err) + } + + var workload map[string]interface{} + + if err := yaml.Unmarshal(workloadFile, &workload); err != nil { + return fmt.Errorf("failed to unmarshal yaml into workload, %w", err) + } + + workloadGroupVersion := strings.Split(workload["apiVersion"].(string), "/") + workloadAPIVersion := workloadGroupVersion[len(workloadGroupVersion)-1] + + apiVersion = workloadAPIVersion + + collectionFilename, _ := filepath.Abs(g.CollectionManifest) + collectionFile, err := os.ReadFile(collectionFilename) + if err != nil { + return fmt.Errorf("failed to open collection file %s, %w", collectionFile, err) + } + + var collection map[string]interface{} + + if err := yaml.Unmarshal(collectionFile, &collection); err != nil { + return fmt.Errorf("failed to unmarshal yaml into collection, %w", err) + } + + collectionGroupVersion := strings.Split(collection["apiVersion"].(string), "/") + collectionAPIVersion := collectionGroupVersion[len(collectionGroupVersion)-1] + + apiVersion = collectionAPIVersion + + // generate a map of all versions to generate functions for each api version created + type generateFunc func([]byte, []byte) ([]client.Object, error) + generateFuncMap := map[string]generateFunc{ + "v1alpha1": v1alpha1externalsecrets.GenerateForCLI, + //+kubebuilder:scaffold:operator-builder:versionmap + } + + generate := generateFuncMap[apiVersion] + resourceObjects, err := generate(workloadFile, collectionFile) + if err != nil { + return fmt.Errorf("unable to retrieve resources; %w", err) + } + + e := json.NewYAMLSerializer(json.DefaultMetaFactory, nil, nil) + + outputStream := os.Stdout + + for _, o := range resourceObjects { + if _, err := outputStream.WriteString("---\n"); err != nil { + return fmt.Errorf("failed to write output, %w", err) + } + + if err := e.Encode(o, os.Stdout); err != nil { + return fmt.Errorf("failed to write output, %w", err) + } + } + + return nil +} diff --git a/cmd/ssctl/commands/init/certificates/certmanager.go b/cmd/ssctl/commands/init/certificates/certmanager.go index 7660c12..dc49950 100644 --- a/cmd/ssctl/commands/init/certificates/certmanager.go +++ b/cmd/ssctl/commands/init/certificates/certmanager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/init/gateway/externaldns.go b/cmd/ssctl/commands/init/gateway/externaldns.go index 2d01019..3bd2a51 100644 --- a/cmd/ssctl/commands/init/gateway/externaldns.go +++ b/cmd/ssctl/commands/init/gateway/externaldns.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/init/gateway/glooedge.go b/cmd/ssctl/commands/init/gateway/glooedge.go index 8cf14c3..c883399 100644 --- a/cmd/ssctl/commands/init/gateway/glooedge.go +++ b/cmd/ssctl/commands/init/gateway/glooedge.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/init/init.go b/cmd/ssctl/commands/init/init.go index f0716a4..bdb83fb 100644 --- a/cmd/ssctl/commands/init/init.go +++ b/cmd/ssctl/commands/init/init.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/init/orchestration/supportservices.go b/cmd/ssctl/commands/init/orchestration/supportservices.go index d17b9ec..cd29b57 100644 --- a/cmd/ssctl/commands/init/orchestration/supportservices.go +++ b/cmd/ssctl/commands/init/orchestration/supportservices.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/init/secrets/externalsecrets.go b/cmd/ssctl/commands/init/secrets/externalsecrets.go new file mode 100644 index 0000000..8b1ca51 --- /dev/null +++ b/cmd/ssctl/commands/init/secrets/externalsecrets.go @@ -0,0 +1,82 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package secrets + +import ( + "fmt" + "os" + + "github.com/spf13/cobra" + + "github.com/nukleros/support-services-operator/apis/secrets" + + v1alpha1externalsecrets "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets" + cmdinit "github.com/nukleros/support-services-operator/cmd/ssctl/commands/init" + //+kubebuilder:scaffold:operator-builder:imports +) + +// getExternalSecretsManifest returns the sample ExternalSecrets manifest +// based upon API Version input. +func getExternalSecretsManifest(i *cmdinit.InitSubCommand) (string, error) { + apiVersion := i.APIVersion + if apiVersion == "" || apiVersion == "latest" { + return secrets.ExternalSecretsLatestSample, nil + } + + // generate a map of all versions to samples for each api version created + manifestMap := map[string]string{ + "v1alpha1": v1alpha1externalsecrets.Sample(i.RequiredOnly), + //+kubebuilder:scaffold:operator-builder:versionmap + } + + // return the manifest if it is not blank + manifest := manifestMap[apiVersion] + if manifest != "" { + return manifest, nil + } + + // return an error if we did not find a manifest for an api version + return "", fmt.Errorf("unsupported API Version: " + apiVersion) +} + +// NewExternalSecretsSubCommand creates a new command and adds it to its +// parent command. +func NewExternalSecretsSubCommand(parentCommand *cobra.Command) { + initCmd := &cmdinit.InitSubCommand{ + Name: "external-secrets", + Description: "Manage exteranl-secrets installation for secrets support services", + InitFunc: InitExternalSecrets, + SubCommandOf: parentCommand, + } + + initCmd.Setup() +} + +func InitExternalSecrets(i *cmdinit.InitSubCommand) error { + manifest, err := getExternalSecretsManifest(i) + if err != nil { + return fmt.Errorf("unable to get manifest for ExternalSecrets; %w", err) + } + + outputStream := os.Stdout + + if _, err := outputStream.WriteString(manifest); err != nil { + return fmt.Errorf("failed to write to stdout, %w", err) + } + + return nil +} diff --git a/cmd/ssctl/commands/root.go b/cmd/ssctl/commands/root.go index ea34983..91d4c5b 100644 --- a/cmd/ssctl/commands/root.go +++ b/cmd/ssctl/commands/root.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -28,12 +28,15 @@ import ( generatecertificates "github.com/nukleros/support-services-operator/cmd/ssctl/commands/generate/certificates" generategateway "github.com/nukleros/support-services-operator/cmd/ssctl/commands/generate/gateway" generateorchestration "github.com/nukleros/support-services-operator/cmd/ssctl/commands/generate/orchestration" + generatesecrets "github.com/nukleros/support-services-operator/cmd/ssctl/commands/generate/secrets" initcertificates "github.com/nukleros/support-services-operator/cmd/ssctl/commands/init/certificates" initgateway "github.com/nukleros/support-services-operator/cmd/ssctl/commands/init/gateway" initorchestration "github.com/nukleros/support-services-operator/cmd/ssctl/commands/init/orchestration" + initsecrets "github.com/nukleros/support-services-operator/cmd/ssctl/commands/init/secrets" versioncertificates "github.com/nukleros/support-services-operator/cmd/ssctl/commands/version/certificates" versiongateway "github.com/nukleros/support-services-operator/cmd/ssctl/commands/version/gateway" versionorchestration "github.com/nukleros/support-services-operator/cmd/ssctl/commands/version/orchestration" + versionsecrets "github.com/nukleros/support-services-operator/cmd/ssctl/commands/version/secrets" //+kubebuilder:scaffold:operator-builder:subcommands:imports ) @@ -71,6 +74,7 @@ func (c *SsctlCommand) newInitSubCommand() { initorchestration.NewSupportServicesSubCommand(parentCommand) initcertificates.NewCertManagerSubCommand(parentCommand) initgateway.NewExternalDNSSubCommand(parentCommand) + initsecrets.NewExternalSecretsSubCommand(parentCommand) initgateway.NewGlooEdgeSubCommand(parentCommand) //+kubebuilder:scaffold:operator-builder:subcommands:init } @@ -83,6 +87,7 @@ func (c *SsctlCommand) newGenerateSubCommand() { generateorchestration.NewSupportServicesSubCommand(parentCommand) generatecertificates.NewCertManagerSubCommand(parentCommand) generategateway.NewExternalDNSSubCommand(parentCommand) + generatesecrets.NewExternalSecretsSubCommand(parentCommand) generategateway.NewGlooEdgeSubCommand(parentCommand) //+kubebuilder:scaffold:operator-builder:subcommands:generate } @@ -95,6 +100,7 @@ func (c *SsctlCommand) newVersionSubCommand() { versionorchestration.NewSupportServicesSubCommand(parentCommand) versioncertificates.NewCertManagerSubCommand(parentCommand) versiongateway.NewExternalDNSSubCommand(parentCommand) + versionsecrets.NewExternalSecretsSubCommand(parentCommand) versiongateway.NewGlooEdgeSubCommand(parentCommand) //+kubebuilder:scaffold:operator-builder:subcommands:version } diff --git a/cmd/ssctl/commands/version/certificates/certmanager.go b/cmd/ssctl/commands/version/certificates/certmanager.go index f2e765c..7b13a93 100644 --- a/cmd/ssctl/commands/version/certificates/certmanager.go +++ b/cmd/ssctl/commands/version/certificates/certmanager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/version/gateway/externaldns.go b/cmd/ssctl/commands/version/gateway/externaldns.go index 0522466..2674cd7 100644 --- a/cmd/ssctl/commands/version/gateway/externaldns.go +++ b/cmd/ssctl/commands/version/gateway/externaldns.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/version/gateway/glooedge.go b/cmd/ssctl/commands/version/gateway/glooedge.go index d1d3257..d2cf9f4 100644 --- a/cmd/ssctl/commands/version/gateway/glooedge.go +++ b/cmd/ssctl/commands/version/gateway/glooedge.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/version/orchestration/supportservices.go b/cmd/ssctl/commands/version/orchestration/supportservices.go index 372fd26..d0ae2a4 100644 --- a/cmd/ssctl/commands/version/orchestration/supportservices.go +++ b/cmd/ssctl/commands/version/orchestration/supportservices.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/commands/version/secrets/externalsecrets.go b/cmd/ssctl/commands/version/secrets/externalsecrets.go new file mode 100644 index 0000000..1be5291 --- /dev/null +++ b/cmd/ssctl/commands/version/secrets/externalsecrets.go @@ -0,0 +1,53 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package secrets + +import ( + "github.com/spf13/cobra" + + cmdversion "github.com/nukleros/support-services-operator/cmd/ssctl/commands/version" + + "github.com/nukleros/support-services-operator/apis/secrets" +) + +// NewExternalSecretsSubCommand creates a new command and adds it to its +// parent command. +func NewExternalSecretsSubCommand(parentCommand *cobra.Command) { + versionCmd := &cmdversion.VersionSubCommand{ + Name: "external-secrets", + Description: "Manage exteranl-secrets installation for secrets support services", + VersionFunc: VersionExternalSecrets, + SubCommandOf: parentCommand, + } + + versionCmd.Setup() +} + +func VersionExternalSecrets(v *cmdversion.VersionSubCommand) error { + apiVersions := make([]string, len(secrets.ExternalSecretsGroupVersions())) + + for i, groupVersion := range secrets.ExternalSecretsGroupVersions() { + apiVersions[i] = groupVersion.Version + } + + versionInfo := cmdversion.VersionInfo{ + CLIVersion: cmdversion.CLIVersion, + APIVersions: apiVersions, + } + + return versionInfo.Display() +} diff --git a/cmd/ssctl/commands/version/version.go b/cmd/ssctl/commands/version/version.go index ada89dd..4f8de08 100644 --- a/cmd/ssctl/commands/version/version.go +++ b/cmd/ssctl/commands/version/version.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/cmd/ssctl/main.go b/cmd/ssctl/main.go index 24cba2b..113f9a7 100644 --- a/cmd/ssctl/main.go +++ b/cmd/ssctl/main.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/config/crd/bases/secrets.support-services.nukleros.io_externalsecrets.yaml b/config/crd/bases/secrets.support-services.nukleros.io_externalsecrets.yaml new file mode 100644 index 0000000..5a1671b --- /dev/null +++ b/config/crd/bases/secrets.support-services.nukleros.io_externalsecrets.yaml @@ -0,0 +1,193 @@ +--- +apiVersion: apiextensions.k8s.io/v1 +kind: CustomResourceDefinition +metadata: + annotations: + controller-gen.kubebuilder.io/version: v0.9.0 + creationTimestamp: null + name: externalsecrets.secrets.support-services.nukleros.io +spec: + group: secrets.support-services.nukleros.io + names: + kind: ExternalSecrets + listKind: ExternalSecretsList + plural: externalsecrets + singular: externalsecrets + scope: Cluster + versions: + - name: v1alpha1 + schema: + openAPIV3Schema: + description: ExternalSecrets is the Schema for the externalsecrets API. + properties: + apiVersion: + description: 'APIVersion defines the versioned schema of this representation + of an object. Servers should convert recognized schemas to the latest + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' + type: string + kind: + description: 'Kind is a string value representing the REST resource this + object represents. Servers may infer this from the endpoint the client + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' + type: string + metadata: + type: object + spec: + description: ExternalSecretsSpec defines the desired state of ExternalSecrets. + properties: + certController: + properties: + replicas: + default: 1 + description: '(Default: 1) Number of replicas to use for the external-secrets + cert-controller deployment.' + type: integer + type: object + collection: + description: Specifies a reference to the collection to use for this + workload. Requires the name and namespace input to find the collection. + If no collection field is set, default to selecting the only workload + collection in the cluster, which will result in an error if not + exactly one collection is found. + properties: + name: + description: Required if specifying collection. The name of the + collection within a specific collection.namespace to reference. + type: string + namespace: + description: '(Default: "") The namespace where the collection + exists. Required only if the collection is namespace scoped + and not cluster scoped.' + type: string + required: + - name + type: object + controller: + properties: + replicas: + default: 2 + description: '(Default: 2) Number of replicas to use for the external-secrets + controller deployment.' + type: integer + type: object + iamRoleArn: + description: On AWS, the IAM Role ARN that gives external-secrets + access to SecretsManager + type: string + image: + default: ghcr.io/external-secrets/external-secrets + description: '(Default: "ghcr.io/external-secrets/external-secrets") + Image repo and name to use for external-secrets.' + type: string + namespace: + default: nukleros-secrets-system + description: '(Default: "nukleros-secrets-system") Namespace to use + for secrets support services.' + type: string + version: + default: v0.9.11 + description: '(Default: "v0.9.11") Version of external-secrets to + use.' + type: string + webhook: + properties: + replicas: + default: 2 + description: '(Default: 2) Number of replicas to use for the external-secrets + webhook deployment.' + type: integer + type: object + type: object + status: + description: ExternalSecretsStatus defines the observed state of ExternalSecrets. + properties: + conditions: + items: + description: PhaseCondition describes an event that has occurred + during a phase of the controller reconciliation loop. + properties: + lastModified: + description: LastModified defines the time in which this component + was updated. + type: string + message: + description: Message defines a helpful message from the phase. + type: string + phase: + description: Phase defines the phase in which the condition + was set. + type: string + state: + description: PhaseState defines the current state of the phase. + enum: + - Complete + - Reconciling + - Failed + - Pending + type: string + required: + - lastModified + - message + - phase + - state + type: object + type: array + created: + type: boolean + dependenciesSatisfied: + type: boolean + resources: + items: + description: ChildResource is the resource and its condition as + stored on the workload custom resource's status field. + properties: + condition: + description: ResourceCondition defines the current condition + of this resource. + properties: + created: + description: Created defines whether this object has been + successfully created or not. + type: boolean + lastModified: + description: LastModified defines the time in which this + resource was updated. + type: string + message: + description: Message defines a helpful message from the + resource phase. + type: string + required: + - created + type: object + group: + description: Group defines the API Group of the resource. + type: string + kind: + description: Kind defines the kind of the resource. + type: string + name: + description: Name defines the name of the resource from the + metadata.name field. + type: string + namespace: + description: Namespace defines the namespace in which this resource + exists in. + type: string + version: + description: Version defines the API Version of the resource. + type: string + required: + - group + - kind + - name + - namespace + - version + type: object + type: array + type: object + type: object + served: true + storage: true + subresources: + status: {} diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index d8ccaf0..93a6f80 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -5,6 +5,7 @@ resources: - bases/orchestration.support-services.nukleros.io_supportservices.yaml - bases/certificates.support-services.nukleros.io_certmanagers.yaml - bases/gateway.support-services.nukleros.io_externaldns.yaml +- bases/secrets.support-services.nukleros.io_externalsecrets.yaml - bases/gateway.support-services.nukleros.io_glooedges.yaml #+kubebuilder:scaffold:crdkustomizeresource @@ -14,6 +15,7 @@ patchesStrategicMerge: #- patches/webhook_in_supportservices.yaml #- patches/webhook_in_certmanagers.yaml #- patches/webhook_in_externaldns.yaml +#- patches/webhook_in_externalsecrets.yaml #- patches/webhook_in_glooedges.yaml #+kubebuilder:scaffold:crdkustomizewebhookpatch @@ -22,6 +24,7 @@ patchesStrategicMerge: #- patches/cainjection_in_supportservices.yaml #- patches/cainjection_in_certmanagers.yaml #- patches/cainjection_in_externaldns.yaml +#- patches/cainjection_in_externalsecrets.yaml #- patches/cainjection_in_glooedges.yaml #+kubebuilder:scaffold:crdkustomizecainjectionpatch diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 2168036..a2139da 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -352,6 +352,12 @@ rules: - patch - update - watch +- apiGroups: + - "" + resources: + - serviceaccounts/token + verbs: + - create - apiGroups: - "" resources: @@ -381,6 +387,135 @@ rules: - get - list - watch +- apiGroups: + - external-secrets.io + resources: + - clusterexternalsecrets + verbs: + - get + - list + - patch + - update + - watch +- apiGroups: + - external-secrets.io + resources: + - clusterexternalsecrets/finalizers + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - clusterexternalsecrets/status + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - clustersecretstores + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - external-secrets.io + resources: + - clustersecretstores/finalizers + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - clustersecretstores/status + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - externalsecrets + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - external-secrets.io + resources: + - externalsecrets/finalizers + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - externalsecrets/status + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - pushsecrets + verbs: + - get + - list + - patch + - update + - watch +- apiGroups: + - external-secrets.io + resources: + - pushsecrets/finalizers + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - pushsecrets/status + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - secretstores + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - external-secrets.io + resources: + - secretstores/finalizers + verbs: + - patch + - update +- apiGroups: + - external-secrets.io + resources: + - secretstores/status + verbs: + - patch + - update - apiGroups: - gateway.networking.k8s.io resources: @@ -518,6 +653,84 @@ rules: - get - patch - update +- apiGroups: + - generators.external-secrets.io + resources: + - acraccesstokens + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - generators.external-secrets.io + resources: + - ecrauthorizationtokens + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - generators.external-secrets.io + resources: + - fakes + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - generators.external-secrets.io + resources: + - gcraccesstokens + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - generators.external-secrets.io + resources: + - passwords + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch +- apiGroups: + - generators.external-secrets.io + resources: + - vaultdynamicsecrets + verbs: + - create + - delete + - deletecollection + - get + - list + - patch + - update + - watch - apiGroups: - gloo.solo.io resources: @@ -696,3 +909,23 @@ rules: - routes/custom-host verbs: - create +- apiGroups: + - secrets.support-services.nukleros.io + resources: + - externalsecrets + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - secrets.support-services.nukleros.io + resources: + - externalsecrets/status + verbs: + - get + - patch + - update diff --git a/config/samples/secrets_v1alpha1_externalsecrets.yaml b/config/samples/secrets_v1alpha1_externalsecrets.yaml new file mode 100644 index 0000000..80e6550 --- /dev/null +++ b/config/samples/secrets_v1alpha1_externalsecrets.yaml @@ -0,0 +1,17 @@ +apiVersion: secrets.support-services.nukleros.io/v1alpha1 +kind: ExternalSecrets +metadata: + name: externalsecrets-sample +spec: + #collection: + #name: "supportservices-sample" + #namespace: "" + namespace: "nukleros-secrets-system" + version: "v0.9.11" + certController: + replicas: 1 + image: "ghcr.io/external-secrets/external-secrets" + controller: + replicas: 2 + webhook: + replicas: 2 diff --git a/controllers/certificates/certmanager_controller.go b/controllers/certificates/certmanager_controller.go index fee9312..8459e4a 100644 --- a/controllers/certificates/certmanager_controller.go +++ b/controllers/certificates/certmanager_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/certificates/certmanager_phases.go b/controllers/certificates/certmanager_phases.go index 8fa4e2c..f975eb9 100644 --- a/controllers/certificates/certmanager_phases.go +++ b/controllers/certificates/certmanager_phases.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/gateway/externaldns_controller.go b/controllers/gateway/externaldns_controller.go index 438d7f2..476261c 100644 --- a/controllers/gateway/externaldns_controller.go +++ b/controllers/gateway/externaldns_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/gateway/externaldns_phases.go b/controllers/gateway/externaldns_phases.go index 44b04b4..c30c6f0 100644 --- a/controllers/gateway/externaldns_phases.go +++ b/controllers/gateway/externaldns_phases.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/gateway/glooedge_controller.go b/controllers/gateway/glooedge_controller.go index d845df7..6243fcd 100644 --- a/controllers/gateway/glooedge_controller.go +++ b/controllers/gateway/glooedge_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/gateway/glooedge_phases.go b/controllers/gateway/glooedge_phases.go index 1d972ed..60b69b6 100644 --- a/controllers/gateway/glooedge_phases.go +++ b/controllers/gateway/glooedge_phases.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/orchestration/suite_test.go b/controllers/orchestration/suite_test.go index dae19aa..6fb4eb3 100644 --- a/controllers/orchestration/suite_test.go +++ b/controllers/orchestration/suite_test.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/orchestration/supportservices_controller.go b/controllers/orchestration/supportservices_controller.go index d7e45b8..3fa9b96 100644 --- a/controllers/orchestration/supportservices_controller.go +++ b/controllers/orchestration/supportservices_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/orchestration/supportservices_phases.go b/controllers/orchestration/supportservices_phases.go index 1eef35e..fe1f825 100644 --- a/controllers/orchestration/supportservices_phases.go +++ b/controllers/orchestration/supportservices_phases.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/controllers/secrets/externalsecrets_controller.go b/controllers/secrets/externalsecrets_controller.go new file mode 100644 index 0000000..b794c3f --- /dev/null +++ b/controllers/secrets/externalsecrets_controller.go @@ -0,0 +1,322 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package secrets + +import ( + "context" + "errors" + "fmt" + "reflect" + + "github.com/go-logr/logr" + "github.com/nukleros/operator-builder-tools/pkg/controller/phases" + "github.com/nukleros/operator-builder-tools/pkg/controller/predicates" + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + "github.com/nukleros/operator-builder-tools/pkg/resources" + apierrs "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/types" + "k8s.io/client-go/tools/record" + ctrl "sigs.k8s.io/controller-runtime" + "sigs.k8s.io/controller-runtime/pkg/client" + "sigs.k8s.io/controller-runtime/pkg/controller" + "sigs.k8s.io/controller-runtime/pkg/event" + "sigs.k8s.io/controller-runtime/pkg/handler" + "sigs.k8s.io/controller-runtime/pkg/predicate" + "sigs.k8s.io/controller-runtime/pkg/reconcile" + "sigs.k8s.io/controller-runtime/pkg/source" + + orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets" + "github.com/nukleros/support-services-operator/internal/dependencies" + "github.com/nukleros/support-services-operator/internal/mutate" +) + +// ExternalSecretsReconciler reconciles a ExternalSecrets object. +type ExternalSecretsReconciler struct { + client.Client + Name string + Log logr.Logger + Controller controller.Controller + Events record.EventRecorder + FieldManager string + Watches []client.Object + Phases *phases.Registry +} + +func NewExternalSecretsReconciler(mgr ctrl.Manager) *ExternalSecretsReconciler { + return &ExternalSecretsReconciler{ + Name: "ExternalSecrets", + Client: mgr.GetClient(), + Events: mgr.GetEventRecorderFor("ExternalSecrets-Controller"), + FieldManager: "ExternalSecrets-reconciler", + Log: ctrl.Log.WithName("controllers").WithName("secrets").WithName("ExternalSecrets"), + Watches: []client.Object{}, + Phases: &phases.Registry{}, + } +} + +// +kubebuilder:rbac:groups=secrets.support-services.nukleros.io,resources=externalsecrets,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=secrets.support-services.nukleros.io,resources=externalsecrets/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=orchestration.support-services.nukleros.io,resources=supportservices,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=orchestration.support-services.nukleros.io,resources=supportservices/status,verbs=get;update;patch + +// Until Webhooks are implemented we need to list and watch namespaces to ensure +// they are available before deploying resources, +// See: +// - https://github.com/vmware-tanzu-labs/operator-builder/issues/141 +// - https://github.com/vmware-tanzu-labs/operator-builder/issues/162 + +// +kubebuilder:rbac:groups=core,resources=namespaces,verbs=list;watch + +// Reconcile is part of the main kubernetes reconciliation loop which aims to +// move the current state of the cluster closer to the desired state. +// +// For more details, check Reconcile and its Result here: +// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile +func (r *ExternalSecretsReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error) { + req, err := r.NewRequest(ctx, request) + if err != nil { + if errors.Is(err, workload.ErrCollectionNotFound) { + return ctrl.Result{Requeue: true}, nil + } + + if !apierrs.IsNotFound(err) { + return ctrl.Result{}, err + } + + return ctrl.Result{}, nil + } + + if err := phases.RegisterDeleteHooks(r, req); err != nil { + return ctrl.Result{}, err + } + + // execute the phases + return r.Phases.HandleExecution(r, req) +} + +func (r *ExternalSecretsReconciler) NewRequest(ctx context.Context, request ctrl.Request) (*workload.Request, error) { + component := &secretsv1alpha1.ExternalSecrets{} + + log := r.Log.WithValues( + "kind", component.GetWorkloadGVK().Kind, + "name", request.Name, + "namespace", request.Namespace, + ) + + // get the component from the cluster + if err := r.Get(ctx, request.NamespacedName, component); err != nil { + if !apierrs.IsNotFound(err) { + log.Error(err, "unable to fetch workload") + + return nil, fmt.Errorf("unable to fetch workload, %w", err) + } + + return nil, err + } + + // create the workload request + workloadRequest := &workload.Request{ + Context: ctx, + Workload: component, + Log: log, + } + + // store the collection and return any resulting error + return workloadRequest, r.SetCollection(component, workloadRequest) +} + +// SetCollection sets the collection for a particular workload request. +func (r *ExternalSecretsReconciler) SetCollection(component *secretsv1alpha1.ExternalSecrets, req *workload.Request) error { + collection, err := r.GetCollection(component, req) + if err != nil || collection == nil { + return fmt.Errorf("unable to set collection, %w", err) + } + + req.Collection = collection + + return r.EnqueueRequestOnCollectionChange(req) +} + +// GetCollection gets a collection for a component given a list. +func (r *ExternalSecretsReconciler) GetCollection( + component *secretsv1alpha1.ExternalSecrets, + req *workload.Request, +) (*orchestrationv1alpha1.SupportServices, error) { + var collectionList orchestrationv1alpha1.SupportServicesList + + if err := r.List(req.Context, &collectionList); err != nil { + return nil, fmt.Errorf("unable to list collection SupportServices, %w", err) + } + + // determine if we have requested a specific collection + name, namespace := component.Spec.Collection.Name, component.Spec.Collection.Namespace + + var collectionRef secretsv1alpha1.ExternalSecretsCollectionSpec + + hasSpecificCollection := component.Spec.Collection != collectionRef && component.Spec.Collection.Name != "" + + // if a specific collection has not been requested, we ensure only one exists + if !hasSpecificCollection { + if len(collectionList.Items) != 1 { + return nil, fmt.Errorf("expected only 1 SupportServices collection, found %v", len(collectionList.Items)) + } + + return &collectionList.Items[0], nil + } + + // find the collection that was requested and return it + for _, collection := range collectionList.Items { + if collection.Name == name && collection.Namespace == namespace { + return &collection, nil + } + } + + return nil, workload.ErrCollectionNotFound +} + +// EnqueueRequestOnCollectionChange enqueues a reconcile request when an associated collection object changes. +func (r *ExternalSecretsReconciler) EnqueueRequestOnCollectionChange(req *workload.Request) error { + if len(r.Watches) > 0 { + for _, watched := range r.Watches { + if reflect.DeepEqual( + req.Collection.GetObjectKind().GroupVersionKind(), + watched.GetObjectKind().GroupVersionKind(), + ) { + return nil + } + } + } + + // create a function which maps this specific reconcile request + mapFn := func(collection client.Object) []reconcile.Request { + return []reconcile.Request{ + { + NamespacedName: types.NamespacedName{ + Name: req.Workload.GetName(), + Namespace: req.Workload.GetNamespace(), + }, + }, + } + } + + // watch the collection and use our map function to enqueue the request + if err := r.Controller.Watch( + &source.Kind{Type: req.Collection}, + handler.EnqueueRequestsFromMapFunc(mapFn), + predicate.Funcs{ + UpdateFunc: func(e event.UpdateEvent) bool { + if !resources.EqualNamespaceName(e.ObjectNew, req.Collection) { + return false + } + + return e.ObjectNew != e.ObjectOld + }, + CreateFunc: func(e event.CreateEvent) bool { + return false + }, + GenericFunc: func(e event.GenericEvent) bool { + return false + }, + DeleteFunc: func(e event.DeleteEvent) bool { + return false + }, + }, + ); err != nil { + return err + } + + r.Watches = append(r.Watches, req.Collection) + + return nil +} + +// GetResources resources runs the methods to properly construct the resources in memory. +func (r *ExternalSecretsReconciler) GetResources(req *workload.Request) ([]client.Object, error) { + component, collection, err := externalsecrets.ConvertWorkload(req.Workload, req.Collection) + if err != nil { + return nil, err + } + + return externalsecrets.Generate(*component, *collection, r, req) +} + +// GetEventRecorder returns the event recorder for writing kubernetes events. +func (r *ExternalSecretsReconciler) GetEventRecorder() record.EventRecorder { + return r.Events +} + +// GetFieldManager returns the name of the field manager for the controller. +func (r *ExternalSecretsReconciler) GetFieldManager() string { + return r.FieldManager +} + +// GetLogger returns the logger from the reconciler. +func (r *ExternalSecretsReconciler) GetLogger() logr.Logger { + return r.Log +} + +// GetName returns the name of the reconciler. +func (r *ExternalSecretsReconciler) GetName() string { + return r.Name +} + +// GetController returns the controller object associated with the reconciler. +func (r *ExternalSecretsReconciler) GetController() controller.Controller { + return r.Controller +} + +// GetWatches returns the objects which are current being watched by the reconciler. +func (r *ExternalSecretsReconciler) GetWatches() []client.Object { + return r.Watches +} + +// SetWatch appends a watch to the list of currently watched objects. +func (r *ExternalSecretsReconciler) SetWatch(watch client.Object) { + r.Watches = append(r.Watches, watch) +} + +// CheckReady will return whether a component is ready. +func (r *ExternalSecretsReconciler) CheckReady(req *workload.Request) (bool, error) { + return dependencies.ExternalSecretsCheckReady(r, req) +} + +// Mutate will run the mutate function for the workload. +// WARN: this will be deprecated in the future. See apis/group/version/kind/mutate* +func (r *ExternalSecretsReconciler) Mutate( + req *workload.Request, + object client.Object, +) ([]client.Object, bool, error) { + return mutate.ExternalSecretsMutate(r, req, object) +} + +func (r *ExternalSecretsReconciler) SetupWithManager(mgr ctrl.Manager) error { + r.InitializePhases() + + baseController, err := ctrl.NewControllerManagedBy(mgr). + WithEventFilter(predicates.WorkloadPredicates()). + For(&secretsv1alpha1.ExternalSecrets{}). + Build(r) + if err != nil { + return fmt.Errorf("unable to setup controller, %w", err) + } + + r.Controller = baseController + + return nil +} diff --git a/controllers/secrets/externalsecrets_phases.go b/controllers/secrets/externalsecrets_phases.go new file mode 100644 index 0000000..02f160c --- /dev/null +++ b/controllers/secrets/externalsecrets_phases.go @@ -0,0 +1,89 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package secrets + +import ( + "time" + + "github.com/nukleros/operator-builder-tools/pkg/controller/phases" + ctrl "sigs.k8s.io/controller-runtime" +) + +// InitializePhases defines what phases should be run for each event loop. phases are executed +// in the order they are listed. +func (r *ExternalSecretsReconciler) InitializePhases() { + // Create Phases + r.Phases.Register( + "Dependency", + phases.DependencyPhase, + phases.CreateEvent, + phases.WithCustomRequeueResult(ctrl.Result{RequeueAfter: 5 * time.Second}), + ) + + r.Phases.Register( + "Create-Resources", + phases.CreateResourcesPhase, + phases.CreateEvent, + ) + + r.Phases.Register( + "Check-Ready", + phases.CheckReadyPhase, + phases.CreateEvent, + phases.WithCustomRequeueResult(ctrl.Result{RequeueAfter: 5 * time.Second}), + ) + + r.Phases.Register( + "Complete", + phases.CompletePhase, + phases.CreateEvent, + ) + + // Update Phases + r.Phases.Register( + "Dependency", + phases.DependencyPhase, + phases.UpdateEvent, + phases.WithCustomRequeueResult(ctrl.Result{RequeueAfter: 5 * time.Second}), + ) + + r.Phases.Register( + "Create-Resources", + phases.CreateResourcesPhase, + phases.UpdateEvent, + ) + + r.Phases.Register( + "Check-Ready", + phases.CheckReadyPhase, + phases.UpdateEvent, + phases.WithCustomRequeueResult(ctrl.Result{RequeueAfter: 5 * time.Second}), + ) + + r.Phases.Register( + "Complete", + phases.CompletePhase, + phases.UpdateEvent, + ) + + // Delete Phases + r.Phases.Register( + "DeletionComplete", + phases.DeletionCompletePhase, + phases.DeleteEvent, + ) +} diff --git a/internal/dependencies/certmanager.go b/internal/dependencies/certmanager.go index 6677c11..5b81d1e 100644 --- a/internal/dependencies/certmanager.go +++ b/internal/dependencies/certmanager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/dependencies/externaldns.go b/internal/dependencies/externaldns.go index 24a6e7d..b097ad8 100644 --- a/internal/dependencies/externaldns.go +++ b/internal/dependencies/externaldns.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/dependencies/externalsecrets.go b/internal/dependencies/externalsecrets.go new file mode 100644 index 0000000..2cbb553 --- /dev/null +++ b/internal/dependencies/externalsecrets.go @@ -0,0 +1,26 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package dependencies + +import ( + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" +) + +// ExternalSecretsCheckReady performs the logic to determine if a ExternalSecrets object is ready. +func ExternalSecretsCheckReady(r workload.Reconciler, req *workload.Request) (bool, error) { + return true, nil +} diff --git a/internal/dependencies/glooedge.go b/internal/dependencies/glooedge.go index 867a434..8fbeecc 100644 --- a/internal/dependencies/glooedge.go +++ b/internal/dependencies/glooedge.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/dependencies/supportservices.go b/internal/dependencies/supportservices.go index adf0642..8049fdd 100644 --- a/internal/dependencies/supportservices.go +++ b/internal/dependencies/supportservices.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/mutate/certmanager.go b/internal/mutate/certmanager.go index 21217f1..c97b171 100644 --- a/internal/mutate/certmanager.go +++ b/internal/mutate/certmanager.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/mutate/externaldns.go b/internal/mutate/externaldns.go index a91d9be..5204164 100644 --- a/internal/mutate/externaldns.go +++ b/internal/mutate/externaldns.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/mutate/externalsecrets.go b/internal/mutate/externalsecrets.go new file mode 100644 index 0000000..9c9b5fb --- /dev/null +++ b/internal/mutate/externalsecrets.go @@ -0,0 +1,31 @@ +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package mutate + +import ( + "github.com/nukleros/operator-builder-tools/pkg/controller/workload" + "sigs.k8s.io/controller-runtime/pkg/client" +) + +// ExternalSecretsMutate performs the logic to mutate resources that belong to the parent. +func ExternalSecretsMutate( + r workload.Reconciler, + req *workload.Request, + object client.Object, +) (replacedObjects []client.Object, skip bool, err error) { + return []client.Object{object}, false, nil +} diff --git a/internal/mutate/glooedge.go b/internal/mutate/glooedge.go index c60e4c8..4deb7fa 100644 --- a/internal/mutate/glooedge.go +++ b/internal/mutate/glooedge.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/mutate/supportservices.go b/internal/mutate/supportservices.go index 5b8c9ac..7703e1c 100644 --- a/internal/mutate/supportservices.go +++ b/internal/mutate/supportservices.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/main.go b/main.go index 96f9821..907d2b6 100644 --- a/main.go +++ b/main.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -35,9 +35,11 @@ import ( certificatesv1alpha1 "github.com/nukleros/support-services-operator/apis/certificates/v1alpha1" gatewayv1alpha1 "github.com/nukleros/support-services-operator/apis/gateway/v1alpha1" orchestrationv1alpha1 "github.com/nukleros/support-services-operator/apis/orchestration/v1alpha1" + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" certificatescontrollers "github.com/nukleros/support-services-operator/controllers/certificates" gatewaycontrollers "github.com/nukleros/support-services-operator/controllers/gateway" orchestrationcontrollers "github.com/nukleros/support-services-operator/controllers/orchestration" + secretscontrollers "github.com/nukleros/support-services-operator/controllers/secrets" //+kubebuilder:scaffold:imports ) @@ -57,6 +59,7 @@ func init() { utilruntime.Must(orchestrationv1alpha1.AddToScheme(scheme)) utilruntime.Must(certificatesv1alpha1.AddToScheme(scheme)) utilruntime.Must(gatewayv1alpha1.AddToScheme(scheme)) + utilruntime.Must(secretsv1alpha1.AddToScheme(scheme)) //+kubebuilder:scaffold:scheme } @@ -105,6 +108,7 @@ func main() { orchestrationcontrollers.NewSupportServicesReconciler(mgr), certificatescontrollers.NewCertManagerReconciler(mgr), gatewaycontrollers.NewExternalDNSReconciler(mgr), + secretscontrollers.NewExternalSecretsReconciler(mgr), gatewaycontrollers.NewGlooEdgeReconciler(mgr), //+kubebuilder:scaffold:reconcilers } diff --git a/test/e2e/certificates_v1alpha1_certmanager_test.go b/test/e2e/certificates_v1alpha1_certmanager_test.go index 8a1eae2..3e54c9f 100644 --- a/test/e2e/certificates_v1alpha1_certmanager_test.go +++ b/test/e2e/certificates_v1alpha1_certmanager_test.go @@ -2,7 +2,7 @@ // +build e2e_test /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go index f0c0b8a..b625134 100644 --- a/test/e2e/e2e_test.go +++ b/test/e2e/e2e_test.go @@ -2,7 +2,7 @@ // +build e2e_test /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/test/e2e/gateway_v1alpha1_externaldns_test.go b/test/e2e/gateway_v1alpha1_externaldns_test.go index 1eade1b..ed34721 100644 --- a/test/e2e/gateway_v1alpha1_externaldns_test.go +++ b/test/e2e/gateway_v1alpha1_externaldns_test.go @@ -2,7 +2,7 @@ // +build e2e_test /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/test/e2e/gateway_v1alpha1_glooedge_test.go b/test/e2e/gateway_v1alpha1_glooedge_test.go index 4391ae5..64914de 100644 --- a/test/e2e/gateway_v1alpha1_glooedge_test.go +++ b/test/e2e/gateway_v1alpha1_glooedge_test.go @@ -2,7 +2,7 @@ // +build e2e_test /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/test/e2e/orchestration_v1alpha1_supportservices_test.go b/test/e2e/orchestration_v1alpha1_supportservices_test.go index 5fad146..bffafab 100644 --- a/test/e2e/orchestration_v1alpha1_supportservices_test.go +++ b/test/e2e/orchestration_v1alpha1_supportservices_test.go @@ -2,7 +2,7 @@ // +build e2e_test /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/test/e2e/secrets_v1alpha1_externalsecrets_test.go b/test/e2e/secrets_v1alpha1_externalsecrets_test.go new file mode 100644 index 0000000..e67d51c --- /dev/null +++ b/test/e2e/secrets_v1alpha1_externalsecrets_test.go @@ -0,0 +1,98 @@ +//go:build e2e_test +// +build e2e_test + +/* +Copyright 2024. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package e2e_test + +import ( + "fmt" + "os" + + "github.com/stretchr/testify/require" + + "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" + + secretsv1alpha1 "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1" + "github.com/nukleros/support-services-operator/apis/secrets/v1alpha1/externalsecrets" +) + +// +// secretsv1alpha1ExternalSecrets tests +// +func secretsv1alpha1ExternalSecretsChildrenFuncs(tester *E2ETest) error { + // TODO: need to run r.GetResources(request) on the reconciler to get the mutated resources + if len(externalsecrets.CreateFuncs) == 0 { + return nil + } + + workload, collection, err := externalsecrets.ConvertWorkload(tester.workload, tester.collectionTester.workload) + if err != nil { + return fmt.Errorf("error in workload conversion; %w", err) + } + + resourceObjects, err := externalsecrets.Generate(*workload, *collection, nil, nil) + if err != nil { + return fmt.Errorf("unable to create objects in memory; %w", err) + } + + tester.children = resourceObjects + + return nil +} + +func secretsv1alpha1ExternalSecretsNewHarness(namespace string) *E2ETest { + return &E2ETest{ + namespace: namespace, + unstructured: &unstructured.Unstructured{}, + workload: &secretsv1alpha1.ExternalSecrets{}, + sampleManifestFile: "../../config/samples/secrets_v1alpha1_externalsecrets.yaml", + getChildrenFunc: secretsv1alpha1ExternalSecretsChildrenFuncs, + logSyntax: "controllers.secrets.ExternalSecrets", + collectionTester: orchestrationv1alpha1SupportServicesNewHarness(""), + } +} + +func (tester *E2ETest) secretsv1alpha1ExternalSecretsTest(testSuite *E2EComponentTestSuite) { + testSuite.suiteConfig.tests = append(testSuite.suiteConfig.tests, tester) + tester.suiteConfig = &testSuite.suiteConfig + require.NoErrorf(testSuite.T(), tester.setup(), "failed to setup test") + + // create the custom resource + require.NoErrorf(testSuite.T(), testCreateCustomResource(tester), "failed to create custom resource") + + // test the deletion of a child object + require.NoErrorf(testSuite.T(), testDeleteChildResource(tester), "failed to reconcile deletion of a child resource") + + // test the update of a child object + // TODO: need immutable fields so that we can predict which managed fields we can modify to test reconciliation + // see https://github.com/vmware-tanzu-labs/operator-builder/issues/67 + + // test the update of a parent object + // TODO: need immutable fields so that we can predict which managed fields we can modify to test reconciliation + // see https://github.com/vmware-tanzu-labs/operator-builder/issues/67 + + // test that controller logs do not contain errors + if os.Getenv("DEPLOY_IN_CLUSTER") == "true" { + require.NoErrorf(testSuite.T(), testControllerLogsNoErrors(tester.suiteConfig, tester.logSyntax), "found errors in controller logs") + } +} + +func (testSuite *E2EComponentTestSuite) Test_secretsv1alpha1ExternalSecrets() { + tester := secretsv1alpha1ExternalSecretsNewHarness("") + tester.secretsv1alpha1ExternalSecretsTest(testSuite) +} From da21562e0818f4bd9df31aa9ad5763e8d60ee787 Mon Sep 17 00:00:00 2001 From: Randy Johnson Date: Thu, 7 Mar 2024 20:17:58 -0500 Subject: [PATCH 3/3] fix: clean up makefile --- .codegen/Makefile | 4 ---- .codegen/preserved-assets/externaldns_types.go.bak | 2 +- .codegen/secrets/external-secrets/rbac.yaml | 4 ++++ PROJECT | 8 ++++++++ apis/gateway/v1alpha1/externaldns_types.go | 2 +- apis/secrets/v1alpha1/externalsecrets/rbac.go | 2 +- apis/secrets/v1alpha1/externalsecrets/resources.go | 2 ++ config/samples/secrets_v1alpha1_externalsecrets.yaml | 1 + hack/boilerplate.go.txt | 2 +- 9 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.codegen/Makefile b/.codegen/Makefile index 4ea1d84..507f060 100644 --- a/.codegen/Makefile +++ b/.codegen/Makefile @@ -12,8 +12,6 @@ preserve: cp ../config/samples/gateway_v1alpha1_externaldns.yaml preserved-assets/ cp ../apis/gateway/v1alpha1/glooedge_types.go preserved-assets/glooedge_types.go.bak cp ../apis/gateway/v1alpha1/externaldns_types.go preserved-assets/externaldns_types.go.bak - cp ../apis/gateway/v1alpha1/externalsecrets_types.go preserved-assets/externalsecrets_types.go.bak - cp ../apis/gateway/v1alpha1/certmanager_types.go preserved-assets/certmanager_types.go.bak cp ../apis/gateway/v1alpha1/glooedge/mutate/gateway_namespace_gateway_proxy.go preserved-assets/gateway_namespace_gateway_proxy.go.bak cp ../apis/gateway/v1alpha1/glooedge/mutate/service_namespace_gateway_proxy.go preserved-assets/service_namespace_gateway_proxy.go.bak cp ../apis/gateway/v1alpha1/externaldns/mutate/deployment.go preserved-assets/deployment.go.bak @@ -48,8 +46,6 @@ operator-create: cp preserved-assets/gateway_v1alpha1_externaldns.yaml ../config/samples/gateway_v1alpha1_externaldns.yaml cp preserved-assets/glooedge_types.go.bak ../apis/gateway/v1alpha1/glooedge_types.go cp preserved-assets/externaldns_types.go.bak ../apis/gateway/v1alpha1/externaldns_types.go - cp preserved-assets/externalsecrets_types.go.bak ../apis/gateway/v1alpha1/externalsecrets.go - cp preserved-assets/certmanager_types.go.bak ../apis/gateway/v1alpha1/certmanager.go cp preserved-assets/gateway_namespace_gateway_proxy.go.bak ../apis/gateway/v1alpha1/glooedge/mutate/gateway_namespace_gateway_proxy.go cp preserved-assets/service_namespace_gateway_proxy.go.bak ../apis/gateway/v1alpha1/glooedge/mutate/service_namespace_gateway_proxy.go cp preserved-assets/deployment.go.bak ../apis/gateway/v1alpha1/externaldns/mutate/deployment.go diff --git a/.codegen/preserved-assets/externaldns_types.go.bak b/.codegen/preserved-assets/externaldns_types.go.bak index 0fe278c..5efc213 100644 --- a/.codegen/preserved-assets/externaldns_types.go.bak +++ b/.codegen/preserved-assets/externaldns_types.go.bak @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/.codegen/secrets/external-secrets/rbac.yaml b/.codegen/secrets/external-secrets/rbac.yaml index 3732fb0..bc98265 100644 --- a/.codegen/secrets/external-secrets/rbac.yaml +++ b/.codegen/secrets/external-secrets/rbac.yaml @@ -16,6 +16,10 @@ kind: ServiceAccount metadata: name: external-secrets namespace: nukleros-secrets-system # +operator-builder:field:name=namespace,default="nukleros-secrets-system",type=string + annotations: + # +operator-builder:field:name=iamRoleArn,type=string,description=` + # On AWS, the IAM Role ARN that gives external-secrets access to SecretsManager` + eks.amazonaws.com/role-arn: iam_role_arn labels: app.kubernetes.io/name: external-secrets app.kubernetes.io/instance: external-secrets diff --git a/PROJECT b/PROJECT index 98d0056..cc12812 100644 --- a/PROJECT +++ b/PROJECT @@ -35,6 +35,14 @@ resources: kind: ExternalDNS path: github.com/nukleros/support-services-operator/apis/gateway/v1alpha1 version: v1alpha1 +- api: + crdVersion: v1 + controller: true + domain: support-services.nukleros.io + group: secrets + kind: ExternalSecrets + path: github.com/nukleros/support-services-operator/apis/secrets/v1alpha1 + version: v1alpha1 - api: crdVersion: v1 controller: true diff --git a/apis/gateway/v1alpha1/externaldns_types.go b/apis/gateway/v1alpha1/externaldns_types.go index 0fe278c..5efc213 100644 --- a/apis/gateway/v1alpha1/externaldns_types.go +++ b/apis/gateway/v1alpha1/externaldns_types.go @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/apis/secrets/v1alpha1/externalsecrets/rbac.go b/apis/secrets/v1alpha1/externalsecrets/rbac.go index 5c54bbb..d9d8c78 100644 --- a/apis/secrets/v1alpha1/externalsecrets/rbac.go +++ b/apis/secrets/v1alpha1/externalsecrets/rbac.go @@ -77,7 +77,7 @@ func CreateServiceAccountNamespaceExternalSecrets( "namespace": parent.Spec.Namespace, // controlled by field: namespace "annotations": map[string]interface{}{ // controlled by field: iamRoleArn - // On AWS, the IAM Role ARN that gives cert-manager access to Route53 + // On AWS, the IAM Role ARN that gives external-secrets access to SecretsManager "eks.amazonaws.com/role-arn": parent.Spec.IamRoleArn, }, "labels": map[string]interface{}{ diff --git a/apis/secrets/v1alpha1/externalsecrets/resources.go b/apis/secrets/v1alpha1/externalsecrets/resources.go index adf4f58..00bc147 100644 --- a/apis/secrets/v1alpha1/externalsecrets/resources.go +++ b/apis/secrets/v1alpha1/externalsecrets/resources.go @@ -46,6 +46,7 @@ spec: replicas: 2 webhook: replicas: 2 + iamRoleArn: "iam_role_arn" ` // sampleExternalSecretsRequired is a sample containing only required fields @@ -57,6 +58,7 @@ spec: #collection: #name: "supportservices-sample" #namespace: "" + iamRoleArn: "iam_role_arn" ` // Sample returns the sample manifest for this custom resource. diff --git a/config/samples/secrets_v1alpha1_externalsecrets.yaml b/config/samples/secrets_v1alpha1_externalsecrets.yaml index 80e6550..fb211cd 100644 --- a/config/samples/secrets_v1alpha1_externalsecrets.yaml +++ b/config/samples/secrets_v1alpha1_externalsecrets.yaml @@ -15,3 +15,4 @@ spec: replicas: 2 webhook: replicas: 2 + iamRoleArn: "iam_role_arn" diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index 65b8622..ff72ff2 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,5 +1,5 @@ /* -Copyright 2023. +Copyright 2024. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.