Salesforce

External Environment Variables (Magic xpi 4.14)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

External Environment Variables (Magic xpi 4.14)

Magic xpi external environment variables support the capability of having access to environment variables defined outside the realm of the xpi project definition. As the outcome, Magic xpi can now access secrets defined in Azure Key Vault services and merge them to the environment variables of the xpi runtime.

To configure the access to Azure Key Vault services, you must add the following five properties to the [MAGIC_ENV] section of the magic.ini file manually. Changes done to the magic.ini will be applicable for all the projects. To use the Azure Key Vault for a specific project, do these changes in the ifs.ini for the required project.

Property

Definition

ExternalVault

Provide the value as 'A' for Azure key vault. Any other value set to this property will disable the Azure Key Vault feature. This will cause Magic xpi to use the environment variable values originally defined in the project.

ExternalVaultName

This is the name of the Key Vault which you have created in the Azure portal.

ExternalVaultClientSecret

This is the Client secret value. You need to encrypt this value before adding it to the magic.ini or ifs.ini file. For more information, click here.

ExternalVaultTenantID

It is a unique way to identify an Azure Active Directory instance to use Azure services. You get this value when creating the Key Vault on the Azure portal.

ExternalVaultApplicationID

This is the Client ID provided to you by the admin of Azure portal.

These parameters are required to access Azure Vault secrets.

Related Topics

How Do I Access Azure Key Vault Secrets?

Since version: 4.13.6

Reference
Attachment 
Attachment