Giter VIP home page Giter VIP logo

Comments (6)

thejessewinton avatar thejessewinton commented on July 16, 2024 1

Could easily be done using Vercel's recommended method!

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

from beam.

jasonlong avatar jasonlong commented on July 16, 2024

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

from beam.

Novezeil avatar Novezeil commented on July 16, 2024

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.

from beam.

Daniellop1 avatar Daniellop1 commented on July 16, 2024

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

from beam.

thejessewinton avatar thejessewinton commented on July 16, 2024

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

from beam.

jacobhq avatar jacobhq commented on July 16, 2024

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.

from beam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.