惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
H
Help Net Security
L
LangChain Blog
M
MIT News - Artificial intelligence
The GitHub Blog
The GitHub Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
C
Check Point Blog
P
Proofpoint News Feed
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
博客园_首页
Blog — PlanetScale
Blog — PlanetScale
U
Unit 42
I
InfoQ
月光博客
月光博客
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio Blog
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog
博客园 - Franky
D
Docker
B
Blog

OneUptime Blog

How to Monitor Azure App Services (PaaS) with OpenTelemetry Grafana Stack vs OneUptime: DIY Observability or Unified Platform? Your AI Workloads Are About to Blow Up Your Observability Bill The Great Observability Consolidation Is Here How to Write Custom Object Classes for Ceph How to Write Custom Ceph Manager Modules How to Write a ceph.conf Configuration File How to Use Rook-Ceph with OpenShift How to Use Rook-Ceph with Longhorn for Comparison How to Configure Volume Snapshot Class for RBD in Rook How to Configure VolumeReplicationClass Scheduling Intervals in Rook How to Set Up Volume Replication with Rook-Ceph How to Create Volume Group Snapshots with Rook CSI How to Visualize Ceph Network Performance in Grafana How to Enable Virtual Host-Style Bucket Access in Rook How to View Runtime Configuration via Admin Socket How to View Quota Settings and Update Stats in Ceph RGW How to View PG Scaling Recommendations with autoscale-status How to View PG Distribution via Admin Socket How to View Performance Metrics in the Ceph Dashboard How to View OSD Performance Counters in Ceph How to View Connection Status via Admin Socket How to View Ceph Cluster Summary Dashboard via CLI How to Version Control Rook-Ceph Configuration How to Version Control Ceph Infrastructure with Terraform How to Verify Kubernetes Node Requirements for Rook-Ceph Deployment How to Verify Health Before and After Rook Upgrades How to Verify Data Integrity with Deep Scrubbing How to Verify Complete Rook-Ceph Cleanup How to Verify Backup Integrity from Ceph Snapshots
How to Configure TLS for Vault Integration in Rook
Nawaz Dhandala · 2026-03-31 · via OneUptime Blog

Overview

Production Vault deployments require TLS to protect key material in transit. Rook-Ceph CSI drivers support full TLS verification including CA certificate validation and optional mutual TLS (client certificates). This guide covers storing certificates as Kubernetes Secrets and referencing them in the KMS configuration.

Store the Vault CA Certificate

Create a Kubernetes Secret containing the Vault CA certificate:

kubectl create secret generic vault-ca-cert \
  --from-file=cert=/path/to/vault-ca.crt \
  -n rook-ceph

For client certificate authentication (mutual TLS):

kubectl create secret generic vault-client-cert \
  --from-file=cert=/path/to/client.crt \
  -n rook-ceph

kubectl create secret generic vault-client-key \
  --from-file=key=/path/to/client.key \
  -n rook-ceph

Configure TLS in the KMS ConfigMap

Reference the certificate secrets in the KMS configuration:

apiVersion: v1
kind: ConfigMap
metadata:
  name: rook-ceph-csi-kms-config
  namespace: rook-ceph
data:
  config.json: |-
    {
      "vault-tls-kms": {
        "encryptionKMSType": "vault",
        "vaultAddress": "https://vault.example.com:8200",
        "vaultBackendPath": "secret/",
        "vaultAuthPath": "/v1/auth/kubernetes/login",
        "vaultRole": "rook-ceph-kms",
        "vaultCAFromSecret": "vault-ca-cert",
        "vaultClientCertFromSecret": "vault-client-cert",
        "vaultClientCertKeyFromSecret": "vault-client-key",
        "vaultTLSServerName": "vault.example.com"
      }
    }

CephCluster TLS Connection Details

apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
  name: rook-ceph
  namespace: rook-ceph
spec:
  security:
    kms:
      connectionDetails:
        KMS_PROVIDER: vault
        VAULT_ADDR: https://vault.example.com:8200
        VAULT_BACKEND_PATH: secret
        VAULT_AUTH_METHOD: kubernetes
        VAULT_AUTH_KUBERNETES_ROLE: rook-ceph-kms
        VAULT_TLS_SERVER_NAME: vault.example.com
        VAULT_CACERT: vault-ca-cert
        VAULT_CLIENT_CERT: vault-client-cert
        VAULT_CLIENT_KEY: vault-client-key

Verify TLS Connectivity

Test TLS connectivity from inside the cluster to Vault:

kubectl run tls-test --rm -it --image=alpine --restart=Never -- sh

# Inside the pod
apk add curl
curl --cacert /path/to/ca.crt https://vault.example.com:8200/v1/sys/health

Check the CSI provisioner pod can reach Vault:

kubectl exec -n rook-ceph deployment/csi-rbdplugin-provisioner -c csi-rbdplugin -- \
  curl --cacert /tmp/vault-ca/cert https://vault.example.com:8200/v1/sys/health

Certificate Rotation

When Vault certificates expire, update the Kubernetes Secrets:

kubectl create secret generic vault-ca-cert \
  --from-file=cert=/path/to/new-vault-ca.crt \
  -n rook-ceph --dry-run=client -o yaml | kubectl apply -f -

Restart the CSI pods to pick up the new certificates:

kubectl rollout restart deployment/csi-rbdplugin-provisioner -n rook-ceph
kubectl rollout restart daemonset/csi-rbdplugin -n rook-ceph

Disable TLS Verification (Development Only)

For development or testing with self-signed certificates:

{
  "vault-dev-kms": {
    "encryptionKMSType": "vault",
    "vaultAddress": "https://vault.dev.local:8200",
    "vaultCAVerify": "false"
  }
}

Never use vaultCAVerify: "false" in production environments.

Summary

Configuring TLS for Vault integration in Rook-Ceph protects encryption key material in transit. Storing CA and client certificates as Kubernetes Secrets and referencing them via the KMS ConfigMap fields provides full mutual TLS without hardcoding certificates into manifests. Certificate rotation requires only a Secret update and CSI pod restart.