mxLore icon indicating copy to clipboard operation
mxLore copied to clipboard

Project Import/Export

Open sakura1977 opened this issue 7 months ago • 2 comments

Die Möglichkeit Projekte über die Admin-UI zu exportieren/importieren.

So kann man Dinge lokal testen und später auf einer Produktionsumgebung bereitstellen.

sakura1977 avatar Apr 15 '26 08:04 sakura1977

Funny coincidence — we filed almost exactly the same feature request internally earlier today (independently, before reading this issue). Both are now cross-linked: this GitHub issue is referenced from our internal spec, and the spec is summarised below.

Captured design (already in our knowledge base):

  • Bundle format: single ZIP with unencrypted manifest.json (KDF params, salt, schema version) + data.enc (AES-256-GCM) + manifest.sig (HMAC integrity)
  • Encryption: user-provided passphrase, PBKDF2-HMAC-SHA256 with ≥600k iterations (OWASP 2023), AES-256-GCM with 12-byte nonce, GCM auth-tag for integrity
  • Scope IN: project metadata, all docs (every doc_type), doc_relations, tags, project_relations, optional embeddings, optional env_vars (toggle at export)
  • Scope OUT: developers/ACL, tool_call_log, access_log, agent_inbox state — those are instance-specific
  • Import flow: schema-version check → key derivation → decrypt → ID-remapping (old auto_increment → new) → conflict resolution dialog (merge/overwrite/abort) → single-transaction insert with rollback on error → import report with doc/relation/tag counts and warnings for inactive cross-project references
  • Interfaces: Admin-UI buttons (download/upload), CLI (--export <project> --out <file> --passphrase <env> for scriptable migrations), REST endpoints with admin-only auth
  • 12 acceptance criteria including roundtrip equality, large-export streaming (10k docs / ~50 MB), and visible "lost passphrase = lost bundle" UX

Meta: Like the User UI issue, this was synced into our knowledge graph by Claude using mxLore itself. Two stakeholders converging on the same idea on the same day made the cross-link especially satisfying.

Will keep this issue open until implementation lands.

MicrotronX avatar Apr 15 '26 10:04 MicrotronX

Shipped in build-109 (commit f8f901d).

What's live: Admin-UI → Projects page → Multi-Select Export + Import Bundle... (always-visible button next to the dev-filter). Encrypted .mxbundle via AES-256-GCM + PBKDF2, two modes: current API-key or passphrase.

Import wizard (5 steps): File + Secret → Slug collisions (3-way: save-as-new-slug / skip / overwrite) → Developer mapping (auto-match by name + email, with Map all to me shortcut) → Confirmation summary → Result with progress log + per-project audit-note.

Scope included: projects, documents (+ revisions + tags + relations), project relations, ACL (developer_project_access), env-vars, developer stubs (id/name/email/role/is_active only).

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

Existing installs self-update via the Self-Update card; fresh installs use the single-asset ZIP on the release.

Superseded FR#2926 + FR#2882 (earlier designs). Thanks for opening the ticket — the feedback framed the crypto-mode choice (dev-key vs passphrase) which shipped as a user-selectable mode.

MicrotronX avatar Apr 24 '26 05:04 MicrotronX