2021-03-24 12:51:11 +00:00
|
|
|
#
|
|
|
|
# csi-kms-connection-details is an alternative option to configure KMS
|
|
|
|
# providers for encrypted volume support.
|
|
|
|
# This ConfigMap can be located in the Kubernetes Namespace where Ceph-CSI is
|
|
|
|
# deployed. In case the ceph-csi-encryption-kms-config which provides a
|
|
|
|
# `config.json` is not mapped into the csi-rbdplugin container, the
|
|
|
|
# csi-kms-connection-details ConfigMap will be used instead.
|
|
|
|
#
|
|
|
|
# The configuration values follow the common key/value contents. The key for
|
|
|
|
# each KMS provider should be used as the value for `encryptionKMSID` in the
|
|
|
|
# StorageClass.
|
|
|
|
#
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
data:
|
|
|
|
vault-test: |-
|
|
|
|
{
|
|
|
|
"encryptionKMSType": "vault",
|
|
|
|
"vaultAddress": "http://vault.default.svc.cluster.local:8200",
|
|
|
|
"vaultAuthPath": "/v1/auth/kubernetes/login",
|
|
|
|
"vaultRole": "csi-kubernetes",
|
|
|
|
"vaultPassphraseRoot": "/v1/secret",
|
|
|
|
"vaultPassphrasePath": "ceph-csi/",
|
|
|
|
"vaultCAVerify": "false"
|
|
|
|
}
|
|
|
|
vault-tokens-test: |-
|
|
|
|
{
|
|
|
|
"KMS_PROVIDER": "vaulttokens",
|
|
|
|
"VAULT_ADDR": "http://vault.default.svc.cluster.local:8200",
|
|
|
|
"VAULT_BACKEND_PATH": "secret",
|
2021-08-02 09:35:26 +00:00
|
|
|
"VAULT_DESTROY_KEYS": "true",
|
2021-03-24 12:51:11 +00:00
|
|
|
"VAULT_SKIP_VERIFY": "true"
|
|
|
|
}
|
2021-07-06 08:32:12 +00:00
|
|
|
vault-tenant-sa-test: |-
|
|
|
|
{
|
|
|
|
"KMS_PROVIDER": "vaulttenantsa",
|
|
|
|
"VAULT_ADDR": "http://vault.default.svc.cluster.local:8200",
|
|
|
|
"VAULT_BACKEND_PATH": "shared-secrets",
|
|
|
|
"VAULT_SKIP_VERIFY": "true"
|
|
|
|
}
|
2021-03-24 12:51:11 +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-24 17:04:33 +00:00
|
|
|
aws-metadata-test: |-
|
|
|
|
{
|
|
|
|
"KMS_PROVIDER": "aws-metadata",
|
|
|
|
"KMS_SECRET_NAME": "ceph-csi-aws-credentials",
|
|
|
|
"AWS_REGION": "us-west-2"
|
|
|
|
}
|
2021-12-20 05:49:54 +00:00
|
|
|
kp-metadata-test: |-
|
|
|
|
{
|
|
|
|
"KMS_PROVIDER": "kp-metadata",
|
|
|
|
"KMS_SECRET_NAME": "ceph-csi-kp-credentials",
|
|
|
|
"KP_SERVICE_INSTANCE_ID": "7abef064-01dd-4237-9ea5-8b3890970be3",
|
|
|
|
"KP_REGION": "us-south-2",
|
|
|
|
}
|
2021-03-24 12:51:11 +00:00
|
|
|
metadata:
|
|
|
|
name: csi-kms-connection-details
|