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 *

3 + seven =

Related Post

Migrating my cloud to Kubernetes – Part 1: storage facility

Earlier today I wrote an introduction to my new blog series about migrating to Kubernetes.…

Migrating my cloud to Kubernetes – Part II about storage facilities

A few days ago I had posted part 1 of my quest to move my…

The TLS Journey: Fixing Wiki.js → PgBouncer → PostgreSQL (and learning Node.js SNI the hard way)

You know those bugs that look small at first — but then drag you, willingly,…
Social Media Auto Publish Powered By : XYZScripts.com