Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit 7fe70aa

Browse files
MTRNordsandhose
authored andcommitted
Document policy settings for changing the policy wasm file
1 parent 30fdb99 commit 7fe70aa

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/reference/configuration.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,23 @@ Policy settings
334334

335335
```yaml
336336
policy:
337+
# Path to the WASM module
338+
# Default for docker feature: `/usr/local/share/mas-cli/policy.wasm`
339+
# Default for dist feature: `./share/policy.wasm`
340+
# Default otherwise: `./policies/policy.wasm`
341+
wasm_module: ./policies/policy.wasm
342+
# Entrypoint to use when evaluating client registrations
343+
client_registration_entrypoint: client_registration/violation
344+
# Entrypoint to use when evaluating user registrations
345+
register_entrypoint: register/violation
346+
# Entrypoint to use when evaluating authorization grants
347+
authorization_grant_entrypoint: authorization_grant/violation
348+
# Entrypoint to use when changing password
349+
password_entrypoint: password/violation
350+
# Entrypoint to use when adding an email address
351+
email_entrypoint: email/violation
352+
353+
# This data is being passed to the policy
337354
data:
338355
# Users which are allowed to ask for admin access. If possible, use the
339356
# can_request_admin flag on users instead.

0 commit comments

Comments
 (0)