René's URL Explorer Experiment


Title: Feature: --public flag to skip WAC and allow open access · Issue #107 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub

Open Graph Title: Feature: --public flag to skip WAC and allow open access · Issue #107 · JavaScriptSolidServer/JavaScriptSolidServer

X Title: Feature: --public flag to skip WAC and allow open access · Issue #107 · JavaScriptSolidServer/JavaScriptSolidServer

Description: Summary Add a --public flag that disables WAC (Web Access Control) checks, allowing unauthenticated read/write access to all resources. This enables JSS to be used as a simple file server similar to npx serve, but with REST write capabil...

Open Graph Description: Summary Add a --public flag that disables WAC (Web Access Control) checks, allowing unauthenticated read/write access to all resources. This enables JSS to be used as a simple file server similar t...

X Description: Summary Add a --public flag that disables WAC (Web Access Control) checks, allowing unauthenticated read/write access to all resources. This enables JSS to be used as a simple file server similar t...

Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature: --public flag to skip WAC and allow open access","articleBody":"## Summary\n\nAdd a `--public` flag that disables WAC (Web Access Control) checks, allowing unauthenticated read/write access to all resources. This enables JSS to be used as a simple file server similar to `npx serve`, but with REST write capabilities.\n\n**Difficulty**: 15/100  \n**Estimated Effort**: 2-4 hours  \n**Dependencies**: None\n\n---\n\n## Motivation\n\nCurrently, JSS requires either:\n1. ACL files to grant access, or\n2. Authentication via Solid-OIDC\n\nThis makes it impossible to use JSS as a simple \"just serve this folder\" tool like `npx serve`. The `--public` flag would enable:\n\n1. **Quick local development** - No auth setup needed\n2. **Simple file sharing** - LAN file server with write support\n3. **jsserve wrapper** - Foundation for `npx jsserve` (see future issue)\n4. **WebDAV alternative** - Simple REST-based file server\n5. **Testing/demos** - Quick Solid server without auth complexity\n\n---\n\n## Proposed Implementation\n\n### CLI Flag\n\n```bash\njss start --public              # Open read/write, no auth\njss start --public --read-only  # Open read, no writes (like npx serve)\n```\n\n### Environment Variable\n\n```bash\nJSS_PUBLIC=true jss start\n```\n\n### Config File\n\n```json\n{\n  \"public\": true\n}\n```\n\n---\n\n## Implementation Details\n\n### 1. Add flag to CLI (`bin/jss.js`)\n\n```javascript\n.option('--public', 'Allow unauthenticated access to all resources (disables WAC)')\n.option('--read-only', 'Disable PUT/DELETE methods (read-only mode)')\n```\n\n### 2. Add to config (`src/config.js`)\n\n```javascript\nconst DEFAULTS = {\n  // ... existing ...\n  public: false,\n  readOnly: false,\n};\n\n// Environment variable mapping\nif (process.env.JSS_PUBLIC) {\n  config.public = process.env.JSS_PUBLIC === 'true';\n}\nif (process.env.JSS_READ_ONLY) {\n  config.readOnly = process.env.JSS_READ_ONLY === 'true';\n}\n```\n\n### 3. Skip WAC when public (`src/auth/middleware.js`)\n\n```javascript\nexport async function authorize(request, reply) {\n  // Public mode - skip all auth/WAC checks\n  if (request.config?.public) {\n    return; // Allow request to proceed\n  }\n  \n  // ... existing WAC logic ...\n}\n```\n\n### 4. Block writes when read-only (`src/handlers/resource.js`, `src/handlers/container.js`)\n\n```javascript\n// At start of PUT/DELETE handlers\nif (request.config?.readOnly) {\n  return reply.code(405).send({ \n    error: 'Method Not Allowed',\n    message: 'Server is in read-only mode'\n  });\n}\n```\n\n---\n\n## Behavior Matrix\n\n| Flag Combination | GET | PUT/DELETE | Auth Required |\n|------------------|-----|------------|---------------|\n| (default) | ACL | ACL | Yes (if ACL requires) |\n| `--public` | ✅ Allow | ✅ Allow | No |\n| `--public --read-only` | ✅ Allow | ❌ Block | No |\n| `--read-only` (no public) | ACL | ❌ Block | Yes |\n\n---\n\n## Security Considerations\n\n### Warning on Startup\n\nWhen `--public` is enabled, show a clear warning:\n\n```\n⚠️  WARNING: Server running in PUBLIC mode\n   All files are readable and writable without authentication.\n   Do not use in production or expose to the internet.\n```\n\n### Binding to localhost by default?\n\nConsider: When `--public` is set, should the default host be `localhost` instead of `0.0.0.0`?\n\n```javascript\nif (config.public && !explicitHostSet) {\n  config.host = 'localhost'; // Safer default for public mode\n}\n```\n\nUser can override with `--public --host 0.0.0.0` if they explicitly want network access.\n\n---\n\n## Examples\n\n### Local Development\n```bash\n# Quick Solid-compatible file server for development\njss start --public --port 3000 --root ./test-data\n```\n\n### Read-Only File Sharing\n```bash\n# Share files on LAN, no writes allowed\njss start --public --read-only --host 0.0.0.0 --root ~/shared\n```\n\n### Testing Solid Apps\n```bash\n# Test app without auth complexity\njss start --public --root ./fixtures\nnpm test\n```\n\n---\n\n## Files to Modify\n\n| File | Changes |\n|------|---------|\n| `bin/jss.js` | Add `--public` and `--read-only` options (~5 LOC) |\n| `src/config.js` | Add defaults and env var mapping (~10 LOC) |\n| `src/auth/middleware.js` | Skip WAC when public (~5 LOC) |\n| `src/handlers/resource.js` | Block writes when read-only (~5 LOC) |\n| `src/handlers/container.js` | Block writes when read-only (~5 LOC) |\n| **Total** | **~30 LOC** |\n\n---\n\n## Testing\n\n```javascript\ndescribe('--public flag', () => {\n  it('should allow unauthenticated GET', async () => {\n    const server = await createServer({ public: true, root: tmpDir });\n    const res = await request(server).get('/file.txt');\n    expect(res.status).toBe(200);\n  });\n\n  it('should allow unauthenticated PUT', async () => {\n    const server = await createServer({ public: true, root: tmpDir });\n    const res = await request(server)\n      .put('/new-file.txt')\n      .send('content');\n    expect(res.status).toBe(201);\n  });\n\n  it('should block PUT when read-only', async () => {\n    const server = await createServer({ public: true, readOnly: true, root: tmpDir });\n    const res = await request(server)\n      .put('/new-file.txt')\n      .send('content');\n    expect(res.status).toBe(405);\n  });\n});\n```\n\n---\n\n## Related Issues\n\n- Future: `jsserve` package (thin wrapper using this flag)\n- #100 - Production Readiness (this is a dev/convenience feature)\n\n---\n\n## Open Questions\n\n1. Should `--public` default to `localhost` binding for safety?\n2. Should there be a `--public-read` (read-only public) shorthand?\n3. Should `--public` disable IdP/login UI entirely, or just make it optional?","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-28T09:54:26Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e2706208-8d14-388a-d117-9a978e2be8ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDB3C:3C1C49:2DFEDEF:3C5BBB7:6B0390EC
html-safe-nonce52f74c1b7cfea75b55f10d7fe02898e486550a1421eaa7c05eb36340398d575a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjNDOjNDMUM0OToyREZFREVGOjNDNUJCQjc6NkIwMzkwRUMiLCJ2aXNpdG9yX2lkIjoiMzcxOTM0ODQxOTIxMTUzMDQ3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4c31108673109bdbdbdcf3b1bbc06ea86ad20248c579485a6be2a41b2db3245d
hovercard-subject-tagissue:3864569336
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/107/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8f96a5bff090354a7dafa3cc328ff5c8fd5e5604f6e63c96a4381b4dcb8466eb/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8f96a5bff090354a7dafa3cc328ff5c8fd5e5604f6e63c96a4381b4dcb8466eb/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
og:image:altSummary Add a --public flag that disables WAC (Web Access Control) checks, allowing unauthenticated read/write access to all resources. This enables JSS to be used as a simple file server similar t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemelvincarvalho
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git
octolytics-dimension-user_id205442424
octolytics-dimension-user_loginJavaScriptSolidServer
octolytics-dimension-repository_id958025407
octolytics-dimension-repository_nwoJavaScriptSolidServer/JavaScriptSolidServer
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id958025407
octolytics-dimension-repository_network_root_nwoJavaScriptSolidServer/JavaScriptSolidServer
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F107
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJavaScriptSolidServer%2FJavaScriptSolidServer%2Fissues%2F107
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=JavaScriptSolidServer%2FJavaScriptSolidServer
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
Reloadhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer
JavaScriptSolidServerhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Codehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer
Issues165 (165)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues
Pull requests14 (14)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pulls
Actionshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/actions
Projectshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/projects
Security and qualityhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/security
Insightshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/insights
https://github.com/JavaScriptSolidServer/JavaScriptSolidServer
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
New issuehttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
#109https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/109
Feature: --public flag to skip WAC and allow open accesshttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107#top
#109https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/109
https://github.com/melvincarvalho
melvincarvalhohttps://github.com/melvincarvalho
on Jan 28, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107#issue-3864569336
Roadmap: Production Readiness for v0.1 Release - Code Quality & Cleanup #100https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/100
melvincarvalhohttps://github.com/melvincarvalho
on Jan 28, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107#event-22341816561
feat: add --public and --read-only flags for open access modehttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/c564dc5a563cf5b00286b24c40ec9084889cce70
c564dc5https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/c564dc5a563cf5b00286b24c40ec9084889cce70
feat: add --public and --read-only flags for open access mode (#109)https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/a0466f4bfd5750e1a7a7af3f502fc9feef266839
#109https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/109
a0466f4https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/a0466f4bfd5750e1a7a7af3f502fc9feef266839
melvincarvalhohttps://github.com/melvincarvalho
completedhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#109https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/109
on Jan 28, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107#event-22342438749
melvincarvalhohttps://github.com/melvincarvalho
on Jul 2, 2026https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107#event-27455286627
fix(server-root): skip landing-page seeding in --public mode (#578) (#…https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/ec8547b8081e11c5f1a211828bd20d07e782a956
#578https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/578
#…https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/pull/579
ec8547bhttps://github.com/JavaScriptSolidServer/JavaScriptSolidServer/commit/ec8547b8081e11c5f1a211828bd20d07e782a956
Sign up for freehttps://github.com/signup?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
Sign in to commenthttps://github.com/login?return_to=https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/107
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.