skrawcz commented on PR #948:
URL: https://github.com/apache/burr/pull/948#issuecomment-6052539265

   Two remaining hardening items before merging:
   
   1. `_safe_join()` currently validates only the application directory in 
`get_application_logs()`. The subsequently opened `graph.json`, `log.jsonl`, 
`metadata.json`, and `children.jsonl` paths are built with plain 
`os.path.join()`. Please apply containment checks to each final file path as 
well, and add tests where each fixed filename is a symlink outside the 
configured storage directory.
   2. The tracking server still mounts writable demo routers by default, and 
those demos use a separate hardcoded `~/.burr` tracking client rather than the 
backend’s configured path. Please make demo routes explicitly opt-in, or at 
minimum document and test this separation. A production-capable tracking server 
should not expose mutation demos by default.
   
   Also incorporate the identifier-regex fix from #946: use `fullmatch()` or an 
end anchor that does not accept a trailing newline.
   
   I view file-level symlink handling as defense-in-depth because the storage 
directory is operator-controlled, but if this PR claims that every server path 
remains inside the configured storage directory, final file paths need to 
satisfy that claim too.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to