Title: Add self-service data export — download all my pod data · Issue #353 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Add self-service data export — download all my pod data · Issue #353 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Add self-service data export — download all my pod data · Issue #353 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Summary Round out the user-rights trio (alongside #351 self-service password change and #352 self-service account deletion) with a way for an authenticated user to download all their data as a single archive. This is the export side of t...
Open Graph Description: Summary Round out the user-rights trio (alongside #351 self-service password change and #352 self-service account deletion) with a way for an authenticated user to download all their data as a sing...
X Description: Summary Round out the user-rights trio (alongside #351 self-service password change and #352 self-service account deletion) with a way for an authenticated user to download all their data as a sing...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/353
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add self-service data export — download all my pod data","articleBody":"## Summary\n\nRound out the user-rights trio (alongside #351 self-service password change and #352 self-service account deletion) with a way for an authenticated user to download all their data as a single archive.\n\nThis is the export side of the same picture: an end user should be able to walk away with what they own without operator help and without shell access.\n\n## Current state\n\n- No HTTP export endpoint.\n- No CLI export command.\n- Pod data lives on the filesystem at `\u003croot>/\u003cpodName>/...`. With #348 the pod root may also coincide with the data root for single-user installs.\n- Account metadata lives in `~/.idp/accounts/\u003cid>.json`.\n\n## Proposed shape\n\n### Endpoint\n\n```\nGET /idp/account/export\nAuthorization: \u003cexisting session / DPoP>\nAccept: application/x-tar+gzip\n\n→ 200\nContent-Type: application/x-tar+gzip\nContent-Disposition: attachment; filename=\"jss-export-\u003cwebid-slug>-\u003cisodate>.tar.gz\"\n\u003cstreamed tar.gz>\n```\n\n- Owner-only — caller's WebID must match the account's WebID.\n- Streamed (no temp file, no full pod load into memory) so a multi-GB pod doesn't OOM the server.\n- 401 unauthenticated; 403 cross-account.\n\n### Archive contents\n\n```\njss-export/\n├── manifest.json # webId, username, email, createdAt, exportedAt, jss version\n├── account.json # full account record minus passwordHash\n└── pod/ # pod tree, exact filesystem layout including dotfiles\n ├── .acl\n ├── profile/card.jsonld\n ├── public/...\n └── ...\n```\n\n`manifest.json` lets a future \"import to a fresh JSS\" path reconstruct enough to get a usable pod.\n\n### UI\n\nA \"Download my data\" button on the `/idp/account` settings page. Single click → triggers the streamed download. No password re-entry needed (this is a read, not a destructive action — auth is sufficient).\n\n## Out of scope\n\n- **Re-import** — separate feature, separate issue when there's demand. Decoupling export from import keeps this issue small.\n- **Cross-server pod migration** (Solid pod portability) — bigger spec problem, separate.\n- **Periodic / scheduled backups** — operator concern, not a per-user right.\n- **Per-resource selection / partial export** — defer until someone asks. The 80% case is \"give me everything\".\n\n## Acceptance\n\n- New endpoint streams a tar.gz of the user's pod data plus an `account.json` and `manifest.json`.\n- Authenticated owner gets 200 + the archive.\n- Unauthenticated → 401; cross-account attempt → 403.\n- Output is a valid tar.gz — `tar -tzf` lists all expected files; `tar -xzf` reconstructs the tree exactly (including dotfiles like `.acl`, `.meta`, `.quota.json`).\n- `manifest.json` includes WebID, username, email, account createdAt, server-side exportedAt timestamp, and the JSS version that produced the archive.\n- `passwordHash` is **not** included in `account.json` (security — bcrypt is per-server, no portability value, and a leaked dump would let an attacker brute-force).\n- New `/idp/account` UI exposes a \"Download my data\" button that triggers the export.\n- Tests cover happy path, the two auth failure modes, dotfile preservation, and a roundtrip extraction sanity check.\n","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-02T21:11:50Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/353"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a2196565-66c1-e47d-ded0-2fb70d1d6767 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CFE0:3D4AFB:89D5EC:AECF75:6B039F1C |
| html-safe-nonce | 7a99aa28a4c587677c98195951215a0efccc51672b131fcd01fe32a7323e6664 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkUwOjNENEFGQjo4OUQ1RUM6QUVDRjc1OjZCMDM5RjFDIiwidmlzaXRvcl9pZCI6IjY1NTgxMTY1MDI0MzA3ODUzMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0279280855816bb72c6fab0d69d814d907429350672c4943c54e58bd9c0178d6 |
| hovercard-subject-tag | issue:4370036931 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/353/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5a03d8052cd3e0b0d6f6cbe601de60d61f57f54f5bda01d4b09012015c4176d/JavaScriptSolidServer/JavaScriptSolidServer/issues/353 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5a03d8052cd3e0b0d6f6cbe601de60d61f57f54f5bda01d4b09012015c4176d/JavaScriptSolidServer/JavaScriptSolidServer/issues/353 |
| og:image:alt | Summary Round out the user-rights trio (alongside #351 self-service password change and #352 self-service account deletion) with a way for an authenticated user to download all their data as a sing... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width