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
improvements
Daniel16c84caca299
diff --git a/docs/integrations/platforms/kubernetes/infisical-auth-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-auth-crd.mdxindex 34b027135d..d86ec82782 100644--- a/docs/integrations/platforms/kubernetes/infisical-auth-crd.mdx+++ b/docs/integrations/platforms/kubernetes/infisical-auth-crd.mdx@@ -28,8 +28,6 @@ Authenticates using a Kubernetes service account token. This is the recommended[Read more about Kubernetes Auth](/documentation/platform/identities/kubernetes-auth).-<KubernetesAuthOperatorSetup apiVersion="v1beta1"/>-| Field | Required | Description || ------------------------------ | -------- | --------------------------------------------------------- || `identityIdRef` | Yes | Reference to the secret containing the machine identity ID. |@@ -37,6 +35,9 @@ Authenticates using a Kubernetes service account token. This is the recommended| `serviceAccountRef.namespace` | Yes | Namespace of the service account. || `serviceAccountTokenAudiences` | No | Custom audiences for the generated service account token. |+<KubernetesAuthOperatorSetup apiVersion="v1beta1"/>++```yaml infisical-auth.yamlapiVersion: secrets.infisical.com/v1beta1kind: InfisicalAuth@@ -62,17 +63,48 @@ The referenced Kubernetes secret must contain the machine identity ID:```bashkubectl create secret generic kubernetes-credentials \--from-literal=identityId="<your-machine-identity-id>"+```++Apply the resource:++```bash+kubectl apply -f infisical-auth.yaml```</Accordion><Accordion title="Universal Auth">-Authenticates using a client ID and client secret. Works anywhere, not tied to any cloud provider.+ Authenticates using a client ID and client secret. Works anywhere, not tied to any cloud provider.++ [Read more about Universal Auth](/documentation/platform/identities/universal-auth).++ | Field | Required | Description |+ | ----------------- | -------- | ----------------------------------------------------- |+ | `clientIdRef` | Yes | Reference to the secret containing the universal auth client ID. |+ | `clientSecretRef` | Yes | Reference to the secret containing the universal auth client secret. |+++ <Steps>+ <Step title="Create a machine identity">+ You need to create a machine identity, and give it access to the project(s) you want to interact with. You can [read more about machine identities here](/documentation/platform/identities/universal-auth).+ </Step>+ <Step title="Create Kubernetes secret containing machine identity credentials">+ Once you have created your machine identity and added it to your project(s), you will need to create a Kubernetes secret containing the identity credentials.+ To quickly create a Kubernetes secret containing the identity credentials, you can run the command below.++ Make sure you replace `<your-identity-client-id>` with the identity client ID and `<your-identity-client-secret>` with the identity client secret.++ ``` bash+ kubectl create secret generic universal-auth-credentials \+ --from-literal=clientId="<your-identity-client-id>" \+ --from-literal=clientSecret="<your-identity-client-secret>"+ ```+ </Step>++ <Step title="Add reference for the Kubernetes secret containing the identity credentials">+ Once the secret is created, add the `secretName` and `secretNamespace` of the secret that was just created under `universal.clientIdRef` and `universal.clientSecretRef` fields in the InfisicalAuth resource. See the full example below for reference.+ </Step>+ </Steps>-[Read more about Universal Auth](/documentation/platform/identities/universal-auth).-| Field | Required | Description |-| ----------------- | -------- | ----------------------------------------------------- |-| `clientIdRef` | Yes | Reference to the secret containing the client ID. |-| `clientSecretRef` | Yes | Reference to the secret containing the client secret. |```yaml infisical-auth.yamlapiVersion: secrets.infisical.com/v1beta1@@ -95,12 +127,10 @@ spec:key: clientSecret```-The referenced Kubernetes secret must contain `clientId` and `clientSecret` keys:+Apply the resource:```bash-kubectl create secret generic universal-auth-credentials \- --from-literal=clientId="<your-client-id>" \- --from-literal=clientSecret="<your-client-secret>"+kubectl apply -f infisical-auth.yaml```</Accordion><Accordion title="AWS IAM Auth">@@ -134,6 +164,12 @@ The referenced Kubernetes secret must contain the machine identity ID:```bashkubectl create secret generic aws-iam-credentials \--from-literal=identityId="<your-machine-identity-id>"+```++Apply the resource:++```bash+kubectl apply -f infisical-auth.yaml```</Accordion><Accordion title="Azure Auth">@@ -168,6 +204,12 @@ The referenced Kubernetes secret must contain the machine identity ID:```bashkubectl create secret generic azure-credentials \--from-literal=identityId="<your-machine-identity-id>"+```++Apply the resource:++```bash+kubectl apply -f infisical-auth.yaml```</Accordion><Accordion title="GCP ID Token Auth">@@ -201,6 +243,12 @@ The referenced Kubernetes secret must contain the machine identity ID:```bashkubectl create secret generic gcp-id-token-credentials \--from-literal=identityId="<your-machine-identity-id>"+```++Apply the resource:++```bash+kubectl apply -f infisical-auth.yaml```</Accordion><Accordion title="GCP IAM Auth">@@ -236,6 +284,12 @@ The referenced Kubernetes secret must contain the machine identity ID:```bashkubectl create secret generic gcp-iam-credentials \--from-literal=identityId="<your-machine-identity-id>"+```++Apply the resource:++```bash+kubectl apply -f infisical-auth.yaml```</Accordion><Accordion title="LDAP Auth">@@ -282,14 +336,14 @@ kubectl create secret generic ldap-credentials \--from-literal=username="<your-ldap-username>" \--from-literal=password="<your-ldap-password>"```- </Accordion>-</AccordionGroup>Apply the resource:```bashkubectl apply -f infisical-auth.yaml```+ </Accordion>+</AccordionGroup>## Troubleshootingdiff --git a/docs/integrations/platforms/kubernetes/infisical-connection-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-connection-crd.mdxindex 830f485204..69001eb1dc 100644--- a/docs/integrations/platforms/kubernetes/infisical-connection-crd.mdx+++ b/docs/integrations/platforms/kubernetes/infisical-connection-crd.mdx@@ -21,13 +21,12 @@ kind: InfisicalConnectionmetadata:name: my-infisical-connectionspec:- address: https://infisical.domain.com- # If you are using cloud instances, this is not necessary- tls:- caCertificate:- name: secret-containing-ca-certificate- namespace: default- key: ca.crt+ address: https://app.infisical.com+ # tls:+ # caCertificate:+ # name: secret-containing-ca-certificate+ # key: ca.crt+ # namespace: default```Apply the resource:diff --git a/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdxindex 57a7a4bd6d..f28e246621 100644--- a/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx+++ b/docs/integrations/platforms/kubernetes/infisical-static-secret-crd.mdx@@ -285,62 +285,66 @@ The managed Kubernetes Secret or ConfigMap works like any other native resource.<Tabs><Tab title="Secret">- <Accordion title="envFrom">- ```yaml- envFrom:- - secretRef:- name: managed-secret- ```- </Accordion>-- <Accordion title="env">- ```yaml- env:- - name: SECRET_NAME- valueFrom:- secretKeyRef:+ <AccordionGroup>+ <Accordion title="envFrom">+ ```yaml+ envFrom:+ - secretRef:name: managed-secret- key: SOME_SECRET_KEY- ```- </Accordion>+ ```+ </Accordion>- <Accordion title="volumes">- ```yaml- volumes:- - name: secrets-volume- secret:- secretName: managed-secret- ```- </Accordion>+ <Accordion title="env">+ ```yaml+ env:+ - name: SECRET_NAME+ valueFrom:+ secretKeyRef:+ name: managed-secret+ key: SOME_SECRET_KEY+ ```+ </Accordion>++ <Accordion title="volumes">+ ```yaml+ volumes:+ - name: secrets-volume+ secret:+ secretName: managed-secret+ ```+ </Accordion>+ </AccordionGroup></Tab><Tab title="ConfigMap">- <Accordion title="envFrom">- ```yaml- envFrom:- - configMapRef:- name: managed-configmap- ```- </Accordion>-- <Accordion title="env">- ```yaml- env:- - name: CONFIG_VALUE- valueFrom:- configMapKeyRef:+ <AccordionGroup>+ <Accordion title="envFrom">+ ```yaml+ envFrom:+ - configMapRef:name: managed-configmap- key: SOME_CONFIG_KEY- ```- </Accordion>+ ```+ </Accordion>- <Accordion title="volumes">- ```yaml- volumes:- - name: config-volume- configMap:- name: managed-configmap- ```- </Accordion>+ <Accordion title="env">+ ```yaml+ env:+ - name: CONFIG_VALUE+ valueFrom:+ configMapKeyRef:+ name: managed-configmap+ key: SOME_CONFIG_KEY+ ```+ </Accordion>++ <Accordion title="volumes">+ ```yaml+ volumes:+ - name: config-volume+ configMap:+ name: managed-configmap+ ```+ </Accordion>+ </AccordionGroup></Tab></Tabs>