Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
use default namespace for examples
Matheus Nogueirab4a495ea6942
diff --git a/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdxindex f94359422c..86cb4c6c05 100644--- a/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx+++ b/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx@@ -34,6 +34,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: ServiceAccountmetadata: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@@ -48,12 +49,14 @@ For more details on each resource, see the [InfisicalConnection](/integrations/psubjects:- kind: ServiceAccountname: infisical-service-account+ namespace: default---# 3. Kubernetes secret holding the machine identity IDapiVersion: v1kind: Secretmetadata:name: kubernetes-credentials+ namespace: defaulttype: OpaquestringData:identityId: <your-machine-identity-id>@@ -63,6 +66,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalConnectionmetadata:name: my-infisical-connection+ namespace: defaultspec:address: https://app.infisical.com---@@ -71,25 +75,31 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalAuthmetadata:name: my-infisical-auth+ namespace: defaultspec:infisicalConnectionRef:name: my-infisical-connection+ namespace: defaultmethod: kuberneteskubernetes:identityIdRef:name: kubernetes-credentials+ namespace: defaultkey: identityIdserviceAccountRef:name: infisical-service-account+ namespace: default---# 6. Sync secrets into a native Kubernetes SecretapiVersion: secrets.infisical.com/v1beta1kind: InfisicalStaticSecretmetadata:name: my-static-secret+ namespace: defaultspec:infisicalAuthRef:name: my-infisical-auth+ namespace: defaultsyncOptions:refreshInterval: 60ssources:@@ -98,6 +108,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/psecretPath: /targets:- name: managed-secret+ namespace: defaultkind: SecretcreationPolicy: Owner```@@ -112,6 +123,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: Secretmetadata:name: universal-auth-credentials+ namespace: defaulttype: OpaquestringData:clientId: <your-identity-client-id>@@ -122,6 +134,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalConnectionmetadata:name: my-infisical-connection+ namespace: defaultspec:address: https://app.infisical.com---@@ -130,16 +143,20 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalAuthmetadata:name: my-infisical-auth+ namespace: defaultspec:infisicalConnectionRef:name: my-infisical-connection+ namespace: defaultmethod: universaluniversal:clientIdRef:name: universal-auth-credentials+ namespace: defaultkey: clientIdclientSecretRef:name: universal-auth-credentials+ namespace: defaultkey: clientSecret---# 4. Sync secrets into a native Kubernetes Secret@@ -147,9 +164,11 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalStaticSecretmetadata:name: my-static-secret+ namespace: defaultspec:infisicalAuthRef:name: my-infisical-auth+ namespace: defaultsyncOptions:refreshInterval: 60ssources:@@ -158,6 +177,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/psecretPath: /targets:- name: managed-secret+ namespace: defaultkind: SecretcreationPolicy: Owner```@@ -172,6 +192,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: Secretmetadata:name: aws-iam-credentials+ namespace: defaulttype: OpaquestringData:identityId: <your-machine-identity-id>@@ -181,6 +202,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalConnectionmetadata:name: my-infisical-connection+ namespace: defaultspec:address: https://app.infisical.com---@@ -189,13 +211,16 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalAuthmetadata:name: my-infisical-auth+ namespace: defaultspec:infisicalConnectionRef:name: my-infisical-connection+ namespace: defaultmethod: aws-iamawsIam:identityIdRef:name: aws-iam-credentials+ namespace: defaultkey: identityId---# 4. Sync secrets into a native Kubernetes Secret@@ -203,9 +228,11 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalStaticSecretmetadata:name: my-static-secret+ namespace: defaultspec:infisicalAuthRef:name: my-infisical-auth+ namespace: defaultsyncOptions:refreshInterval: 60ssources:@@ -214,6 +241,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/psecretPath: /targets:- name: managed-secret+ namespace: defaultkind: SecretcreationPolicy: Owner```@@ -228,6 +256,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: Secretmetadata:name: azure-credentials+ namespace: defaulttype: OpaquestringData:identityId: <your-machine-identity-id>@@ -237,6 +266,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalConnectionmetadata:name: my-infisical-connection+ namespace: defaultspec:address: https://app.infisical.com---@@ -245,13 +275,16 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalAuthmetadata:name: my-infisical-auth+ namespace: defaultspec:infisicalConnectionRef:name: my-infisical-connection+ namespace: defaultmethod: azureazure:identityIdRef:name: azure-credentials+ namespace: defaultkey: identityId---# 4. Sync secrets into a native Kubernetes Secret@@ -259,9 +292,11 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalStaticSecretmetadata:name: my-static-secret+ namespace: defaultspec:infisicalAuthRef:name: my-infisical-auth+ namespace: defaultsyncOptions:refreshInterval: 60ssources:@@ -270,6 +305,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/psecretPath: /targets:- name: managed-secret+ namespace: defaultkind: SecretcreationPolicy: Owner```@@ -284,6 +320,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: Secretmetadata:name: gcp-id-token-credentials+ namespace: defaulttype: OpaquestringData:identityId: <your-machine-identity-id>@@ -293,6 +330,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalConnectionmetadata:name: my-infisical-connection+ namespace: defaultspec:address: https://app.infisical.com---@@ -301,13 +339,16 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalAuthmetadata:name: my-infisical-auth+ namespace: defaultspec:infisicalConnectionRef:name: my-infisical-connection+ namespace: defaultmethod: gcp-id-tokengcpIdToken:identityIdRef:name: gcp-id-token-credentials+ namespace: defaultkey: identityId---# 4. Sync secrets into a native Kubernetes Secret@@ -315,9 +356,11 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalStaticSecretmetadata:name: my-static-secret+ namespace: defaultspec:infisicalAuthRef:name: my-infisical-auth+ namespace: defaultsyncOptions:refreshInterval: 60ssources:@@ -326,6 +369,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/psecretPath: /targets:- name: managed-secret+ namespace: defaultkind: SecretcreationPolicy: Owner```@@ -344,6 +388,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: Secretmetadata:name: gcp-iam-credentials+ namespace: defaulttype: OpaquestringData:identityId: <your-machine-identity-id>@@ -353,6 +398,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalConnectionmetadata:name: my-infisical-connection+ namespace: defaultspec:address: https://app.infisical.com---@@ -361,13 +407,16 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalAuthmetadata:name: my-infisical-auth+ namespace: defaultspec:infisicalConnectionRef:name: my-infisical-connection+ namespace: defaultmethod: gcp-iamgcpIam:identityIdRef:name: gcp-iam-credentials+ namespace: defaultkey: identityIdserviceAccountKeyFilePath: /path/to/service-account-key.json---@@ -376,9 +425,11 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalStaticSecretmetadata:name: my-static-secret+ namespace: defaultspec:infisicalAuthRef:name: my-infisical-auth+ namespace: defaultsyncOptions:refreshInterval: 60ssources:@@ -387,6 +438,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/psecretPath: /targets:- name: managed-secret+ namespace: defaultkind: SecretcreationPolicy: Owner```@@ -401,6 +453,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: Secretmetadata:name: ldap-credentials+ namespace: defaulttype: OpaquestringData:identityId: <your-machine-identity-id>@@ -412,6 +465,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalConnectionmetadata:name: my-infisical-connection+ namespace: defaultspec:address: https://app.infisical.com---@@ -420,19 +474,24 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalAuthmetadata:name: my-infisical-auth+ namespace: defaultspec:infisicalConnectionRef:name: my-infisical-connection+ namespace: defaultmethod: ldapldap:identityIdRef:name: ldap-credentials+ namespace: defaultkey: identityIdusernameRef:name: ldap-credentials+ namespace: defaultkey: usernamepasswordRef:name: ldap-credentials+ namespace: defaultkey: password---# 4. Sync secrets into a native Kubernetes Secret@@ -440,9 +499,11 @@ For more details on each resource, see the [InfisicalConnection](/integrations/pkind: InfisicalStaticSecretmetadata:name: my-static-secret+ namespace: defaultspec:infisicalAuthRef:name: my-infisical-auth+ namespace: defaultsyncOptions:refreshInterval: 60ssources:@@ -451,6 +512,7 @@ For more details on each resource, see the [InfisicalConnection](/integrations/psecretPath: /targets:- name: managed-secret+ namespace: defaultkind: SecretcreationPolicy: Owner```