Edgegap Integration KitBeta
v2.0
Key Security

Environment Variables

Runtime env vars supported by EGIK for API keys and service tokens

Priority Rule

Runtime environment variables are preferred over config values when supported.

Supported Secret Variables

VariableUsed ByPurpose
EDGEGAP_API_KEYCore deployment APIsAuthorization key override
EDGEGAP_SB_SERVER_TOKENServer Browser server callsServer token override
EDGEGAP_SB_CLIENT_TOKENServer Browser client callsClient token override
EDGEGAP_MM_AUTH_TOKENMatchmaking / Group Up / BackfillMatchmaker token override
EDGEGAP_MATCHMAKER_AUTH_TOKENMatchmaking fallbackAlternate matchmaker token name

Service URLs, Edgegap runtime information, matchmaking runtime helpers, and self-stop variables are covered in Manage Deployments.

Unreal C++ Read Example

#include "EGIKBlueprintFunctionLibrary.h"

FString Value;
UEGIKBlueprintFunctionLibrary::GetEnvironmentVariable(TEXT("EDGEGAP_MM_AUTH_TOKEN"), Value);
UE_LOG(LogTemp, Log, TEXT("EDGEGAP_MM_AUTH_TOKEN=%s"), Value.IsEmpty() ? TEXT("<not set>") : TEXT("<set>"));

On this page