beam icon indicating copy to clipboard operation
beam copied to clipboard

Create a demo instance

Open jacobhq opened this issue 2 years ago • 6 comments

jacobhq avatar Feb 24 '22 22:02 jacobhq

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

jasonlong avatar Feb 24 '22 22:02 jasonlong

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.

6r33z3 avatar Feb 27 '22 00:02 6r33z3

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

Daniellop1 avatar Jun 01 '22 19:06 Daniellop1

@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.

thejessewinton avatar Feb 24 '23 05:02 thejessewinton

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.

jacobhq avatar Feb 28 '23 20:02 jacobhq

Could easily be done using Vercel's recommended method!

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

thejessewinton avatar Feb 28 '23 21:02 thejessewinton