summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authortalyz <kim.lindberger@gmail.com>2019-10-09 16:12:16 +0200
committertalyz <kim.lindberger@gmail.com>2019-10-09 16:59:18 +0200
commitdc29a45fc9dedef9d93aa9061b2aeb15c8844d5a (patch)
tree76cd5ad30213721b8078056204f56d70ca31e52d /nixos
parentf024e7b769df17b24e98013f1866dc7a908d30ab (diff)
downloadnixpkgs-dc29a45fc9dedef9d93aa9061b2aeb15c8844d5a.tar
nixpkgs-dc29a45fc9dedef9d93aa9061b2aeb15c8844d5a.tar.gz
nixpkgs-dc29a45fc9dedef9d93aa9061b2aeb15c8844d5a.tar.bz2
nixpkgs-dc29a45fc9dedef9d93aa9061b2aeb15c8844d5a.tar.lz
nixpkgs-dc29a45fc9dedef9d93aa9061b2aeb15c8844d5a.tar.xz
nixpkgs-dc29a45fc9dedef9d93aa9061b2aeb15c8844d5a.tar.zst
nixpkgs-dc29a45fc9dedef9d93aa9061b2aeb15c8844d5a.zip
nixos/gitlab: Don't print sensitive data to log on startup
gitlab:db:configure prints the root user's password to stdout on
successful setup, which means it will be logged to the
journal. Silence this informational output. Errors are printed to
stderr and will thus still be let through.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/misc/gitlab.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gitlab.nix b/nixos/modules/services/misc/gitlab.nix
index 2e840e27288..20b87af23a5 100644
--- a/nixos/modules/services/misc/gitlab.nix
+++ b/nixos/modules/services/misc/gitlab.nix
@@ -851,7 +851,7 @@ in {
 
             initial_root_password="$(<'${cfg.initialRootPasswordFile}')"
             ${gitlab-rake}/bin/gitlab-rake gitlab:db:configure GITLAB_ROOT_PASSWORD="$initial_root_password" \
-                                                               GITLAB_ROOT_EMAIL='${cfg.initialRootEmail}'
+                                                               GITLAB_ROOT_EMAIL='${cfg.initialRootEmail}' > /dev/null
 
             # We remove potentially broken links to old gitlab-shell versions
             rm -Rf ${cfg.statePath}/repositories/**/*.git/hooks