From 97afd10e234e7c99a761a8848cd01dc0c5dabce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Fri, 25 Jun 2021 15:49:54 +0200 Subject: [PATCH] Don't allow registration from our email domains MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes https://github.com/fedora-infra/noggin/issues/234 Signed-off-by: Aurélien Bompard --- roles/openshift-apps/noggin/templates/noggin.cfg.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/roles/openshift-apps/noggin/templates/noggin.cfg.py b/roles/openshift-apps/noggin/templates/noggin.cfg.py index ca02f9479d..c6f887164a 100644 --- a/roles/openshift-apps/noggin/templates/noggin.cfg.py +++ b/roles/openshift-apps/noggin/templates/noggin.cfg.py @@ -38,6 +38,13 @@ THEME = "{{ noggin_theme }}" # Auto-gen avatar type to show if no avatar set AVATAR_DEFAULT_TYPE = "retro" + +# Don't allow regsitration with these email domains +MAIL_DOMAIN_BLOCKLIST = [ + "fedoraproject.org", + "centosproject.org", +] + # Those file should be mounted from OpenShift secrets FREEIPA_ADMIN_PASSWORD = from_file('/etc/noggin-secrets/ipa-admin') FERNET_SECRET = from_file('/etc/noggin-secrets/fernet').encode('utf-8')