6
3 Comments

[Need Help] If you own a SaaS product, how do you manage your users' different environments?

My product requires a client key to work - this key is required by Javascript SDK for authentication. While users can use the same API key for multiple environments, their reports and data would be get corrupted.

On the other hand, while they can create separate API keys for each environment, I imagine it will be a little hard for them to manage that way.

If your product also requires a client key - what do you recommend to your users or do you filter out calls made from the dev environment?

  1. 2

    Depending on the environment, we filter API calls for pirsch.io. Our JavaScript snippet for example won't send data for localhost and installed on a website we check the origin, so that others can't mess with your data. Other API calls are not checked, that's the responsibility of the user.

    1. 2

      Thanks @m5blum - I had put origin check in the client SDK, but thanks to your comment, I have moved it to the backend.

      Users will still have to manage multiple keys - I guess, there's no way to simplify that for users.

      1. 1

        Glad I could help you :)

Trending on Indie Hackers
I make $100K+ ARR from my micro startups. AMA. 76 comments Looking for a super basic analytics app 20 comments How BaseTemplates grew from $500/MRR to $10k/MRR 12 comments Roast my startup 3 comments Roast my campaign - a free 1:1 with a startup advisor 1 comment Best way to utilise amazing customer testimonials 1 comment