voxpupuli / crafty

CRAFTY - Containerized Resources And Funky Tools (in) YAML
GNU Affero General Public License v3.0
13 stars 6 forks source link

Don't access database with a superuser. Create dedicated read user #62

Open Heap0017 opened 2 months ago

Heap0017 commented 2 months ago

Fixes https://github.com/voxpupuli/crafty/issues/60

See also https://www.puppet.com/docs/puppetdb/7/configure_postgres.html

rwaffen commented 2 months ago

this is somewhat related to: https://github.com/voxpupuli/container-puppetdb/pull/73

rwaffen commented 2 months ago

i would recommend that we first work on https://github.com/voxpupuli/container-puppetdb/pull/73 and merge it, and then update this PR to make use of the new variables provided by https://github.com/voxpupuli/container-puppetdb/pull/73

Heap0017 commented 1 month ago

https://github.com/voxpupuli/container-puppetdb/pull/73 is in fact a breaking change for us. So we will need to make sure the read user is created (as in this PR) before bumping the puppetdb image.