Setting default environment variables

Each custom application is deployed with default environment variables that can be used to interact with other PhariaAI services:

INFERENCE_URL # Use this to reach the PhariaInference API
DOCUMENT_INDEX_URL # Use this to reach the Document Index
PHARIA_STUDIO_URL # Use this to forward traces to PhariaStudio
AA_API_TOKEN # Use this for any service request that requires authorisation

The API token that is injected into the environment is shared across all custom applications, and it does not need to be refreshed. The service user is defined with the following permissions:

# Permissions assigned to the Application Service User
- ExecuteJobs
- AccessModel
- AccessNamespace (Studio, Assistant)
- KernelAccess

Applications requiring special permissions must inject a shorter-lived machine credential. To create one, see Managing credentials and tokens.