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
docs: better postgres SSL docs
Daniel Hougaard00b2a6bafc8d
diff --git a/docs/self-hosting/configuration/envars.mdx b/docs/self-hosting/configuration/envars.mdxindex 551c79184d..edebf1670c 100644--- a/docs/self-hosting/configuration/envars.mdx+++ b/docs/self-hosting/configuration/envars.mdx@@ -116,6 +116,27 @@ The platform utilizes Postgres to persist all of its data and Redis for caching<ParamField query="DB_ROOT_CERT" type="string" default="" optional>Configure the SSL certificate for securing a Postgres connection by first encoding it in base64.Use the following command to encode your certificate: `echo "<certificate>" | base64`++ Many cloud providers provide a CA certificate for their data regions that you can use to secure your connection with SSL.++ <AccordionGroup>+ <Accordion title="AWS RDS">+ If you're hosting your database on AWS RDS, you can use their publicly available CA certificate as the database root certificate.++ You can find all the available CA certificates for AWS RDS on the official [AWS RDS documentation](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/UsingWithRDS.SSL.html).++ As an example, if your RDS cluster is hosted in `us-east-1` _(US East, N. Virginia)_, you can use the following root certificate: https://truststore.pki.rds.amazonaws.com/us-east-1/us-east-1-bundle.pem.++ All the available CA certificates can be found in the AWS RDS documentation linked above.++ Remember to base64 encode the certificate before setting it as the `DB_ROOT_CERT` environment variable. `cat /path/to/certificate.pem | base64`.++ ```bash+ DB_ROOT_CERT=LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1 # .... (base64 encoded certificate)+ DB_CONNECTION_URI=<rds-endpoint>?sslmode=verify-ca # or verify-full depending on your security policies+ ```+ </Accordion>+ </AccordionGroup></ParamField><ParamField query="DB_READ_REPLICAS" type="string" default="" optional>diff --git a/docs/self-hosting/deployment-options/kubernetes-helm.mdx b/docs/self-hosting/deployment-options/kubernetes-helm.mdxindex f8a2a68642..f4ef67e1e4 100644--- a/docs/self-hosting/deployment-options/kubernetes-helm.mdx+++ b/docs/self-hosting/deployment-options/kubernetes-helm.mdx@@ -1,8 +1,10 @@---title: "Kubernetes via Helm Chart"description: "Learn how to use Helm chart to install Infisical on your Kubernetes cluster."----+---+**Prerequisites**+- You have extensive understanding of [Kubernetes](https://kubernetes.io/)- Installed [Helm package manager](https://helm.sh/) version v3.11.3 or greater- You have [kubectl](https://kubernetes.io/docs/reference/kubectl/kubectl/) installed and connected to your kubernetes cluster@@ -12,7 +14,7 @@ description: "Learn how to use Helm chart to install Infisical on your Kubernete```bashhelm repo add infisical-helm-charts 'https://dl.cloudsmith.io/public/infisical/helm-charts/helm/charts/'```- ```+ ```bashhelm repo update```</Step>@@ -61,6 +63,7 @@ description: "Learn how to use Helm chart to install Infisical on your Kubernete</Tab><Tab title="Production deployment">For production environments, we recommend using Cloud-based Platform as a Service (PaaS) solutions for PostgreSQL and Redis to ensure high availability. In on-premise setups, it's recommended to configure Redis and Postgres for high availability, either by using Bitnami charts or a custom configuration.+```yaml simple-values-example.yamlapiVersion: v1kind: Secret@@ -74,6 +77,10 @@ description: "Learn how to use Helm chart to install Infisical on your KuberneteDB_CONNECTION_URI: <>SITE_URL: <>```++ <Tip>+ If you need to configure the SSL certificate for your production Postgres instance, you can use the `DB_ROOT_CERT` environment variable. [Learn more about configuring the SSL certificate](/self-hosting/configuration/envars#aws-rds).+ </Tip></Tab></Tabs></Step>