The PGWS_JWT_SECRET environment variable already supports values using the @filename format, which is very useful for passing in Docker secrets, e.g. PGWS_JWT_SECRET="@/run/secrets/my_jwt_secret_key".
Since the postgres connection URI often includes a password in plain text, it would be great if the connection URI could be specified in a secret managed by Docker, that could then be provided to postgres-websockets in a similar way, e.g. PGWS_DB_URI: "@/run/secrets/my_db_uri".
The
PGWS_JWT_SECRET
environment variable already supports values using the @filename format, which is very useful for passing in Docker secrets, e.g.PGWS_JWT_SECRET="@/run/secrets/my_jwt_secret_key"
.Since the postgres connection URI often includes a password in plain text, it would be great if the connection URI could be specified in a secret managed by Docker, that could then be provided to postgres-websockets in a similar way, e.g.
PGWS_DB_URI: "@/run/secrets/my_db_uri"
.