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

Create a demo instance #46

Open
jacobhq opened this issue Feb 24, 2022 · 6 comments
Open

Create a demo instance #46

jacobhq opened this issue Feb 24, 2022 · 6 comments

Comments

@jacobhq
Copy link

jacobhq commented Feb 24, 2022

No description provided.

@jasonlong
Copy link
Member

This has come up a couple of times but there's not currently a simple solution due the authentication requirement.

@6r33z3
Copy link

6r33z3 commented Feb 27, 2022

This has come up a couple of times but there's not currently a simple solution due the authentication requirement.

One traditional workaround could be to allow github user to be able to join planetscale's github organization as a member (e.g. see nvidia's approach on accessing their private repos, https://developer.nvidia.com/gameworks-source-github) or create a dummy organization, albeit not sure if that's an adequate approach.

With everything considered, cross authorizing userbase from planetscale.com to be able to login demo instance beam (and any future demo instances) maybe a better solution on paper.

@Daniellop1
Copy link

I think it could be easy to do since okta allows to create a registration system where people could register in the test instance.

@thejessewinton
Copy link
Contributor

@jasonlong I wonder if an easy solution for this could be a demo instance that uses a simple credentialed login and a Vercel cron on an API route to delete all demo accounts, or just wipe the DB every 24 hours.

@jacobhq
Copy link
Author

jacobhq commented Feb 28, 2023

That sounds like a good solution. You'd need some sort of key to pass to the API route to ensure that only the cron job could wipe the DB and not just a random person calling the API.

@thejessewinton
Copy link
Contributor

Could easily be done using Vercel's recommended method!

https://vercel.com/docs/cron-jobs#how-to-secure-cron-jobs

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

5 participants