Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

simplify examples and add GCP note

Matheus Nogueira798189e106df
diff --git a/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx
index 39ee87b309..51a3328067 100644
--- a/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx
+++ b/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx
@@ -34,7 +34,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
kind: ServiceAccount
metadata:
name: infisical-service-account
- namespace: default
---
# 2. Bind the service account to system:auth-delegator so it can
# validate tokens via the Kubernetes TokenReview API
@@ -49,14 +48,12 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
subjects:
- kind: ServiceAccount
name: infisical-service-account
- namespace: default
---
# 3. Kubernetes secret holding the machine identity ID
apiVersion: v1
kind: Secret
metadata:
name: kubernetes-credentials
- namespace: default
type: Opaque
stringData:
identityId: <your-machine-identity-id>
@@ -77,16 +74,13 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalConnectionRef:
name: my-infisical-connection
- namespace: default
method: kubernetes
kubernetes:
identityIdRef:
name: kubernetes-credentials
- namespace: default
key: identityId
serviceAccountRef:
name: infisical-service-account
- namespace: default
---
# 6. Sync secrets into a native Kubernetes Secret
apiVersion: secrets.infisical.com/v1beta1
@@ -96,7 +90,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalAuthRef:
name: my-infisical-auth
- namespace: default
syncOptions:
refreshInterval: 60s
sources:
@@ -105,7 +98,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
secretPath: /
targets:
- name: managed-secret
- namespace: default
kind: Secret
creationPolicy: Owner
```
@@ -120,7 +112,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
kind: Secret
metadata:
name: universal-auth-credentials
- namespace: default
type: Opaque
stringData:
clientId: <your-identity-client-id>
@@ -142,16 +133,13 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalConnectionRef:
name: my-infisical-connection
- namespace: default
method: universal
universal:
clientIdRef:
name: universal-auth-credentials
- namespace: default
key: clientId
clientSecretRef:
name: universal-auth-credentials
- namespace: default
key: clientSecret
---
# 4. Sync secrets into a native Kubernetes Secret
@@ -162,7 +150,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalAuthRef:
name: my-infisical-auth
- namespace: default
syncOptions:
refreshInterval: 60s
sources:
@@ -171,7 +158,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
secretPath: /
targets:
- name: managed-secret
- namespace: default
kind: Secret
creationPolicy: Owner
```
@@ -186,7 +172,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
kind: Secret
metadata:
name: aws-iam-credentials
- namespace: default
type: Opaque
stringData:
identityId: <your-machine-identity-id>
@@ -207,12 +192,10 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalConnectionRef:
name: my-infisical-connection
- namespace: default
method: aws-iam
awsIam:
identityIdRef:
name: aws-iam-credentials
- namespace: default
key: identityId
---
# 4. Sync secrets into a native Kubernetes Secret
@@ -223,7 +206,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalAuthRef:
name: my-infisical-auth
- namespace: default
syncOptions:
refreshInterval: 60s
sources:
@@ -232,7 +214,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
secretPath: /
targets:
- name: managed-secret
- namespace: default
kind: Secret
creationPolicy: Owner
```
@@ -247,7 +228,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
kind: Secret
metadata:
name: azure-credentials
- namespace: default
type: Opaque
stringData:
identityId: <your-machine-identity-id>
@@ -268,12 +248,10 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalConnectionRef:
name: my-infisical-connection
- namespace: default
method: azure
azure:
identityIdRef:
name: azure-credentials
- namespace: default
key: identityId
---
# 4. Sync secrets into a native Kubernetes Secret
@@ -284,7 +262,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalAuthRef:
name: my-infisical-auth
- namespace: default
syncOptions:
refreshInterval: 60s
sources:
@@ -293,7 +270,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
secretPath: /
targets:
- name: managed-secret
- namespace: default
kind: Secret
creationPolicy: Owner
```
@@ -308,7 +284,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
kind: Secret
metadata:
name: gcp-id-token-credentials
- namespace: default
type: Opaque
stringData:
identityId: <your-machine-identity-id>
@@ -329,12 +304,10 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalConnectionRef:
name: my-infisical-connection
- namespace: default
method: gcp-id-token
gcpIdToken:
identityIdRef:
name: gcp-id-token-credentials
- namespace: default
key: identityId
---
# 4. Sync secrets into a native Kubernetes Secret
@@ -345,7 +318,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalAuthRef:
name: my-infisical-auth
- namespace: default
syncOptions:
refreshInterval: 60s
sources:
@@ -354,7 +326,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
secretPath: /
targets:
- name: managed-secret
- namespace: default
kind: Secret
creationPolicy: Owner
```
@@ -363,13 +334,16 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
<Accordion title="GCP IAM Auth">
Uses a GCP service account key file for authentication. Works both inside and outside GCP.
+ <Note>
+ The `serviceAccountKeyFilePath` must point to a file that exists inside the **operator pod**. You will need to create a Kubernetes Secret with your GCP service account key and mount it as a volume in the operator Deployment (or via Helm values). See the [GCP IAM Auth](/documentation/platform/identities/gcp-auth) guide for details.
+ </Note>
+
```yaml complete-gcp-iam-auth.yaml
# 1. Kubernetes secret holding the machine identity ID
apiVersion: v1
kind: Secret
metadata:
name: gcp-iam-credentials
- namespace: default
type: Opaque
stringData:
identityId: <your-machine-identity-id>
@@ -390,12 +364,10 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalConnectionRef:
name: my-infisical-connection
- namespace: default
method: gcp-iam
gcpIam:
identityIdRef:
name: gcp-iam-credentials
- namespace: default
key: identityId
serviceAccountKeyFilePath: /path/to/service-account-key.json
---
@@ -407,7 +379,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalAuthRef:
name: my-infisical-auth
- namespace: default
syncOptions:
refreshInterval: 60s
sources:
@@ -416,7 +387,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
secretPath: /
targets:
- name: managed-secret
- namespace: default
kind: Secret
creationPolicy: Owner
```
@@ -431,7 +401,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
kind: Secret
metadata:
name: ldap-credentials
- namespace: default
type: Opaque
stringData:
identityId: <your-machine-identity-id>
@@ -454,20 +423,16 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalConnectionRef:
name: my-infisical-connection
- namespace: default
method: ldap
ldap:
identityIdRef:
name: ldap-credentials
- namespace: default
key: identityId
usernameRef:
name: ldap-credentials
- namespace: default
key: username
passwordRef:
name: ldap-credentials
- namespace: default
key: password
---
# 4. Sync secrets into a native Kubernetes Secret
@@ -478,7 +443,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
spec:
infisicalAuthRef:
name: my-infisical-auth
- namespace: default
syncOptions:
refreshInterval: 60s
sources:
@@ -487,7 +451,6 @@ For more details on each resource, see the [InfisicalConnection](/integrations/p
secretPath: /
targets:
- name: managed-secret
- namespace: default
kind: Secret
creationPolicy: Owner
```