Environment Agnostic Custom Plugins

Hello. We have several custom plugins that will be pulling (and caching) values from Vault. We need to make the plugin be aware of the environment it is being run in so the plugin can pull the correct info from Vault. Is there a recommended approach for this?