- EmDash
- Start here
Permissions
EmDash plugins declare the capabilities they need up front. These are the ones Flux Importer declares, why it needs each one, and who can use it.
Who can use the importer
Section titled “Who can use the importer”Every Flux Importer page and API route needs EmDash’s import:execute permission. Only Administrators have it. Anyone else who reaches the importer sees “Only administrators can import.” and nothing else.
- Scheduled imports are tied to the Administrator who last turned the schedule on: who created it, resumed it or changed what it runs. Before each run, the importer checks that this user still exists and still holds
import:execute. If not, the schedule pauses. The entries a scheduled run writes aren’t attributed to any user. See Schedules. - AI agents reach the importer through your site’s MCP server. A token needs the
mcp:tools:fluximporter(ormcp:tools) scope, and the user behind it still needsimport:execute. See Imports from AI agents. - Settings are on the plugin’s card on EmDash’s Plugins page. EmDash requires
plugins:manageto read or change them. See Configuration and settings.
Capabilities it declares
Section titled “Capabilities it declares”| Capability | Why Flux Importer needs it | Used by |
|---|---|---|
content:read | An import reads existing entries to match each record to the entry it updates. | ImportsRecord rules |
content:write | An import creates and updates entries. Entries that left the source can be moved to the trash or unpublished, when you choose that. | ImportsMissing entries |
content:publish | An import can publish the entries it writes, or schedule them, when you choose to. | Imports |
content:restore | A rollback restores entries an import moved to the trash. | Rollback |
schema:read | The wizard lists your collections and fields to map columns to. | The import wizard |
taxonomies:write | An import looks up categories and tags by name, and creates the ones that don't exist yet. | Taxonomies |
bylines:read | An import looks up existing bylines by name to credit entries. It never creates bylines. | Imports |
media:write | An import uploads the images and files that image and file fields point to. | Media |
users:read | Before each scheduled run, it checks that the Administrator who last turned the schedule on still exists and can import. | Schedules |
network:request:unrestricted | It fetches URLs an Administrator enters: URL sources, the media your records point to, and the suggestion provider. Their hosts aren't known in advance, so they can't be listed. Private and loopback addresses are refused. | URL sourcesMediaAI mapping |
| No capabilities match. | ||
The importer also changes collection schemas, in two ways. The first real import into a collection adds one field, flux_source_id, which links each entry to its record in the source. And the wizard can create the fields you map to, when you confirm them. Plugins can’t declare a capability for schema changes, so this is listed here instead. Neither changes the type of a field that already exists.
A native plugin: what the capabilities mean
Section titled “A native plugin: what the capabilities mean”Flux Importer is a native plugin. It runs in your site’s own process, like any npm package you add to your Astro config, not in a sandboxed Worker isolate.
For a sandboxed plugin, capabilities are a boundary: EmDash refuses any call the plugin didn’t declare. For a native plugin they are a disclosure. They tell Administrators what the importer does, and EmDash shows them on the Plugins page, but they don’t limit what its code can do. For example, the importer writes entries through EmDash’s own runtime, not through the capability-gated plugin API.
So install Flux Importer only if you trust the publisher, as you would any dependency. The package is MIT-licensed, so you can read its code before you install it.
Within that process, the importer adds its own limits:
- URL fetches go through a guard that refuses private and loopback addresses. The
allowPrivateNetworkoption lifts that only in development; production builds ignore it. - Secrets (the AI provider’s key and URL source credentials) are stored encrypted with
EMDASH_ENCRYPTION_KEY, and the admin never shows them again. - Mapping suggestions never send IDs, source URLs, credentials or user details to the provider.