Security model
The organization comes from the key
Every key belongs to one organization. Every query is filtered by that organization on the server. No tool accepts a different organization: if an argument carries another organization id, the call is rejected with TENANT_MISMATCH. Arguments can only narrow (a centre, a date range), never widen.
Permissions = person ∩ key ∩ modules
The effective permissions are computed on every call:
- The person (personal keys): their current panel permissions, from their roles, read on every call. If they are disabled, lose access, or lose a permission, the key loses it at once.
- The key's scopes: what was ticked when it was created.
- The organization's modules: only permissions of enabled modules count. The "API & MCP" module must be enabled to use keys (
MODULE_DISABLEDotherwise).
A tool only appears in the list, and can only be called, when every permission it requires is held. Service keys don't act as anyone: they have exactly their scopes, within the enabled modules.
If the person only sees some centres, so does the key. A key can also be restricted to specific centres.
These are the panel permissions that can be used as scopes:
| Permission (panel) | Module |
|---|---|
dashboard.view | core |
profile.self | core |
conversations.view | channels |
conversations.reply | channels |
conversations.take_over | channels |
conversations.assign | channels |
conversations.export | channels |
incidents.view | crm.incidents |
incidents.handle | crm.incidents |
incidents.assign | crm.incidents |
incidents.view_all | crm.incidents |
incidents.manage_settings | crm.incidents |
incidents.create | crm.incidents |
incidents.lookup | crm.incidents |
incidents.add_note | crm.incidents |
contacts.view | crm.contacts |
contacts.edit | crm.contacts |
contacts.delete | crm.contacts |
contacts.import | crm.contacts |
deals.view | crm.deals |
deals.edit | crm.deals |
tasks.view | crm.tasks |
tasks.edit | crm.tasks |
lists.view | crm.lists |
lists.edit | crm.lists |
services.view | crm.services |
services.edit | crm.services |
reservations.view | crm.reservations |
centers.view | crm.locations |
centers.manage | crm.locations |
team.view | crm.team |
team.manage | crm.team |
team.invite | crm.team |
team.manage_structure | crm.team |
team.manage_roles | crm.team |
ops.planning.view | ops.planning |
ops.planning.edit | ops.planning |
ops.absences.view | ops.absences |
ops.absences.approve | ops.absences |
ops.substitutions.view | ops.substitutions |
ops.substitutions.manage | ops.substitutions |
ops.catalog.edit | ops.catalog |
ops.reports.view | ops.reports |
portal.self | ops |
kb.view | knowledge_base |
kb.edit | knowledge_base |
connections.manage | connections |
metrics.view | metrics |
campaigns.view | campaigns |
campaigns.edit | campaigns |
billing.self | billing |
consumption.view | consumption |
integrations.manage | api.mcp |
Keys
- Format
mk_<prefix>_<secret>. Autonex only stores a SHA-256 fingerprint with a server secret (pepper); the full key cannot be recovered. - Mandatory expiry: 90 days by default, one year at most.
- Immediate revocation from the panel: the MCP checks a revocation list on every call.
- Nobody can create a key with permissions they don't have.
Audit log
Every call is logged for 180 days: key, person, organization, tool, a fingerprint of the arguments, success or error code, response size and latency. The content is not stored: neither the arguments in clear nor the responses (for example, transcripts). Applied changes also leave the usual panel activity.
Transport
HTTPS only (https://mcp.autonexhub.es), with a Let's Encrypt certificate. The server keeps no sessions: every request is authenticated again.
If a key leaks
Revoke it under Settings → API & MCP (or ask Autonex to) and create another. Check the key's usage to see which calls it made.