refactor(artifacts): extract resolve_artifact_path to shared module
Move artifact path validation + symlink-escape check out of the admin-gated download endpoint into decnet/artifacts/paths.py so the TTP EmailLifter can disk-reach .eml files at tag-time without duplicating regex/root logic (DEBT-047). The router now catches ArtifactPathError and re-raises HTTPException(400); behavior is unchanged.
This commit is contained in:
1
decnet/artifacts/__init__.py
Normal file
1
decnet/artifacts/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
"""Artifact storage helpers shared between the web router and TTP workers."""
|
||||
Reference in New Issue
Block a user