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
apply claude comments
Matheus Nogueira1cfdf14a3b01
diff --git a/docs/integrations/platforms/kubernetes/infisical-auth-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-auth-crd.mdxindex 8d0ecc409c..881e7fcb75 100644--- a/docs/integrations/platforms/kubernetes/infisical-auth-crd.mdx+++ b/docs/integrations/platforms/kubernetes/infisical-auth-crd.mdx@@ -24,7 +24,7 @@ The operator caches authenticated credentials using the token's TTL (at 70% of t<Tabs><Tab title="Kubernetes Auth (Recommended)">-```yaml infisical-auth-kubernetes.yaml+```yaml infisical-auth.yamlapiVersion: secrets.infisical.com/v1beta1kind: InfisicalAuthmetadata:@@ -52,7 +52,7 @@ kubectl create secret generic kubernetes-credentials \```</Tab><Tab title="Universal Auth">-```yaml infisical-auth-universal.yaml+```yaml infisical-auth.yamlapiVersion: secrets.infisical.com/v1beta1kind: InfisicalAuthmetadata:@@ -82,7 +82,7 @@ kubectl create secret generic universal-auth-credentials \```</Tab><Tab title="AWS IAM Auth">-```yaml infisical-auth-aws.yaml+```yaml infisical-auth.yamlapiVersion: secrets.infisical.com/v1beta1kind: InfisicalAuthmetadata:@@ -123,11 +123,21 @@ The `InfisicalAuth` spec has the following top-level fields:| `infisicalConnectionRef` | NamespacedName | Yes | Reference to the `InfisicalConnection` resource that defines the Infisical host. || `method` | string | Yes | The authentication method to use. Must be one of: `universal`, `kubernetes`, `aws-iam`, `azure`, `gcp-id-token`, `gcp-iam`, `ldap`. |-In addition, you must provide the configuration object that matches your chosen `method` (e.g., `kubernetes`, `universal`, `awsIam`, etc.).+In addition, you must provide the configuration object that matches your chosen `method`.## Authentication methods-Only define **one** authentication method per resource. The method name in `spec.method` must match the configuration object you provide.+Only define **one** authentication method per resource. Note that `spec.method` uses kebab-case while the corresponding configuration field uses camelCase:++| `spec.method` | Configuration field |+| -------------- | ------------------- |+| `kubernetes` | `kubernetes` |+| `universal` | `universal` |+| `aws-iam` | `awsIam` |+| `azure` | `azure` |+| `gcp-id-token` | `gcpIdToken` |+| `gcp-iam` | `gcpIam` |+| `ldap` | `ldap` |<Accordion title="kubernetes">Authenticates using a Kubernetes service account token. This is the recommended method when running inside a Kubernetes cluster. The operator automatically creates short-lived service account tokens (10 minutes) for authentication.@@ -177,7 +187,7 @@ Only define **one** authentication method per resource. The method name in `spec```</Accordion>-<Accordion title="awsIam">+<Accordion title="aws-iam">Authenticates using AWS IAM. Can only be used within AWS environments (EC2, Lambda, EKS).[Read more about AWS IAM Auth](/documentation/platform/identities/aws-auth).@@ -214,7 +224,7 @@ Only define **one** authentication method per resource. The method name in `spec```</Accordion>-<Accordion title="gcpIdToken">+<Accordion title="gcp-id-token">Authenticates using GCP ID tokens. Can only be used within GCP environments.[Read more about GCP Auth](/documentation/platform/identities/gcp-auth).@@ -232,7 +242,7 @@ Only define **one** authentication method per resource. The method name in `spec```</Accordion>-<Accordion title="gcpIam">+<Accordion title="gcp-iam">Authenticates using GCP IAM with a service account key file. Works both within and outside GCP environments.[Read more about GCP Auth](/documentation/platform/identities/gcp-auth).diff --git a/docs/integrations/platforms/kubernetes/infisical-push-secret-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-push-secret-crd.mdxindex b2b49a749d..95d03682e7 100644--- a/docs/integrations/platforms/kubernetes/infisical-push-secret-crd.mdx+++ b/docs/integrations/platforms/kubernetes/infisical-push-secret-crd.mdx@@ -4,7 +4,7 @@ title: "Using the InfisicalPushSecret CRD"description: "Learn how to use the InfisicalPushSecret CRD to push and manage secrets in Infisical."----import KubernetesOperatorTemplating from "/snippets/kubernetes-operator-templating.mdx";+import KubernetesOperatorTemplatingHelpers from "/snippets/kubernetes-operator-templating-helpers.mdx";<Warning>The `InfisicalPushSecret` CRD currently uses the **v1alpha1** API version. A v1beta1 version using the new@@ -528,7 +528,7 @@ Using Go templates, you can format, combine, and create new key-value pairs of sTo help transform your config map data further, the operator provides a set of built-in functions that you can use in your templates.- <KubernetesOperatorTemplating />+ <KubernetesOperatorTemplatingHelpers /></Accordion>## Using generators to push secretsdiff --git a/docs/integrations/platforms/kubernetes/infisical-secret-crd.mdx b/docs/integrations/platforms/kubernetes/infisical-secret-crd.mdxindex 7a0392d1b8..3e3677168f 100644--- a/docs/integrations/platforms/kubernetes/infisical-secret-crd.mdx+++ b/docs/integrations/platforms/kubernetes/infisical-secret-crd.mdx@@ -4,7 +4,7 @@ title: "Using the InfisicalSecret CRD"description: "Learn how to use the InfisicalSecret CRD to fetch secrets from Infisical and store them as native Kubernetes secret resource"----import KubernetesOperatorTemplating from "/snippets/kubernetes-operator-templating.mdx";+import KubernetesOperatorTemplatingHelpers from "/snippets/kubernetes-operator-templating-helpers.mdx";<Warning>The `InfisicalSecret` CRD (v1alpha1) is deprecated and will be removed in a future release.@@ -1004,7 +1004,7 @@ API_URL = "https://api.acme.us-east-1.com" # Existing secret overridden by templTo help transform your secrets further, the operator provides a set of built-in functions that you can use in your templates.-<KubernetesOperatorTemplating />+<KubernetesOperatorTemplatingHelpers /></Accordion>@@ -1117,7 +1117,7 @@ API_URL = "https://api.example.com.us-east-1.com" # Existing secret overridden bTo help transform your config map data further, the operator provides a set of built-in functions that you can use in your templates.-<KubernetesOperatorTemplating />+<KubernetesOperatorTemplatingHelpers /></Accordion>diff --git a/docs/integrations/platforms/kubernetes/overview.mdx b/docs/integrations/platforms/kubernetes/overview.mdxindex 21e264a6de..0ebed5a373 100644--- a/docs/integrations/platforms/kubernetes/overview.mdx+++ b/docs/integrations/platforms/kubernetes/overview.mdx@@ -486,7 +486,7 @@ All operator CRDs use the `status.conditions` field to report their current statMessage: Secrets synced successfully.Reason: OKStatus: True- Type: secrets.infisical.com/LastReconcileSuccessful+ Type: secrets.infisical.com/LastReconcileStatusEvents: <none>```diff --git a/docs/snippets/kubernetes-operator-templating-helpers.mdx b/docs/snippets/kubernetes-operator-templating-helpers.mdxnew file mode 100644index 0000000000..671cfb1297--- /dev/null+++ b/docs/snippets/kubernetes-operator-templating-helpers.mdx@@ -0,0 +1,285 @@+### Available helper functions++The Infisical Secrets Operator exposes a wide range of helper functions to make it easier to work with secrets in Kubernetes.++<AccordionGroup>++<Accordion title="encodeBase64">+ Encodes a string to a base64-encoded string (e.g. `hello world` becomes `aGVsbG8gd29ybGQ=`).++ **Signature**+ ```go+ encodeBase64(plainString string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ ENCODED_SECRET: "{{ .MY_SECRET.Value | encodeBase64 }}"+ ```+</Accordion>++<Accordion title="decodeBase64ToBytes">+ Decodes a base64-encoded string back to its original value (e.g. `aGVsbG8gd29ybGQ=` becomes `hello world`).++ **Signature**+ ```go+ decodeBase64ToBytes(encodedString string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ DECODED_SECRET: "{{ .MY_BASE64_SECRET.Value | decodeBase64ToBytes }}"+ ```+</Accordion>++<Accordion title="pkcs12key">+ Extracts all private keys from a PKCS#12 archive and returns them as PKCS#8 PEM-encoded blocks (`-----BEGIN PRIVATE KEY-----...`).+ The archive must not be password-protected — use `pkcs12keyPass` for password-protected archives.++ **Signature**+ ```go+ pkcs12key(input string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ tls.key: "{{ .TLS_CERT_PKCS12.Value | pkcs12key }}"+ ```+</Accordion>++<Accordion title="pkcs12keyPass">+ Same as `pkcs12key`, but uses the provided password to decrypt the PKCS#12 archive.++ **Signature**+ ```go+ pkcs12keyPass(password string, input string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ tls.key: '{{ pkcs12keyPass "my-password" .TLS_CERT_PKCS12.Value }}'+ ```+</Accordion>++<Accordion title="pkcs12cert">+ Extracts all certificates from a PKCS#12 archive and returns them as an ordered PEM chain (`-----BEGIN CERTIFICATE-----...`).+ Sort order: **leaf → intermediate(s) → root**. If disjunct or multiple leaf certs are provided, they are returned as-is.+ The archive must not be password-protected — use `pkcs12certPass` for password-protected archives.++ **Signature**+ ```go+ pkcs12cert(input string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ tls.crt: "{{ .TLS_CERT_PKCS12.Value | pkcs12cert }}"+ ```+</Accordion>++<Accordion title="pkcs12certPass">+ Same as `pkcs12cert`, but uses the provided password to decrypt the PKCS#12 archive.++ **Signature**+ ```go+ pkcs12certPass(password string, input string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ tls.crt: '{{ pkcs12certPass "my-password" .TLS_CERT_PKCS12.Value }}'+ ```+</Accordion>++<Accordion title="pemToPkcs12">+ Takes a PEM-encoded certificate and private key and creates a base64-encoded PKCS#12 archive.+ The output is not password-protected — use `pemToPkcs12Pass` to set a password.++ **Signature**+ ```go+ pemToPkcs12(cert string, key string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ keystore.p12: '{{ pemToPkcs12 .TLS_CERT.Value .TLS_KEY.Value }}'+ ```+</Accordion>++<Accordion title="pemToPkcs12Pass">+ Same as `pemToPkcs12`, but encrypts the PKCS#12 archive with the provided password.++ **Signature**+ ```go+ pemToPkcs12Pass(cert string, key string, password string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ keystore.p12: '{{ pemToPkcs12Pass .TLS_CERT.Value .TLS_KEY.Value "my-password" }}'+ ```+</Accordion>++<Accordion title="fullPemToPkcs12">+ Takes a full PEM-encoded certificate chain (leaf + intermediates + root) and a private key, and creates a base64-encoded PKCS#12 archive that includes the entire chain.+ The output is not password-protected — use `fullPemToPkcs12Pass` to set a password.++ **Signature**+ ```go+ fullPemToPkcs12(cert string, key string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ keystore.p12: '{{ fullPemToPkcs12 .TLS_FULL_CHAIN.Value .TLS_KEY.Value }}'+ ```+</Accordion>++<Accordion title="fullPemToPkcs12Pass">+ Same as `fullPemToPkcs12`, but encrypts the PKCS#12 archive with the provided password.++ **Signature**+ ```go+ fullPemToPkcs12Pass(cert string, key string, password string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ keystore.p12: '{{ fullPemToPkcs12Pass .TLS_FULL_CHAIN.Value .TLS_KEY.Value "my-password" }}'+ ```+</Accordion>++<Accordion title="filterPEM">+ Filters PEM blocks by type from a bundle containing multiple PEM blocks (e.g. extract only `CERTIFICATE` or `PRIVATE KEY` blocks).+ Common PEM types: `CERTIFICATE`, `PRIVATE KEY`, `PUBLIC KEY`, `RSA PRIVATE KEY`.++ **Signature**+ ```go+ filterPEM(pemType string, input string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ ca.crt: '{{ filterPEM "CERTIFICATE" .TLS_BUNDLE.Value }}'+ tls.key: '{{ filterPEM "PRIVATE KEY" .TLS_BUNDLE.Value }}'+ ```+</Accordion>++<Accordion title="filterCertChain">+ Filters PEM certificates by their position in a certificate chain. The chain is automatically ordered before filtering.+ Accepted types: `leaf` (end-entity certificate), `intermediate` (all intermediate CA certificates), `root` (root CA certificate).+ Returns an empty string if the requested type is not present in the chain.++ **Signature**+ ```go+ filterCertChain(certType string, input string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ tls.crt: '{{ filterCertChain "leaf" .TLS_CHAIN.Value }}'+ ca.crt: '{{ filterCertChain "root" .TLS_CHAIN.Value }}'+ intermediate.crt: '{{ filterCertChain "intermediate" .TLS_CHAIN.Value }}'+ ```+</Accordion>++<Accordion title="jwkPublicKeyPem">+ Takes a JSON-serialized JWK and returns a PEM block of type `PUBLIC KEY` containing the public key.+ Uses [`x509.MarshalPKIXPublicKey`](https://pkg.go.dev/crypto/x509#MarshalPKIXPublicKey) internally.++ **Signature**+ ```go+ jwkPublicKeyPem(jwkJson string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ public.pem: "{{ .MY_JWK.Value | jwkPublicKeyPem }}"+ ```+</Accordion>++<Accordion title="jwkPrivateKeyPem">+ Takes a JSON-serialized JWK and returns a PEM block of type `PRIVATE KEY` containing the private key.+ Uses [`x509.MarshalPKCS8PrivateKey`](https://pkg.go.dev/crypto/x509#MarshalPKCS8PrivateKey) internally.++ **Signature**+ ```go+ jwkPrivateKeyPem(jwkJson string) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ private.pem: "{{ .MY_JWK.Value | jwkPrivateKeyPem }}"+ ```+</Accordion>++<Accordion title="toYaml">+ Marshals a value to a YAML string. Returns an empty string on marshal error.++ **Signature**+ ```go+ toYaml(v any) string+ ```++ **Template usage**+ ```yaml+ template:+ data:+ config.yaml: "{{ .APP_CONFIG.Value | fromYaml | toYaml }}"+ ```+</Accordion>++<Accordion title="fromYaml">+ Parses a YAML string into a `map[string]any`, useful for extracting individual fields from a YAML-formatted secret (e.g. `(fromYaml .DB_CONFIG.Value).host` returns the `host` field).++ **Signature**+ ```go+ fromYaml(str string) map[string]any+ ```++ **Template usage**+ ```yaml+ template:+ data:+ DB_HOST: '{{ (fromYaml .DB_CONFIG.Value).host }}'+ DB_PORT: '{{ (fromYaml .DB_CONFIG.Value).port }}'+ ```+</Accordion>++</AccordionGroup>++### Sprig functions++The Infisical Secrets Operator integrates with the [Sprig library](https://github.com/Masterminds/sprig) to provide additional helper functions.++<Note>+ We've removed `expandEnv` and `env` from the supported functions for security reasons.+</Note>diff --git a/docs/snippets/kubernetes-operator-templating.mdx b/docs/snippets/kubernetes-operator-templating.mdxindex 117ee95b1c..2c4f02f845 100644--- a/docs/snippets/kubernetes-operator-templating.mdx+++ b/docs/snippets/kubernetes-operator-templating.mdx@@ -1,3 +1,5 @@+import KubernetesOperatorTemplatingHelpers from "/snippets/kubernetes-operator-templating-helpers.mdx";+## TemplatingUse Go templates to transform secrets before storing them in the managed Kubernetes resource. When a template is set, only the keys defined in `template.data` are included in the output.@@ -25,288 +27,4 @@ targets:REDIS_URL: "redis://{{ .REDIS_HOST.Value }}:6379"```-### Available helper functions--The Infisical Secrets Operator exposes a wide range of helper functions to make it easier to work with secrets in Kubernetes.--<AccordionGroup>--<Accordion title="encodeBase64">- Encodes a string to a base64-encoded string (e.g. `hello world` becomes `aGVsbG8gd29ybGQ=`).-- **Signature**- ```go- encodeBase64(plainString string) string- ```-- **Template usage**- ```yaml- template:- data:- ENCODED_SECRET: "{{ .MY_SECRET.Value | encodeBase64 }}"- ```-</Accordion>--<Accordion title="decodeBase64ToBytes">- Decodes a base64-encoded string back to its original value (e.g. `aGVsbG8gd29ybGQ=` becomes `hello world`).-- **Signature**- ```go- decodeBase64ToBytes(encodedString string) string- ```-- **Template usage**- ```yaml- template:- data:- DECODED_SECRET: "{{ .MY_BASE64_SECRET.Value | decodeBase64ToBytes }}"- ```-</Accordion>--<Accordion title="pkcs12key">- Extracts all private keys from a PKCS#12 archive and returns them as PKCS#8 PEM-encoded blocks (`-----BEGIN PRIVATE KEY-----...`).- The archive must not be password-protected — use `pkcs12keyPass` for password-protected archives.-- **Signature**- ```go- pkcs12key(input string) string- ```-- **Template usage**- ```yaml- template:- data:- tls.key: "{{ .TLS_CERT_PKCS12.Value | pkcs12key }}"- ```-</Accordion>--<Accordion title="pkcs12keyPass">- Same as `pkcs12key`, but uses the provided password to decrypt the PKCS#12 archive.-- **Signature**- ```go- pkcs12keyPass(password string, input string) string- ```-- **Template usage**- ```yaml- template:- data:- tls.key: '{{ pkcs12keyPass "my-password" .TLS_CERT_PKCS12.Value }}'- ```-</Accordion>--<Accordion title="pkcs12cert">- Extracts all certificates from a PKCS#12 archive and returns them as an ordered PEM chain (`-----BEGIN CERTIFICATE-----...`).- Sort order: **leaf → intermediate(s) → root**. If disjunct or multiple leaf certs are provided, they are returned as-is.- The archive must not be password-protected — use `pkcs12certPass` for password-protected archives.-- **Signature**- ```go- pkcs12cert(input string) string- ```-- **Template usage**- ```yaml- template:- data:- tls.crt: "{{ .TLS_CERT_PKCS12.Value | pkcs12cert }}"- ```-</Accordion>--<Accordion title="pkcs12certPass">- Same as `pkcs12cert`, but uses the provided password to decrypt the PKCS#12 archive.-- **Signature**- ```go- pkcs12certPass(password string, input string) string- ```-- **Template usage**- ```yaml- template:- data:- tls.crt: '{{ pkcs12certPass "my-password" .TLS_CERT_PKCS12.Value }}'- ```-</Accordion>--<Accordion title="pemToPkcs12">- Takes a PEM-encoded certificate and private key and creates a base64-encoded PKCS#12 archive.- The output is not password-protected — use `pemToPkcs12Pass` to set a password.-- **Signature**- ```go- pemToPkcs12(cert string, key string) string- ```-- **Template usage**- ```yaml- template:- data:- keystore.p12: '{{ pemToPkcs12 .TLS_CERT.Value .TLS_KEY.Value }}'- ```-</Accordion>--<Accordion title="pemToPkcs12Pass">- Same as `pemToPkcs12`, but encrypts the PKCS#12 archive with the provided password.-- **Signature**- ```go- pemToPkcs12Pass(cert string, key string, password string) string- ```-- **Template usage**- ```yaml- template:- data:- keystore.p12: '{{ pemToPkcs12Pass .TLS_CERT.Value .TLS_KEY.Value "my-password" }}'- ```-</Accordion>--<Accordion title="fullPemToPkcs12">- Takes a full PEM-encoded certificate chain (leaf + intermediates + root) and a private key, and creates a base64-encoded PKCS#12 archive that includes the entire chain.- The output is not password-protected — use `fullPemToPkcs12Pass` to set a password.-- **Signature**- ```go- fullPemToPkcs12(cert string, key string) string- ```-- **Template usage**- ```yaml- template:- data:- keystore.p12: '{{ fullPemToPkcs12 .TLS_FULL_CHAIN.Value .TLS_KEY.Value }}'- ```-</Accordion>--<Accordion title="fullPemToPkcs12Pass">- Same as `fullPemToPkcs12`, but encrypts the PKCS#12 archive with the provided password.-- **Signature**- ```go- fullPemToPkcs12Pass(cert string, key string, password string) string- ```-- **Template usage**- ```yaml- template:- data:- keystore.p12: '{{ fullPemToPkcs12Pass .TLS_FULL_CHAIN.Value .TLS_KEY.Value "my-password" }}'- ```-</Accordion>--<Accordion title="filterPEM">- Filters PEM blocks by type from a bundle containing multiple PEM blocks (e.g. extract only `CERTIFICATE` or `PRIVATE KEY` blocks).- Common PEM types: `CERTIFICATE`, `PRIVATE KEY`, `PUBLIC KEY`, `RSA PRIVATE KEY`.-- **Signature**- ```go- filterPEM(pemType string, input string) string- ```-- **Template usage**- ```yaml- template:- data:- ca.crt: '{{ filterPEM "CERTIFICATE" .TLS_BUNDLE.Value }}'- tls.key: '{{ filterPEM "PRIVATE KEY" .TLS_BUNDLE.Value }}'- ```-</Accordion>--<Accordion title="filterCertChain">- Filters PEM certificates by their position in a certificate chain. The chain is automatically ordered before filtering.- Accepted types: `leaf` (end-entity certificate), `intermediate` (all intermediate CA certificates), `root` (root CA certificate).- Returns an empty string if the requested type is not present in the chain.-- **Signature**- ```go- filterCertChain(certType string, input string) string- ```-- **Template usage**- ```yaml- template:- data:- tls.crt: '{{ filterCertChain "leaf" .TLS_CHAIN.Value }}'- ca.crt: '{{ filterCertChain "root" .TLS_CHAIN.Value }}'- intermediate.crt: '{{ filterCertChain "intermediate" .TLS_CHAIN.Value }}'- ```-</Accordion>--<Accordion title="jwkPublicKeyPem">- Takes a JSON-serialized JWK and returns a PEM block of type `PUBLIC KEY` containing the public key.- Uses [`x509.MarshalPKIXPublicKey`](https://pkg.go.dev/crypto/x509#MarshalPKIXPublicKey) internally.-- **Signature**- ```go- jwkPublicKeyPem(jwkJson string) string- ```-- **Template usage**- ```yaml- template:- data:- public.pem: "{{ .MY_JWK.Value | jwkPublicKeyPem }}"- ```-</Accordion>--<Accordion title="jwkPrivateKeyPem">- Takes a JSON-serialized JWK and returns a PEM block of type `PRIVATE KEY` containing the private key.- Uses [`x509.MarshalPKCS8PrivateKey`](https://pkg.go.dev/crypto/x509#MarshalPKCS8PrivateKey) internally.-- **Signature**- ```go- jwkPrivateKeyPem(jwkJson string) string- ```-- **Template usage**- ```yaml- template:- data:- private.pem: "{{ .MY_JWK.Value | jwkPrivateKeyPem }}"- ```-</Accordion>--<Accordion title="toYaml">- Marshals a value to a YAML string. Returns an empty string on marshal error.-- **Signature**- ```go- toYaml(v any) string- ```-- **Template usage**- ```yaml- template:- data:- config.yaml: "{{ .APP_CONFIG.Value | fromYaml | toYaml }}"- ```-</Accordion>--<Accordion title="fromYaml">- Parses a YAML string into a `map[string]any`, useful for extracting individual fields from a YAML-formatted secret (e.g. `(fromYaml .DB_CONFIG.Value).host` returns the `host` field).-- **Signature**- ```go- fromYaml(str string) map[string]any- ```-- **Template usage**- ```yaml- template:- data:- DB_HOST: '{{ (fromYaml .DB_CONFIG.Value).host }}'- DB_PORT: '{{ (fromYaml .DB_CONFIG.Value).port }}'- ```-</Accordion>--</AccordionGroup>--### Sprig functions--The Infisical Secrets Operator integrates with the [Sprig library](https://github.com/Masterminds/sprig) to provide additional helper functions.--<Note>- We've removed `expandEnv` and `env` from the supported functions for security reasons.-</Note>+<KubernetesOperatorTemplatingHelpers />