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",
|
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": {
|
|
|
|
"tenantTokenName": "storage-encryption-token"
|
|
|
|
}
|
|
|
|
}
|
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",
|
|
|
|
"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-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
|