Expand description
Dotfile allowlist (F2).
Rejects any inbound request whose path contains a component starting
with . unless that component is explicitly allowlisted. Default
allowlist mirrors JSS: .acl and .meta — the standard Solid
metadata sidecars.
Upstream parity: JavaScriptSolidServer/src/server.js:265-281.
Design context: docs/design/jss-parity/01-security-primitives-context.md.
Structs§
- Dotfile
Allowlist - Dotfile allowlist (aggregate root).
Enums§
- Dotfile
Error - Reason a path was rejected.
- Dotfile
Path Error - Dotfile allowlist errors used by the row-115 free primitive.
Constants§
- DEFAULT_
ALLOWED - Default allowlist entries. Matches JSS behaviour for standard Solid metadata sidecars and the IdP login endpoint (JSS commit 32c0db2).
- ENV_
DOTFILE_ ALLOWLIST - Environment variable: comma-separated dotfile names permitted by the
allowlist. Each entry may or may not include the leading
.; the allowlist stores them normalised (leading.present).
Functions§
- is_
path_ allowed - Decide whether
pathmay be served, purely by inspecting its segments. ReturnsOk(())when every segment is admissible.