Skip to content

Commit

Permalink
feat: Configure multiple superusers
Browse files Browse the repository at this point in the history
Allow multiple superusers to be configured through the user-create job. This is useful for SAML-based
authentication where password authentication is not expected and instead users are provisioned by a separate tenant.
  • Loading branch information
mishok13 committed Sep 2, 2024
1 parent fd6f958 commit 7522497
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions charts/sentry/templates/hooks/user-create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,16 +76,11 @@ spec:
# https://docs.sentry.io/server/cli/createuser/
args:
- >
sentry createuser \
--no-input \
--superuser \
--email "{{ .Values.user.email }}" \
--password "$ADMIN_PASSWORD" || true; \
if [ $? -eq 0 ] || [ $? -eq 3 ]; then \
exit 0; \
else \
exit 1; \
fi
set -e
emails = ({{ join " " .Values.user.emails }})
for email in "${emails[@]}"; do
sentry createuser --no-input --superuser --email "$email" --no-password --force-update;
done
env:
{{ include "sentry.env" . | indent 8 }}
{{- if .Values.user.existingSecret }}
Expand Down

0 comments on commit 7522497

Please sign in to comment.