Comments (3)
You need to define a kubernetes secret that your secretProviderClass
will create which your deployment
can then reference.
To do this you need to add a secretObjects
section to your secretProviderClass
. For example:
SecretProviderClass.yml
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: secretProviderClass
metadata:
name: azure-kv-name
spec:
provider: azure
parameters:
usePodIdentity: "true"
clientID: <redacted>
keyvaultName: <redacted>
objects: |
array:
- |
objectName: AZURE-CLIENT-ID
objectType: string
objectAlias: AZURE_CLIENT_ID
- |
objectName: AZURE-CLIENT-SECRET
objectType: string
objectAlias: AZURE_CLIENT_SECRET
- |
objectName: EXAMPLESECRET
objectType: secret
objectAlias: EXAMPLESECRET
- |
objectName: POSTGRES-HOST
objectType: secret
objectAlias: POSTGRES_HOST
- |
objectName: POSTGRES-PORT
objectType: secret
objectAlias: POSTGRES_PORT
- |
objectName: POSTGRES-USER
objectType: secret
objectAlias: POSTGRES_USER
- |
objectName: POSTGRES-PASSWORD
objectType: secret
objectAlias: POSTGRES_PASSWORD
tenantId: <redacted>
secretObjects:
- data:
- key: AZURE-TENANT-ID
objectName: AZURE-TENANT-ID
- key: AZURE-CLIENT-ID
objectName: AZURE-CLIENT-SECRET
- key: AZURE-CLIENT-ID
objectName: AZURE-CLIENT-SECRET
secretName: your-secret-name
type: Opaque
Then in your Deployment file, the name value under each secretKeyRef
section should be your-secret-name
.
from secrets-store-csi-driver-provider-azure.
This issue is stale because it has been open 14 days with no activity. Please comment or this will be closed in 7 days.
from secrets-store-csi-driver-provider-azure.
This issue was closed because it has been stalled for 21 days with no activity. Feel free to re-open if you are experiencing the issue again.
from secrets-store-csi-driver-provider-azure.
Related Issues (20)
- CSI should convert keyvault file with required extension and keep on container after mounting HOT 1
- Provider should reject deployments of SecretProviderClasses if synced secrets reference non-existent object HOT 3
- Secrets Store CSI Driver certificate not refresh after AKV certificate renewal HOT 1
- [Question] How to calculate how many calls are made to KeyVault? HOT 2
- Sync all secrets of a key vault instead of referencing each one separately
- [Question] Understanding how many calls are made to KeyVault? HOT 7
- Support multiple Azure Key Vault instances as fallback HOT 6
- store whole list of environment variables as bulk key = value pairs converted base 64 string store as secret I want to mount all of encrypted base 64 string to decrypt and for each key value pairs environment variables should mount to the pod
- K8s Secret Not Created HOT 2
- CVE-2023-48795, CVE-2023-3978, CVE-2023-2878 HOT 1
- Do not provide client id in SecretProviderClass
- Add a flag to configure the default cloud environment
- Scan images CI job failing for `provider-azure-arc-conformance` image
- Usage of an outdated telegraf 1.21 version HOT 3
- [Feature request] Reject input with invisible/zero-width character
- add support for the resource id as userAssignedIdentityID
- Sync certificates without mounting a volume
- Make `hostNetwork` configurable in the helm charts
- Upgrade "csi-secret-store-provider-driver" failed: pre-upgrade hooks failed: * job secrets-store-csi-driver-upgrade-crds failed: BackoffLimitExceeded
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secrets-store-csi-driver-provider-azure.