Clarify artifact root symlink behavior
This commit is contained in:
@@ -77,9 +77,9 @@ HTTP artifact root behavior:
|
||||
|
||||
- `server.artifact_root` applies only to `serve`.
|
||||
- HTTP `inline` input references work without an artifact root.
|
||||
- HTTP `file` input references are resolved against `server.artifact_root` and must stay inside it.
|
||||
- Relative traversal and absolute paths outside the root are rejected.
|
||||
- Symlinks inside the root are followed by the operating system; do not make the artifact root writable by untrusted users.
|
||||
- HTTP `file` input references are resolved against `server.artifact_root` with lexical path checks.
|
||||
- Relative traversal and absolute paths that are lexically outside the root are rejected.
|
||||
- Symlinks inside the root are followed by the operating system, including symlinks that point outside the root. Do not make the artifact root writable by untrusted users.
|
||||
- CLI `run` and `render` file inputs keep their normal direct filesystem path behavior.
|
||||
|
||||
HTTP size-limit behavior:
|
||||
@@ -298,9 +298,9 @@ Rules:
|
||||
- Invalid generated JSON causes validation status `failed` (not a runtime error).
|
||||
|
||||
Supported artifact reference types for request inputs are `file` and `inline`.
|
||||
For HTTP `serve`, `file` references require `server.artifact_root` and must stay
|
||||
inside that root. CLI `run` and `render` file inputs are not restricted by
|
||||
`server.artifact_root`.
|
||||
For HTTP `serve`, `file` references require `server.artifact_root` and must pass
|
||||
lexical containment checks against that root. CLI `run` and `render` file inputs
|
||||
are not restricted by `server.artifact_root`.
|
||||
|
||||
## Secrets Handling
|
||||
|
||||
|
||||
Reference in New Issue
Block a user