command
module
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Jul 19, 2025
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
secrets-store-csi-driver-provider-sakuracloud
This is a provider for the Kubernetes Secrets Store CSI Driver, allowing you to fetch secrets from Sakura Cloud Secret Manager and mount them into your pods.
Features
- Fetches secrets from Sakura Cloud Secret Manager.
- Mounts secrets as files into pods.
- Supports specifying
vaultID and a list of secrets in the SecretProviderClass.
Installation
TODO
Usage
-
Create a SecretProviderClass
Create a SecretProviderClass resource to define which secrets to fetch.
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: my-sakuracloud-secrets
spec:
provider: sakuracloud
parameters:
vaultID: "your-vault-id" # Specify your Vault ID
secrets: |
- name: "my-secret-1"
- name: "my-secret-2"
-
Mount Secrets in a Pod
Reference the SecretProviderClass in your pod's volume mounts.
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: my-container
image: nginx
volumeMounts:
- name: secrets-store-inline
mountPath: "/mnt/secrets-store"
readOnly: true
volumes:
- name: secrets-store-inline
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "my-sakuracloud-secrets"
The secrets will be mounted as files in the /mnt/secrets-store directory inside the container.
Development
Prerequisites
Running Tests
To run the end-to-end tests, you need to set the following environment variables:
SAKURACLOUD_ACCESS_TOKEN: Your Sakura Cloud API access token.
SAKURACLOUD_ACCESS_TOKEN_SECRET: Your Sakura Cloud API access token secret.
SAKURACLOUD_VAULT_ID: The ID of the Sakura Cloud Secret Manager Vault to use for tests.
export SAKURACLOUD_ACCESS_TOKEN="your-access-token"
export SAKURACLOUD_ACCESS_TOKEN_SECRET="your-access-token-secret"
export SAKURACLOUD_VAULT_ID="your-vault-id"
make e2e-test
License
This project is licensed under the MIT License - see the LICENSE file for details.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.