Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support admin/CMS access for demo servers #15375

Open
3 of 6 tasks
Tracked by #14225
stevejalim opened this issue Oct 23, 2024 · 2 comments
Open
3 of 6 tasks
Tracked by #14225

Support admin/CMS access for demo servers #15375

stevejalim opened this issue Oct 23, 2024 · 2 comments
Assignees

Comments

@stevejalim
Copy link
Collaborator

stevejalim commented Oct 23, 2024

We need to get SSO set up on the demo servers so that they can have content edited if need be, and Waffle switches tweaked via the Django Admin

Tasks

@stevejalim
Copy link
Collaborator Author

I've been hacking on this a bit and I think the original plan (update the Cloud Build trigger to run the management command before deploying to Cloud Run) isn't the way forward, mainly because doing a multi-stage build (i.e. Bedrock build, then run the management command to boostrap data and then commit that into a new image) isn't proving clean or straightforward to do in Cloud Build. It's also slower even though it'su not even 100% working yet.

So, instead, I'm wondering about updating our ./bin/sync-all.sh script (which gets called during the Docker image build) to check for the presence of the DEMO_SERVER_ADMIN_USERS env var (which we can inject into the container at build) and to then run ./manage.py boostrap_demo_server_admins

I'm not a massive fan of this, as it adds demo-specific complexity to the general Dockerfile, but it's a lot cleaner from the Cloud Build / Cloud Run side.

No rush to reply, but what do you think @robhudson @pmac?

@robhudson
Copy link
Member

I think that's fine. We could always revisit it later to re-evaluate. But for now it gets the job done and it's not a major blocker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants