Posted On 02.10.2025

Wikijs | Postgresql | Transport Encryption

0 comments
confdroid.com >> blog >> Wikijs | Postgresql | Transport Encryption
apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>     name: wikijs-config<br>     namespace: wikijs<br>labels:<br>     app: wikijs<br>data:<br>      DB_HOST: "<db_host><br>     DB_PORT: "5432"<br>     DB_NAME: "<db_name>"<br>     DB_USER: "<db_user"<br>     <strong>DB_SSL: '{"auto":false,"rejectUnauthorized":false}'</strong>

and the reference:

 containers:
        - name: wikijs
          image: requarks/wiki:latest
          imagePullPolicy: IfNotPresent
          ports:
            - containerPort: 3000
          env:
            - name: DB_TYPE
              value: "postgres"
            - name: DB_HOST
              valueFrom:
                configMapKeyRef:
                  name: wikijs-config
                  key: DB_HOST
            - name: DB_PORT
              valueFrom:
                configMapKeyRef:
                  name: wikijs-config
                  key: DB_PORT
            - name: DB_NAME
              valueFrom:
                configMapKeyRef:
                  name: wikijs-config
                  key: DB_NAME
            - name: DB_USER
              valueFrom:
                configMapKeyRef:
                  name: wikijs-config
                  key: DB_USER
            - name: DB_SSL
              valueFrom:
                configMapKeyRef:
                  name: wikijs-config
                  key: DB_SSL

Turned out at the end this was not sufficient. The real solution is described in this blog post and is indeed fully tested. Another technical description can be found in my wiki.

Author Profile

12ww1160DevOps engineer & architect

One thought on “Wikijs | Postgresql | Transport Encryption”

  • Turns out there is more to the thing. The DB_SSL probably needs more settings. Running it like above does not throw an error, but when I remove the pg_hba entry for ‘host’ and only leave ‘hostssl’, the connection fails. Coming back to that again.

Leave a Reply

Your email address will not be published. Required fields are marked *

5 × four =

Related Post

Puppet with Foreman – Pilot

## Understanding Puppet Core with Foreman as ENC ### Introduction to Puppet DSL Puppet DSL…

Migrating my cloud to Kubernetes – Part III about storage facilities

Since a while I am on a quest to move my legacy cloud to Kubernetes…

Publishing Pipeline v1.1.0 – Dev.to Support and What Comes Next

With the initial version of the publishing pipeline in place, this release marks a small…
Social Media Auto Publish Powered By : XYZScripts.com