From 03c3d49b878ffabfe98da1ec8af9dd5c7c4d222f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Aug 2021 12:56:32 +0300 Subject: fix(monorepo-gerrit): Enable adding new email addresses to accounts This is required when people change their email addresses (e.g. cl/3349) as nothing in Gerrit will update that information from the OAuth provider. Change-Id: I1eafdf22efd37898dcd0d06bb9a5d1471ffb5e31 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3356 Tested-by: BuildkiteCI Reviewed-by: eta Reviewed-by: sterni Reviewed-by: lukegb --- ops/modules/monorepo-gerrit.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ops/modules/monorepo-gerrit.nix b/ops/modules/monorepo-gerrit.nix index b704ab153c..d4b37d860b 100644 --- a/ops/modules/monorepo-gerrit.nix +++ b/ops/modules/monorepo-gerrit.nix @@ -96,6 +96,9 @@ in { # client-secret is set in /var/lib/gerrit/etc/secure.config. }; + # Allow users to add additional email addresses to their accounts. + oauth.allowRegisterNewEmail = true; + # Use Gerrit's built-in HTTP passwords, rather than trying to use the # password against the backing OAuth provider. auth.gitBasicAuthPolicy = "HTTP"; -- cgit 1.4.1