2020-01-29 11:44:45 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
data:
|
|
|
|
config.json: |-
|
2020-02-06 16:23:14 +00:00
|
|
|
{
|
|
|
|
"vault-test": {
|
|
|
|
"encryptionKMSType": "vault",
|
2020-01-29 11:44:45 +00:00
|
|
|
"vaultAddress": "http://vault.default.svc.cluster.local:8200",
|
|
|
|
"vaultAuthPath": "/v1/auth/kubernetes/login",
|
|
|
|
"vaultRole": "csi-kubernetes",
|
2021-07-20 09:18:58 +00:00
|
|
|
"vaultBackend": "kv-v2",
|
2021-08-02 09:35:26 +00:00
|
|
|
"vaultDestroyKeys": "true",
|
2020-01-29 11:44:45 +00:00
|
|
|
"vaultPassphraseRoot": "/v1/secret",
|
|
|
|
"vaultPassphrasePath": "ceph-csi/",
|
2020-02-06 16:23:14 +00:00
|
|
|
"vaultCAVerify": "false"
|
2020-12-09 16:10:43 +00:00
|
|
|
},
|
|
|
|
"vault-tokens-test": {
|
|
|
|
"encryptionKMSType": "vaulttokens",
|
|
|
|
"vaultAddress": "http://vault.default.svc.cluster.local:8200",
|
2021-07-20 09:18:58 +00:00
|
|
|
"vaultBackend": "kv-v2",
|
2020-12-09 16:10:43 +00:00
|
|
|
"vaultBackendPath": "secret/",
|
|
|
|
"vaultTLSServerName": "vault.default.svc.cluster.local",
|
|
|
|
"vaultCAVerify": "false",
|
|
|
|
"tenantConfigName": "ceph-csi-kms-config",
|
|
|
|
"tenantTokenName": "ceph-csi-kms-token",
|
|
|
|
"tenants": {
|
|
|
|
"my-app": {
|
|
|
|
"vaultAddress": "https://vault.example.com",
|
|
|
|
"vaultCAVerify": "true"
|
|
|
|
},
|
|
|
|
"an-other-app": {
|
2021-08-02 09:35:26 +00:00
|
|
|
"tenantTokenName": "storage-encryption-token",
|
|
|
|
"vaultDestroyKeys": "false"
|
2020-12-09 16:10:43 +00:00
|
|
|
}
|
|
|
|
}
|
2021-03-04 09:23:53 +00:00
|
|
|
},
|
2021-07-06 08:32:12 +00:00
|
|
|
"vault-tenant-sa-test": {
|
|
|
|
"encryptionKMSType": "vaulttenantsa",
|
|
|
|
"vaultAddress": "http://vault.default.svc.cluster.local:8200",
|
2021-07-20 09:18:58 +00:00
|
|
|
"vaultBackend": "kv-v2",
|
2021-07-06 08:32:12 +00:00
|
|
|
"vaultBackendPath": "shared-secrets",
|
2021-08-03 09:27:12 +00:00
|
|
|
"vaultDestroyKeys": "false",
|
2021-07-06 08:32:12 +00:00
|
|
|
"vaultTLSServerName": "vault.default.svc.cluster.local",
|
|
|
|
"vaultCAVerify": "false",
|
|
|
|
"tenantConfigName": "ceph-csi-kms-config",
|
|
|
|
"tenantSAName": "ceph-csi-vault-sa",
|
|
|
|
"tenants": {
|
|
|
|
"my-app": {
|
|
|
|
"vaultAddress": "https://vault.example.com",
|
|
|
|
"vaultCAVerify": "true"
|
|
|
|
},
|
|
|
|
"an-other-app": {
|
|
|
|
"tenantSAName": "storage-encryption-sa"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-07-30 07:53:27 +00:00
|
|
|
"vault-tenant-sa-ns-test": {
|
|
|
|
"encryptionKMSType": "vaulttenantsa",
|
|
|
|
"vaultAddress": "http://vault.default.svc.cluster.local:8200",
|
|
|
|
"vaultBackend": "kv-v2",
|
|
|
|
"vaultBackendPath": "shared-secrets",
|
|
|
|
"vaultAuthNamespace": "devops",
|
|
|
|
"vaultNamespace": "devops/homepage",
|
|
|
|
"vaultTLSServerName": "vault.default.svc.cluster.local",
|
|
|
|
"vaultCAVerify": "false",
|
|
|
|
"tenantConfigName": "ceph-csi-kms-config",
|
|
|
|
"tenantSAName": "ceph-csi-vault-sa",
|
|
|
|
"tenants": {
|
|
|
|
"webservers": {
|
|
|
|
"vaultAddress": "https://vault.example.com",
|
|
|
|
"vaultAuthNamespace": "webservers",
|
|
|
|
"vaultNamespace": "webservers/homepage",
|
|
|
|
"vaultCAVerify": "true"
|
|
|
|
},
|
|
|
|
"homepage-db": {
|
|
|
|
"vaultNamespace": "devops/homepage/database",
|
|
|
|
"tenantSAName": "storage-encryption-sa"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2021-03-04 09:23:53 +00:00
|
|
|
"secrets-metadata-test": {
|
|
|
|
"encryptionKMSType": "metadata"
|
2021-07-05 08:28:33 +00:00
|
|
|
},
|
|
|
|
"user-ns-secrets-metadata-test": {
|
|
|
|
"encryptionKMSType": "metadata",
|
|
|
|
"secretName": "storage-encryption-secret",
|
|
|
|
"secretNamespace": "default"
|
|
|
|
},
|
|
|
|
"user-secrets-metadata-test": {
|
|
|
|
"encryptionKMSType": "metadata",
|
|
|
|
"secretName": "storage-encryption-secret"
|
2021-12-20 05:49:54 +00:00
|
|
|
},
|
2022-01-24 09:09:31 +00:00
|
|
|
"ibmkeyprotect-test": {
|
|
|
|
"encryptionKMSType": "ibmkeyprotect",
|
2021-12-20 05:49:54 +00:00
|
|
|
"secretName": "ceph-csi-kp-credentials",
|
|
|
|
"keyProtectRegionKey": "us-south-2",
|
|
|
|
"keyProtectServiceInstanceID": "7abef064-01dd-4237-9ea5-8b3890970be3"
|
2022-03-02 10:30:48 +00:00
|
|
|
},
|
|
|
|
"aws-sts-metadata-test": {
|
|
|
|
"encryptionKMSType": "aws-sts-metadata",
|
|
|
|
"secretName": "ceph-csi-aws-credentials"
|
2021-03-04 09:23:53 +00:00
|
|
|
}
|
2020-02-06 16:23:14 +00:00
|
|
|
}
|
2020-01-29 11:44:45 +00:00
|
|
|
metadata:
|
|
|
|
name: ceph-csi-encryption-kms-config
|