forked from 0xWheatyz/SPARC
Document patent PDF volume mount requirement and add S3/MinIO storage option #1209
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
PDFs are stored in a local
patents/directory. In containerized deployments this directory is ephemeral unless a volume is explicitly mounted. This is not currently documented and can lead to data loss.Roadmap reference: ROADMAP.md > P2 > Backend > Patent PDF storage
What to do
STORAGE_BACKENDenvironment variable toconfig.py(localors3).STORAGE_BACKEND=s3, readS3_BUCKET,S3_ENDPOINT_URL(for MinIO compatibility),AWS_ACCESS_KEY_ID, andAWS_SECRET_ACCESS_KEYfrom the environment.StorageBackendinterface solocalands3implementations are interchangeable.Acceptance criteria
STORAGE_BACKEND=localworks exactly as before.STORAGE_BACKEND=s3stores and retrieves PDFs from the configured bucket.This issue has been resolved on main.
SPARC/storage.pyimplements a storage abstraction with pluggable backends for local filesystem and S3-compatible object storage. TheSTORAGE_BACKEND,S3_BUCKET,S3_ENDPOINT_URL, and related config variables are defined inconfig.pylines 57-61. Documentation exists indocs/DEPLOYMENT.md. Closing as complete.