Title: docs: git-on-Solid — architectural patterns and security surfaces · Issue #1 · JavaScriptSolidServer/docs · GitHub
Open Graph Title: docs: git-on-Solid — architectural patterns and security surfaces · Issue #1 · JavaScriptSolidServer/docs
X Title: docs: git-on-Solid — architectural patterns and security surfaces · Issue #1 · JavaScriptSolidServer/docs
Description: Background JSS supports git over HTTP via git-http-backend. As git-on-Solid usage grows (agent workflows, versioned data, lightweight collaboration), JSS docs would benefit from a clear treatment of how git and Solid compose — and how th...
Open Graph Description: Background JSS supports git over HTTP via git-http-backend. As git-on-Solid usage grows (agent workflows, versioned data, lightweight collaboration), JSS docs would benefit from a clear treatment o...
X Description: Background JSS supports git over HTTP via git-http-backend. As git-on-Solid usage grows (agent workflows, versioned data, lightweight collaboration), JSS docs would benefit from a clear treatment o...
Opengraph URL: https://github.com/JavaScriptSolidServer/docs/issues/1
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs: git-on-Solid — architectural patterns and security surfaces","articleBody":"## Background\n\nJSS supports git over HTTP via `git-http-backend`. As git-on-Solid usage grows (agent workflows, versioned data, lightweight collaboration), JSS docs would benefit from a clear treatment of how git and Solid compose — and how they don't.\n\nThis issue proposes a docs page covering the architectural patterns and security surfaces involved.\n\n## The architectural question\n\nGit and Solid are different protocols with different security surfaces:\n\n| Aspect | Solid | Git |\n|--------|-------|-----|\n| Resource model | URL-addressable resources | Content-addressed objects (SHA-keyed) |\n| Access control | Per-resource (WAC, ACP) | Per-repository |\n| State boundary | All resources URL-accessible by design | `.git/` is internal protocol state, not transport |\n| Read pattern | `GET` single resource | `git clone` (full object graph in one operation) |\n\nTwo patterns emerge:\n\n### Pattern A — URL-flattening\nStore the working tree (including `.git/`) as Solid resources. Each file in `.git/` becomes individually addressable via Solid's normal serving semantics.\n\n- **Pros:** No extra server tooling; uses Solid's native model.\n- **Cons:** Exposes `.git/HEAD`, refs, and packed objects as URL-accessible. Read access to any one yields the full repository history. Git's repo-level access model is replaced by Solid's per-resource ACL, which doesn't naturally express \"all of `.git/` is internal.\"\n\n### Pattern B — Protocol gateway\nServe git through `git-http-backend` (smart-HTTP), block direct `.git/` URL access at the server layer.\n\n- **Pros:** Preserves git's repo-level access model; clients use the standard `git clone`/`push`/`pull` protocol; `.git/` internals are not URL-addressable.\n- **Cons:** Requires server-side git tooling.\n\nJSS implements Pattern B.\n\n## Why this matters\n\nMixing protocols by URL-flattening one into another is a recurring web anti-pattern (early CGI exposing `.htaccess`, filesystem-mapped HTTP servers leaking dotfiles). The general principle: **a protocol's \"internal state\" boundary should not become another protocol's \"publicly addressable\" surface.**\n\nFor git, this matters specifically because the entire repo history is *always* present in `.git/`. There is no way to use Solid's per-resource ACL to expose \"just the latest version\" — once any `.git/object/...` is reachable, the full DAG is reachable.\n\n## Prior work\n\n- JSS Issue on `.git/` exposure: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/28\n- Reference implementation pattern using `git-http-backend`: https://gist.github.com/melvincarvalho/054479068a699dcde97bbd9046ae247b\n\n## Proposed docs page\n\nA new page under `docs/` (e.g., `docs/git-on-solid.md`) covering:\n\n1. **Overview** — use cases including agent workflows (cf. GitFork-style ephemeral repos, https://gitfork.app), versioned personal data, and lightweight collaboration\n2. **Two architectural patterns** — the table above plus prose\n3. **Security comparison** — what each pattern exposes; ACL/repo-level model mismatch under URL-flattening\n4. **JSS reference pattern** — `git-http-backend` behind Solid auth, minimal worked example\n5. **Server-side dotfile policy** — recommend blocking `.git/`, `.env`, `.ssh/` by default\n6. **Cross-references** — Issue #28, the gist, related Solid spec pages\n\nHappy to draft the initial page if this issue gets a green light.","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-04-25T19:45:01Z","url":"https://github.com/JavaScriptSolidServer/docs/issues/1"}
| 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:fbe65970-ed69-d2be-34ff-7322b4d358ff |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA48:21BFE4:BCBE43:FA9967:6B03AFE7 |
| html-safe-nonce | 6e38dcc651a6c0f7f2bb0591af1390b89e822df863e8ea562999f61df99e5d25 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTQ4OjIxQkZFNDpCQ0JFNDM6RkE5OTY3OjZCMDNBRkU3IiwidmlzaXRvcl9pZCI6IjU4ODQ5MDIwOTE0OTM3ODMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 630305f163d61e7c4f13832dcc474becdccebf3cac75090d1d3a1ac83206676c |
| hovercard-subject-tag | issue:4329057911 |
| 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/docs/1/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f042a3e14ea2443df694f59a84553aaa064496f6be4d210bb2d49a6372ae7f7d/JavaScriptSolidServer/docs/issues/1 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f042a3e14ea2443df694f59a84553aaa064496f6be4d210bb2d49a6372ae7f7d/JavaScriptSolidServer/docs/issues/1 |
| og:image:alt | Background JSS supports git over HTTP via git-http-backend. As git-on-Solid usage grows (agent workflows, versioned data, lightweight collaboration), JSS docs would benefit from a clear treatment o... |
| 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/docs git https://github.com/JavaScriptSolidServer/docs.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 1126345548 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/docs |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126345548 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/docs |
| 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