mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-14 19:45:08 +08:00
fix(wiki): default source-path validation to fail-closed in production profile
This commit is contained in:
parent
4ffe7026d2
commit
f0cbfc913e
@ -25,3 +25,13 @@ spring:
|
|||||||
h2:
|
h2:
|
||||||
console:
|
console:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
# Production (multi-tenant server) hardening: fail closed on source-path
|
||||||
|
# validation. With no allowed-source-roots configured, every KB source
|
||||||
|
# directory is rejected rather than allowing full-filesystem reads — so a
|
||||||
|
# missing allow-list cannot silently re-open arbitrary directory scanning.
|
||||||
|
# Operators set mate.wiki.allowed-source-roots to permit specific roots.
|
||||||
|
# The default profile (H2 / desktop / single-tenant) leaves this off.
|
||||||
|
mate:
|
||||||
|
wiki:
|
||||||
|
require-allowed-roots: true
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user