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
After 10M+ Views, 13k+ Upvotes: The Reddit Strategy That Worked for Me! 42 comments Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments 🔥Roast my one-man design agency website 21 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments Hero Section Copywriting Framework that Converts 3x 12 comments