If you want to programatically determine which environment your extension is running in, the following code will work:
import configuration.settings as settings
env = settings.DEPLOY_ENV #This will be "DEV", "STG", or "PROD"
For endpoints, you can set the URL and other endpoint details in Wedge Address Configs, and they will be available to the extension at runtime. Then during deployment you can request how you want the configurations to be set.
For certificates loaded from vault, you will be able to load the cert from the same place and we can place different certs in Vault that will correspond to the environment you're in. If you have VAULT_SCOPED_READ = True set in your configuration/settings.py file, the scope will be at the particular environment level, not just Staging vs. Prod, so for instance if you had multiple Staging environments you could choose whether the scope defaults to an individual Staging environment or the entire Staging network.
This makes sense. Thanks for the info, Mark!
— Brian Chambers 5 years ago