Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
/ sda-db Public archive
forked from EGA-archive/LocalEGA-db

NeIC SDA database definitions and docker image

License

Notifications You must be signed in to change notification settings

neicnordic/sda-db

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archival notice

⚠️ This repository is no longer maintained. The code has been integrated and it is further developed at: https://github.com/neicnordic/sensitive-data-archive

NeIC SDA database definitions and docker image

We use Postgres 13 and Alpine 3.14.

Security is hardened:

  • We do not use 'trust' even for local connections
  • Requiring password authentication for all
  • Using scram-sha-256 is stronger than md5
  • Enforcing TLS communication
  • Enforcing client-certificate verification

Configuration

There are 2 users (lega_in and lega_out), and 2 schemas (local_ega and local_ega_download). A special one is included for EBI to access the data through local_ega_ebi.

note, a data volume is expected to be mounted at $PGDATA

The following environment variables can be used to configure the database:

Variable Description Default value
PGDATA Mountpoint for the writable volume /var/lib/postgresql/data
DB_LEGA_IN_PASSWORD lega_in's password -
DB_LEGA_OUT_PASSWORD lega_out's password -

TLS support

Variable Description Default value
PG_SERVER_CERT Public Certificate in PEM format /var/lib/postgresql/certs/pg.cert
PG_SERVER_KEY Private Key in PEM format /var/lib/postgresql/certs/pg.key
PG_CA Public CA Certificate in PEM format /var/lib/postgresql/certs/CA.cert
PG_VERIFY_PEER Enforce client verification verify-ca
NOTLS Disable TLS for the Postgres server -

Client verification is enforced if PG_VERIFY_PEER is set to verify-ca or verify-full, to disable client verification set PG_VERIFY_PEER to no-verify.

If the variable NOTLS exists TLS will be disabled, not recommended for production use.

About

NeIC SDA database definitions and docker image

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PLpgSQL 68.8%
  • Go 22.7%
  • Shell 7.3%
  • Dockerfile 1.2%