Repository navigation
Plugin Permissions
A plugin is someone else's code running over your game, so axidps limits it in three layers:
- The sandbox. Every plugin, always. A plugin window is a locked-down web frame that sees nothing but what axidps sends it.
- Permissions. What the plugin asks for in its manifest: which data feeds and features it gets, and which web hosts it may talk to. The player sees the list and allows it.
- Trust. Who vouched for the plugin. Basic permissions need no one; deeper permissions only load once the axidps registry has approved the plugin, checked by signatures built into axidps.
flowchart LR
M["Manifest<br/>permissions + network"] --> C{"Player clicks Enable"}
C --> L{"Any deeper permission?"}
L -- "no" --> R["Loads in the sandbox"]
L -- "yes" --> T{"Granted by its trust?<br/>(Verified, Approved, Dev pass)"}
T -- "yes" --> R
T -- "no" --> N["Needs verification<br/>(doesn't load)"]
| Permission | Level | What it gives | The player sees |
|---|---|---|---|
fight |
basic | The live feed: your squad's damage, support, defense, healing and boons, the timeline and Details. | "Reads your fight data" |
squad |
basic | The squad feed: who is in your squad or party, between fights too, with groups, commander tag and up/down/dead. No positions. | "Reads your squad and party" |
game |
basic | The game feed: your map and game mode, whether you're in the world or on a loading screen, whether the map or the chat box is open, whether you're in combat, and your mount. No positions. | "Knows your map and game mode" |
enemies |
deeper | The players feed: anonymous team and spec of everyone around you, enemies included. | "Reads players around you, enemies included" |
textures |
deeper |
axidps.textures: restyle the game's commander tags, markers and target icons. |
"Changes how the game's icons look (commander tags, markers, targets)" |
combat |
deeper | The combat feed: hits, condition damage, heals, boons, casts and downs as they happen, where your squad is involved. Never events between players outside your squad, never positions. | "Reads combat events involving your squad (hits, heals, boons, casts)" |
logs |
deeper | The logs axidps saved this session: the list as they are written, and each file's bytes through axidps.logs.fetch. |
"Reads the fight logs axidps saves" |
world |
deeper |
axidps.world: markers drawn over the game world, at a point, over you, over a squad mate or the commander (those two with squad too). The plugin says where; axidps draws, and the plugin never learns where a squad mate is from it. |
"Draws over the game world" |
position |
deeper | The position feed: your position, facing and camera, the map, and whether the map is open. With squad too, where your squad mates and the squad markers are. Never anyone outside your squad. |
"Reads your position and camera" (with squad, also "Sees where your squad mates are") |
build |
deeper | The build feed: your own character's profession, specializations and traits, skill bar, weapon set and equipped gear (items, stats, upgrades, infusions), as game ids. Never anyone else's. | "Sees your gear and build" |
gw2api |
deeper | A GW2 API token: a subtoken of the player's API key, limited to the GW2 API permissions the manifest's gw2api lists, good for an hour. Never the key itself. Also list api.guildwars2.com in network. |
"Uses your GW2 API key, through a limited key that lasts an hour", plus "GW2 API: …" |
cursors |
privileged | Replaces the game's mouse cursors with the player's images. Built-in plugins only. | "Changes your mouse cursor" |
outline |
privileged | The character outline. Built-in plugins only. | "Outlines your character" |
-
Basic permissions (
fight,squadandgame) load for any plugin once the player enables it. - Deeper permissions load only when the plugin's trust grants them. Until then the plugin is listed with "Needs verification" and none of it loads, not even its basic parts.
- Privileged permissions are for plugins built into axidps. Any other plugin that names one doesn't load.
- Any other name makes the manifest invalid. That includes a permission newer than the
player's axidps:
gameneeds axidps 1.0.7 or later, and an older one doesn't load a plugin that names it.
Everything else in the API (settings, the window, theming, the perf and frame
events, the helpers) needs no permission.
A plugin can't reach the internet unless its manifest lists the hosts in network:
"network": ["api.example.com", "*.cdn.example.com"]- HTTPS on port 443 only, with
fetch,XMLHttpRequestand images. -
*.example.comcovers any subdomain, not the bare domain. - Public names only: no IP addresses, no single-label names like
localhost, no*.com, and nothing under.localhost,.local,.lan,.internalor.home.arpa. - Each host shows on the plugin's card as "Talks to
<domain>".
The plugin's card in the hub lists one line per permission and host. Clicking Enable allows exactly that list. If a later version asks for more (a new permission or a new host), the plugin is switched off until the player clicks Enable again. A version that asks for the same or less keeps running.
What every plugin window can and can't do, whatever its permissions:
- Each window is an
<iframe sandbox="allow-scripts">with its own opaque origin. It can't reach the overlay page, other plugins, or the player's files. There is nolocalStorage, cookies or IndexedDB; useaxidps.settings. Popups, dialogs (alert), forms and navigating the overlay are not available. - The Content-Security-Policy allows scripts, styles, fonts and images from your own folder,
inline scripts and styles, and
data:images.fetchandXMLHttpRequestmay reach only yournetworkhosts, over HTTPS (images may load from them too). No workers, no nested frames, nothing else. Redirects aren't followed: a request your host answers with a redirect fails, so pointfetchat the final URL. Your window can't navigate to a web page either, even one on your own hosts: load data withfetchand render it yourself. - Hosts are checked by name, not by address. A name you declare could later be pointed at the player's own network, but only HTTPS on port 443 is allowed, and a device there can't present a valid certificate for your domain, so such a connection fails.
- Nothing from the game reaches a frame except the messages in the wire protocol, and the feeds only with their permissions. A frame can only speak for itself: the page knows which frame sent a message by its sender alone.
- Developer mode changes how fast you see your work, never what a plugin may do: the sandbox, the Content-Security-Policy and the permissions stay the same.
Each plugin gets one trust level, shown beside its name in the hub's Plugins tab:
| Level | Card shows | Deeper permissions it grants |
|---|---|---|
| Bundled | nothing | All it names: it ships with axidps. |
| Verified | verified | Those approved for this exact version and its exact files. Someone read this version's code. |
| Permissions approved | Permissions approved | Those in the plugin's standing approval, for versions the store lists with those exact files. darkharasho approved what the plugin can do; this version's code wasn't read. |
| Dev | dev | Those in the author's developer pass, in developer mode only. See Developer passes. |
| Unverified | unverified | None. Basic permissions still work. |
| Revoked | revoked | None, and the plugin doesn't load. The card says why. |
axidps decides in this order and takes the first that applies:
- Revoked? If the registry pulled the plugin (every version) or this version with these files, it doesn't load.
- Hashed? axidps hashes the plugin's files (the tree hash). If they can't be hashed, the plugin is Unverified.
- Approved version? An approval for this id, version and tree hash makes it Verified, unless that verification was revoked.
- Standing approval? A standing approval for the id makes it Permissions approved, but only for a version the store lists with these exact files.
- Developer pass? In developer mode, for a plugin you added yourself (not a store install), a live pass for your developer key makes it Dev.
- Otherwise it is Unverified.
Changing a single file of an approved plugin changes its tree hash, so it falls back to Unverified and its deeper permissions stop loading.
axidps checks trust itself; it never takes a server's word for it. The plugin store's
index.json comes from the axidps-plugins
registry, and two kinds of Ed25519 keys are built into axidps:
-
The index key signs
index.json. It vouches for the listing only: which plugins and versions exist and where their zips are. It can never grant more than basic. -
The approver key signs each approval, standing approval, developer pass and
revoked.jsonon its own. Only these grant deeper permissions or take them away. Its private half never leaves the owner's password manager.
Each signed item is checked on its own, and a bad one is skipped with a log line. revoked.json
has a sequence number that only goes up: axidps remembers the highest it has seen, ignores an
older copy, and drops every grant when the newest revocation list is missing, so an old index
can't bring back something that was revoked.
The store downloads packages only from the registry's own releases, checks each against the index before unpacking, and only ever replaces or removes folders it installed itself. A plugin folder you added by hand with the same id is left alone.
Publish your plugin to the store with a pull request to
axidps-plugins (see its
publishing guide).
Basic-only plugins are listed as Unverified, automatically once their checks pass. To ask for
Verified or for deeper permissions, set "verify": true in your registry entry and list them in
elevated; the owner reviews the package against the
verification checklist:
readable source, every network host and deeper permission explained in your README, and nothing
against ArenaNet's third-party tool policy.
A developer pass lets your own unverified plugin use deeper permissions while you build it. It works in developer mode only, never for store installs, and only until it expires.
To ask for one, run axidps plugin dev-key. It makes a key on this machine the first time and
prints public key: .... Send that key and your GitHub login to the axidps owner (darkharasho).
axidps plugin dev-key --new makes a new key. A new key cancels any pass you already have.
A pass names your GitHub login, your developer key, the plugin ids it covers (exact, or
yourname.*), the deeper permissions it grants and an expiry date. It can be revoked like
anything else the approver signs.