Feature request: The ability to set a default val...
# infisical-feedback
a
Feature request: The ability to set a default value for an environment. Our use case: We’re storing our client’s creds to access a third party api. We have their prod keys but not their dev keys. It would be great if we can just use one value for dev that is returned with every call to that env if there’s no secret under that name. We’re currently using the structure:
Copy code
integration_name/
-- default
-- user_id
...
-- user_id
where default has only dev creds, and the other users have only prod creds we then get the values by:
Copy code
const credentials = await client.getSecret({
  environment: process.env.INFISICAL_ENV,
  projectId: process.env.INFISICAL_PROJECT_ID,
  path: '/SMS_PROVIDER',
  secretName: process.env.INFISICAL_ENV === 'dev' ? 'default' : userId,
})
🙌 1