6
4 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. 3

      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

        Yeah, either multiple keys, or same key, but when the data is sent, some extra information about the environment has to be sent as metadata, which could be like an app config or something, but if the user messes up the metadata, then wrong data would corrupt the reports

      2. 1

        Glad I could help you :)

Trending on Indie Hackers
How I grew a side project to 100k Unique Visitors in 7 days with 0 audience 49 comments Competing with Product Hunt: a month later 33 comments Why do you hate marketing? 29 comments My Top 20 Free Tools That I Use Everyday as an Indie Hacker 16 comments $15k revenues in <4 months as a solopreneur 14 comments Use Your Product 13 comments