Overview

Policy & permissions

Risk is classified in code from the operation and the target label.

Overview#

Risk is classified in code from the operation and the target label. Modes: allow, ask (a person approves), takeover (a person performs it), deny.

RiskDefaultExamples
readallowclick, type, select, scroll, wait
navigateallowlinks, tabs, history
downloadallowfile downloads
uploadaskfile inputs, choosers, drop zones
send_messageasksend, submit, post, confirm
publishaskpublish, share, make public
purchasetakeoverpay, buy, place order, transfer, subscribe
deletetakeoverdelete, remove, deactivate, unsubscribe
credential_changetakeoverpassword, OTP, card fields
policy.json
{
  "defaults": { "upload": "allow", "send_message": "ask", "purchase": "takeover" },
  "siteRules": [
    { "pattern": "*.internal.example.com", "risk": "upload", "mode": "allow" }
  ],
  "blockedOrigins": ["*.ads.example.com"],
  "restrictNavigation": false,
  "secretsRequireTakeover": true,
  "maxTypedLength": 2000
}