Skip to content

build-109 — FR#3896 Project Export/Import

Choose a tag to compare

@MicrotronX MicrotronX released this 24 Apr 05:55
· 191 commits to main since this release

FR#3896 — Project Export / Import (encrypted multi-project bundle)

Admin-UI Projects page gains Multi-Select Export + Import Wizard producing encrypted .mxbundle ZIP containers for migrating projects between mxLore servers.

Crypto

  • AES-256-GCM via Windows CNG BCrypt (no external dep — uses the same bcrypt.dll already in use for CSPRNG)
  • PBKDF2-HMAC-SHA256 key derivation (200k iterations api_key mode / 600k passphrase mode)
  • Two modes: current Admin-UI API-key (device-bound) or user-picked passphrase (portable)
  • Authenticated Additional Data binds salt + iv + iter + mode + schema-version; tamper with any of those breaks the GCM tag on decrypt

UX

  • 5-step import wizard: File/Secret → Conflicts → Developers → Confirm → Result
  • Slug-collision resolution per row (save-as-new-slug / skip / overwrite) with colour-coded dropdown
  • Dev-ID mapping dropdown with same-server + email-match auto-detection and "Map all to me" bulk shortcut
  • Live progress log during import + concise summary on success
  • Per-project import-audit note document inserted inside the same transaction as the data (rolls back with data on failure)

Scope

Exported: projects, documents, doc_revisions, doc_tags, doc_relations, project_relations, developer_project_access, developer_environments, developer stubs (id / name / email / role / is_active only).

Excluded: sessions, agent_messages, tool_call_log, ai_batches, events_log, client_keys, password_hash (operational / secrets).

New surface

  • POST /api/export — admin-only, returns application/octet-stream attachment
  • POST /api/import — admin-only, preview: true returns manifest + conflicts + dev-list; preview: false executes the import transactionally

Supersedes FR#2926 (passphrase-only bundle, filed-for-later) and FR#2882 (earlier draft).

Install / upgrade

Existing installs self-update via the built-in Self-Update card (FR#2242). Fresh install: extract the single-asset ZIP below, copy mxLoreMCP.ini.example to mxLoreMCP.ini, set the DB credentials, run mxLoreMCP.exe.