Skip to main content

Environment variables

Here is a little guide to help you configuring your Otoroshi Biscuit Studio environment variables.

Those variables will be used to configure your extension with your own settings.

Global Extension Settings​

Environment VariableDefault Value
CLOUD_APIM_EXTENSIONS_BISCUIT_ENABLEDtrue

Biscuit Verifier Settings​

Environment VariableDefault Value
BISCUIT_VERIFIER_RUN_LIMIT_MAX_FACTS1000
BISCUIT_VERIFIER_RUN_LIMIT_MAX_ITERATIONS100
BISCUIT_VERIFIER_RUN_LIMIT_MAX_TIME_MILLIS1000ms (1 sec)

Biscuit Revocation Jobs Settings​

The revocation job is a scheduled task to run every X minutes in order to query your remote system to get a list of revoked tokens.

By default, the job is disabled, you will have to enable it by yourself to use it using BISCUIT_REVOCATION_JOB_ENABLED variable.

Environment VariableDefault Value
BISCUIT_REVOCATION_JOB_ENABLEDfalse
BISCUIT_REVOCATION_INITIAL_DELAY60 seconds (1 min)
BISCUIT_REVOCATION_INTERVAL300 seconds (5 min)
BISCUIT_REVOCATION_JOB_API_URL"" (Mandatory, required)
BISCUIT_REVOCATION_JOB_API_METHODGET (Mandatory, required)
BISCUIT_REVOCATION_JOB_API_HEADERSMap[String, String] (Optional)

.env File example​

You can copy paste this following .env configuration file. It's an example using default values.

You can customize the values ​​of the variables according to your needs.

# Biscuit Verifier Configuration
BISCUIT_VERIFIER_RUN_LIMIT_MAX_FACTS=1000 # Maximum number of facts to process
BISCUIT_VERIFIER_RUN_LIMIT_MAX_ITERATIONS=100 # Maximum number of iterations allowed
BISCUIT_VERIFIER_RUN_LIMIT_MAX_TIME_MILLIS=1000 # Timeout limit in milliseconds (1 sec)

# Biscuit Revocation Job Configuration
BISCUIT_REVOCATION_JOB_ENABLED=false # Enable/Disable the revocation job (true/false)
BISCUIT_REVOCATION_INITIAL_DELAY=60 # Initial delay before the first revocation job run (seconds)
BISCUIT_REVOCATION_INTERVAL=300 # Interval between revocation job executions (seconds)

# Biscuit Revocation API Configuration
BISCUIT_REVOCATION_JOB_API_URL= # API URL for revocation
BISCUIT_REVOCATION_JOB_API_METHOD= # HTTP method for the API call (e.g., GET, POST)
BISCUIT_REVOCATION_JOB_API_HEADERS= # List of headers (could be empty)