Foundation for the move/quarantine pipeline. Lets users register one or
more remote SFTP destinations through the API, store credentials at rest
under /data/sftp/{id}.{password|key} (mode 600), and verify connectivity
+ write access via a test endpoint.
Endpoints:
GET /api/sftp/destinations
POST /api/sftp/destinations — create
PUT /api/sftp/destinations/{id} — update
DELETE /api/sftp/destinations/{id}
POST /api/sftp/destinations/{id}/test — connect, stat base_path, mkdir probe
POST /api/sftp/keypair — generate ED25519 keypair
Host keys pinned per-destination on first connect (TOFU); subsequent
mismatches are rejected. paramiko added to requirements.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
14 lines
286 B
Plaintext
14 lines
286 B
Plaintext
# torch + torchvision come pre-installed in the pytorch/pytorch base image
|
|
# (torchvision needed for image transforms)
|
|
torchvision==0.18.1
|
|
|
|
fastapi==0.115.6
|
|
uvicorn==0.32.1
|
|
Pillow==11.0.0
|
|
imagehash==4.3.1
|
|
pillow-heif==0.21.0
|
|
jinja2==3.1.4
|
|
aiofiles==24.1.0
|
|
numpy==1.26.4
|
|
paramiko==3.5.0
|