planetscale/beam

Create a demo instance

jacobhq opened this issue · 6 comments

Create a demo instance

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

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.

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

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

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.

Could easily be done using Vercel's recommended method!

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