Docs
Extensions

Security model

What keeps an extension within what it was given, and what stopping one reaches.

PreviewFor developers

This is a published preview. Names and fields may still change before general availability; changes will be listed in the changelog.

Nothing you send runs in Agoo

An extension is never code inside Agoo. It reaches Agoo only through the public API, and Agoo reaches it only by calling it. Nothing it sends is run, evaluated as a template or used as a query. Files it uploads go through the same checks as every other upload.

Access

  • An install's token holds exactly the scopes the organisation agreed to, narrowed at every request by what the person who installed it holds then.
  • It can never approve, pay, post to the books or close a period, manage webhooks, or read the event feed or the audit trail.
  • Site and legal-entity limits the organisation chose apply to every answer.
  • Each extension has its own rate allowance in each organisation, apart from people's own use of Agoo, so a busy extension never slows the Console. Its calls are counted per day for the organisation to see; what it read never is.

Calls from Agoo

Agoo calls an extension (its webhook) only at the hosts its manifest declares, over https:

  • the host is resolved by Agoo and every address must be public: never a private network, loopback, link-local or cloud metadata address;
  • the connection goes to the address that was checked, so a second DNS answer can't swap one in;
  • redirects aren't followed;
  • every call has a time and size limit.

Screens

Your screens load in a sandboxed frame that never shares the Console's origin, inside a frame whose policy allows only your declared host. They can't read the Console's page, cookies, storage or session. The context token they receive lasts five minutes and names only the organisation, person, record and scopes.

Stopping

When an organisation pauses or removes an extension, its publisher withdraws a version, or Agoo suspends it:

  • its tokens stop at once, and no new one is issued;
  • its webhook is turned off and anything queued for it is cancelled;
  • export cuts it made close;
  • its screens disappear from pages people have open.

What it was given and when, and how it was stopped, stay in the organisation's records. A paused extension resumes with the consent it had. Anything else needs a fresh install and fresh consent.

Copies of data already sent to an extension are the publisher's to look after under their own terms and the law; Agoo can't recall them, which is why organisations see data_use before they agree.

On this page