Skip to content

NIPAPD to postgresql TLS #1432

@JunoD-G

Description

@JunoD-G

When configuring NIPAPD for remote postgresql, and DB_SSLMODE=require, where or what configuration parameters need to be set that specify the use of certificate, key and ca-certificate file (paths)?

Steps to reproduce

  1. Create a set of TLS certificate, key and ca-certificate
  2. Create a postgresql container with TLS enable
  3. Use the following env file for the docker version of nipapd
#~/nipap.env
LISTEN_ADDRESS=0.0.0.0
LISTEN_PORT=1337
SYSLOG=true
DB_HOST=pgsql._redacted_
DB_PORT=35432
DB_NAME=nipap
DB_USERNAME=nipap
DB_PASSWORD=_redacted_
DB_SSLMODE=require
NIPAPD_USERNAME=nipapd
NIPAPD_PASSWORD=_redacted_
NIPAPD_HOST=nipapd
NIPAPD_PORT=1337
WWW_USERNAME=nipap
WWW_PASSWORD=_redacted_
  1. Run the container
docker run --rm --name nipapd-test --env-file ~/nipap.env --network=test nipap/nipapd:latest

The output is

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions