Browse Source

chore(staff): Create staff email allowlist option (#67742)

In preparation to replace with `auth:enterprise-staff-cookie` feature
flag with this option so I can easily modify who has access to staff
mode with the options automator, rather than having to pass CI with the
feature flag handler
Seiji Chew 11 months ago
parent
commit
1fcbdc57b3
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/sentry/options/defaults.py

+ 8 - 0
src/sentry/options/defaults.py

@@ -264,6 +264,14 @@ register(
     flags=FLAG_ALLOW_EMPTY | FLAG_PRIORITIZE_DISK | FLAG_REQUIRED,
 )
 
+# Staff
+register(
+    "staff.user-email-allowlist",
+    type=Sequence,
+    default=[],
+    flags=FLAG_ALLOW_EMPTY | FLAG_AUTOMATOR_MODIFIABLE,
+)
+
 # API
 # Killswitch for apis to work with id or slug as path parameters
 register(