Policies

Understand the allowlist-based capability model used by revenexx Apps on the platform.

Policies define what a revenexx App is allowed to do on the platform. By default, apps have no outbound network, event bus, or storage access. Every capability must be declared explicitly in manifest.json.

Policy model

Revenue Cloud uses an allowlist model. If a capability is not declared in policies, it is denied. Policy declarations are shown to customers during app installation.

Supported policies

Policy namePurposeRequired attributes
outbound-accessAllow HTTP requests to external systemshost, path
event-publishAllow publishing eventsevents
event-subscribeAllow consuming eventsevents
storage-readRead files from storage bucketsbucket
storage-writeWrite files to storage bucketsbucket
storage-read-writeRead and write storage bucketsbucket

Example

JSON
{
  "policies": [
    { "name": "outbound-access", "attrs": { "host": "{{tenant_domain}}", "path": "/api/erp/*" } },
    { "name": "event-publish", "attrs": { "events": ["order.created", "order.updated"] } },
    { "name": "storage-read", "attrs": { "bucket": "order-attachments" } }
  ]
}

Security notes

  • Prefer narrow host and path patterns over broad wildcards.
  • Publish and subscribe only to required event names.
  • Scope storage access to explicit buckets whenever possible.
  • Review policy changes during app upgrades.
Was this page helpful?