Secrets Manager - Sandbox and Live

Hello,
I am looking at using the Secret Manager for storing apikeys. I have things working but do not see a way to differentiate between a sandbox and live api key. Basically I would like to have the same name for the secrets manager key, just different values for sandbox and live (kind of like having different data in database collections). Has anyone done this?

If this is not possible is there a function that can be called from the backend that will tell me if I am running on sandbox or live, that way I could have two different names. The only other option I can think of is to scrap using the Secrets Manager and just use a collection. Any ideas would be appreciated.

1 Like