Skip to main content

Environment Variables

The following enviroment variables can be used to configure Prism Agent:

Variable NameDescriptionTypeDefault
POLLUX_DB_HOSTHostname of the server where Pollux database is running on.Stringlocalhost
POLLUX_DB_PORTPort of the Pollux database.Int5432
POLLUX_DB_NAMEDatabase name where Pollux db will store data.Stringpollux
POLLUX_DB_USERPollux database username for login.Stringpostgres
POLLUX_DB_PASSWORDPollux database password for login.Stringpostgres
ISSUE_BG_JOB_RECORDS_LIMITMaximum number of records issue credentials job will try to process at the same time.Int25
ISSUE_BG_JOB_RECURRENCE_DELAYInterval at which issue credentials job will try to process records.String2 seconds
ISSUE_BG_JOB_PROCESSING_PARALLELISMMaximum amount of parallel issue credential job processings.Int5
PRESENTATION_BG_JOB_RECORDS_LIMITMaximum number of records present proof job will try to process at the same time.Int25
PRESENTATION_BG_JOB_RECURRENCE_DELAYInterval at which present proof job will try to process records.String2 seconds
PRESENTATION_BG_JOB_PROCESSING_PARALLELISMMaximum amount of parallel present proof job processings.Int5
CONNECT_DB_HOSTHostname of the server where connection flow database is running on.Stringlocalhost
CONNECT_DB_PORTPort of the connection flow database.String5432
CONNECT_DB_NAMEDatabase name where connection flow db will store data.Stringconnect
CONNECT_DB_USERConnection flow database username for login.Stringpostgres
CONNECT_DB_PASSWORDConnection flow database password for login.Stringpostgres
CONNECT_BG_JOB_RECORDS_LIMITMaximum number of records connect job will try to process at the same time.Int25
CONNECT_BG_JOB_RECURRENCE_DELAYInterval at which connect job will try to process records.String2 seconds
CONNECT_BG_JOB_PROCESSING_PARALLELISMMaximum amount of parallel connect job processings.Int5
CONNECT_INVITATION_EXPIRYTime leeway when accepting the connection invitation, the inviter should only accept responses if they are received within the specified time limit before expiry.String300 seconds
AGENT_HTTP_PORTPort on which prism agent runs.Int8085
DIDCOMM_SERVICE_URLURL of the DIDcomm server that also runs for this agent.Stringhttp://localhost:8090
AGENT_DB_HOSTHostname of the server where prism agent database is running on.Stringlocalhost
AGENT_DB_PORTPort of the prism agent database.Int5432
AGENT_DB_NAMEDatabase name where agent db will store data.Stringagent
AGENT_DB_USERAgent database username for login.Stringpostgres
AGENT_DB_PASSWORDAgent database password for login.Stringpostgres
CREDENTIAL_VERIFY_SIGNATUREWhether or not to verify a credential signature.Booleantrue
CREDENTIAL_VERIFY_DATESWhether or not to verify credential dates (expiration).Booleanfalse
CREDENTIAL_LEEWAYTime leeway when verifying credential dates, if time difference is less than a leeway, it will still verify.String0 seconds
PRESENTATION_VERIFY_SIGNATUREWhether or not to verify a signed challenge used during credential presentation.Booleantrue
PRESENTATION_VERIFY_DATESWhether or not to verify challenge dates during presentation.Booleanfalse
PRESENTATION_VERIFY_HOLDER_BINDINGDescription missing (please provide).Booleanfalse
PRESENTATION_LEEWAYTime leeway when verifying challenge dates.String0 seconds
SECRET_STORAGE_BACKENDSecret storage for keys and credentials. If vault is used, the vault server must be running, otherwise a database can be used for development purposes only.Enum(vault, postgres)vault
VAULT_ADDRURL of the vault service for prism agent to use for secret management.Stringhttp://localhost:8200
VAULT_TOKENVault service auth token.Stringroot
VAULT_APPROLE_ROLE_IDThe role_id for HashiCorp Vault authentication with AppRoleStringNull
VAULT_APPROLE_SECRET_IDThe secret_id for HashiCorp Vault authentication with AppRoleStringNull
VAULT_USE_SEMANTIC_PATHEnable full path convention for vault secret pathBooleantrue
ADMIN_TOKENAdmin token for the admin API key authentication method.Stringadmin
API_KEY_SALTSalt used to hash the API key.StringJLXTS4J2qkMOgfO8
API_KEY_ENABLEDWhether or not to enable API key authentication.Booleantrue
API_KEY_AUTHENTICATE_AS_DEFAULT_USERWhether or not to authenticate all API keys as the default user.Booleanfalse
API_KEY_AUTO_PROVISIONINGWhether or not to enable auto-provisioning for API keys and register the owner of the api-key automatically.Booleantrue
WEBHOOK_PARALLELISMMaximum number of events that will be retrieved in a single iteration, from the event queue by the webhook publisher.IntNull
GLOBAL_WEBHOOK_URLThe global webhook endpoint URL where the notifications will be sent.StringNull
GLOBAL_WEBHOOK_API_KEYThe optional API key (bearer token) to use as the Authorization header for global wallet webhook.StringNull
DEFAULT_WALLET_ENABLEDWhether or not to initialize the default wallet.Stringtrue
DEFAULT_WALLET_SEEDThe BIP32 wallet seed to be used for default wallet represented by a hexadecimal string.StringNull
DEFAULT_WALLET_WEBHOOK_URLThe default wallet webhook endpoint URL where the notifications will be sent.StringNull
DEFAULT_WALLET_WEBHOOK_API_KEYThe optional API key (bearer token) to use as the Authorization header for default wallet webhook.StringNull
DEFAULT_WALLET_AUTH_API_KEYThe authentication API key to be used for default entity that uses default wallet.Stringdefault
KEYCLOAK_ENABLEDWhether or not to enable Keycloak authentication and authorisation.Booleanfalse
KEYCLOAK_URLThe Keycloak server URL.Stringhttp://localhost:9980
KEYCLOAK_REALMThe Keycloak realm name.Stringatala-demo
KEYCLOAK_CLIENT_IDThe Keycloak client ID.Stringprism-agent
KEYCLOAK_CLIENT_SECRETThe Keycloak client secret.Stringprism-agent-demo-secret
KEYCLOAK_UMA_AUTO_UPGRADE_RPTWhether or not to enable automatic upgrade of RPT tokens. If disabled, accessToken must be RPT and include the permission claims.Booleantrue
KEYKLOAK_ROLES_CLAIM_PATHThe json path to the roles claim in the JWT payload . Used for role-based authorization (e.g. admin or tenant).Stringresource_access.<KEYCLOAK_CLIENT_ID>.roles