Replies: 3 comments 1 reply
-
Here is a doc for accessing keyvault with private link: https://docs.microsoft.com/en-us/azure/key-vault/general/private-link-service?tabs=portal. Once the required steps for keyvault + private link are setup I don't think there would be any additional changes in the |
Beta Was this translation helpful? Give feedback.
-
Did you get it to work @irperez ? My current lab config: apiVersion: "aadpodidentity.k8s.io/v1"
kind: AzureIdentity
metadata:
name: operations-lab-azureidentity
namespace: operations-lab
spec:
type: 0 # (0=Azure Id, 1=Service Principal)
resourceID: *redacted*
clientID: *redacted*
---
apiVersion: "aadpodidentity.k8s.io/v1"
kind: AzureIdentityBinding
metadata:
name: operations-lab-azureidentitybinding
namespace: operations-lab
spec:
azureIdentity: operations-lab-azureidentity # must match the value in AzureIdentity
selector: operations-lab-identity # label value to match for the pods
---
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: keyvaultName-grafana-lab-spc
namespace: operations-lab
spec:
provider: azure
secretObjects: # [OPTIONAL] SecretObject defines the desired state of synced K8s secret objects
- secretName: grafanasecret
type: Opaque
data:
- objectName: adminpassword # name of the mounted content to sync. this could be the object name or object alias
key: adminpwd
parameters:
usePodIdentity: "true"
keyvaultName: *redacted*
objects: |
array:
- |
objectName: grafana-oauth-creds-lab
objectType: secret
objectAlias: oauthsecret
objectVersion: ""
- |
objectName: grafana-admin-password
objectType: secret
objectAlias: adminpassword
objectVersion: ""
tenantId: *redacted*
And some logs from the CSI store:
Based on the troubleshooting docs this points to firewall configuration, but the source network is allowed in AKV. @aramase Am I missing something here? |
Beta Was this translation helpful? Give feedback.
-
It seems to work without any changes to the config. I just wanted to be sure as there was no mention of it in the documentation. We're using managed identity. |
Beta Was this translation helpful? Give feedback.
-
Does the name of the KeyVault need to change if we are using Private Links? How do we ensure we're connecting on the private network? Any guidance for use with private link would be great! I don't see any mention of it in the docs.
Beta Was this translation helpful? Give feedback.
All reactions