Open joepie91 opened 6 years ago
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
@joepie91 do you still have this issue?
I marked this as stale due to inactivity. → More info
Issue description
The Hydra module for NixOS contains a configuration setting that, on deployments with a local PostgreSQL database, is meant to add an authentication line to the
pg_hba.conf
for PostgreSQL to allow access to all Hydra-related users.However, when the
services.postgresql.authentication
option is already set elsewhere in the system configuration, this line does not get added due to conflicting options - or presumably, the existingauthentication
configuration could be overwritten by the Hydra-specified configuration in different circumstances.Instead, the Hydra service should append this authentication line to the existing
authentication
configuration when one already exists.Workaround in the meantime: manually add
local hydra all ident map=hydra-users
to yourservices.postgresql.authentication
configuration option, wherever you have currently specified it.For the issue search: the following is the error that shows in Hydra when authentication fails due to this issue:
... and the PostgreSQL service logs show the following:
Steps to reproduce
services.postgresql.authentication
option to your system configuration (eg./etc/nixos/configuration.nix
).services.hydra.dbi
option and let it default to the local database.For completeness' sake, below is my Hydra configuration:
Technical details
"x86_64-linux"
Linux 4.9.61, NixOS, 17.09.2182.7f6f0c49f0 (Hummingbird)
yes
no
nix-env (Nix) 1.11.15
""
"nixos-17.09.2182.7f6f0c49f0"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs