Rebrand SooSeF to FieldWitness
Complete project rebrand for better positioning in the press freedom and digital security space. FieldWitness communicates both field deployment and evidence testimony — appropriate for the target audience of journalists, NGOs, and human rights organizations. Rename mapping: - soosef → fieldwitness (package, CLI, all imports) - soosef.stegasoo → fieldwitness.stego - soosef.verisoo → fieldwitness.attest - ~/.soosef/ → ~/.fwmetadata/ (innocuous data dir name) - SOOSEF_DATA_DIR → FIELDWITNESS_DATA_DIR - SoosefConfig → FieldWitnessConfig - SoosefError → FieldWitnessError Also includes: - License switch from MIT to GPL-3.0 - C2PA bridge module (Phase 0-2 MVP): cert.py, export.py, vendor_assertions.py - README repositioned to lead with provenance/federation, stego backgrounded - Threat model skeleton at docs/security/threat-model.md - Planning docs: docs/planning/c2pa-integration.md, docs/planning/gtm-feasibility.md Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# SooSeF Federation Server
|
||||
# FieldWitness Federation Server
|
||||
# Multi-stage build for minimal image size.
|
||||
#
|
||||
# Tier 2: Org server (full features — web UI, attestation, federation, stego)
|
||||
# docker build -t soosef-server .
|
||||
# docker run -v soosef-data:/data -p 5000:5000 -p 8000:8000 soosef-server
|
||||
# docker build -t fieldwitness-server .
|
||||
# docker run -v fieldwitness-data:/data -p 5000:5000 -p 8000:8000 fieldwitness-server
|
||||
#
|
||||
# Tier 3: Federation relay (attestation + federation only, no stego, no web UI)
|
||||
# docker build --target relay -t soosef-relay .
|
||||
# docker run -v relay-data:/data -p 8000:8000 soosef-relay
|
||||
# docker build --target relay -t fieldwitness-relay .
|
||||
# docker run -v relay-data:/data -p 8000:8000 fieldwitness-relay
|
||||
|
||||
# === Stage 1: Build dependencies ===
|
||||
FROM python:3.12-slim-bookworm AS builder
|
||||
@@ -22,8 +22,8 @@ WORKDIR /build
|
||||
COPY . .
|
||||
|
||||
# Install into a virtual environment for clean copying
|
||||
RUN python -m venv /opt/soosef-env \
|
||||
&& /opt/soosef-env/bin/pip install --no-cache-dir \
|
||||
RUN python -m venv /opt/fieldwitness-env \
|
||||
&& /opt/fieldwitness-env/bin/pip install --no-cache-dir \
|
||||
".[web,cli,attest,stego-dct,api,federation]"
|
||||
|
||||
# === Stage 2: Federation relay (minimal) ===
|
||||
@@ -32,21 +32,21 @@ FROM python:3.12-slim-bookworm AS relay
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libjpeg62-turbo libopenblas0 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& useradd -m -s /bin/bash soosef
|
||||
&& useradd -m -s /bin/bash fieldwitness
|
||||
|
||||
COPY --from=builder /opt/soosef-env /opt/soosef-env
|
||||
COPY --from=builder /opt/fieldwitness-env /opt/fieldwitness-env
|
||||
|
||||
ENV PATH="/opt/soosef-env/bin:$PATH" \
|
||||
SOOSEF_DATA_DIR=/data \
|
||||
ENV PATH="/opt/fieldwitness-env/bin:$PATH" \
|
||||
FIELDWITNESS_DATA_DIR=/data \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
VOLUME /data
|
||||
EXPOSE 8000
|
||||
|
||||
USER soosef
|
||||
USER fieldwitness
|
||||
|
||||
# Federation relay: only the verisoo API with federation endpoints
|
||||
CMD ["uvicorn", "soosef.verisoo.api:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
# Federation relay: only the attest API with federation endpoints
|
||||
CMD ["uvicorn", "fieldwitness.attest.api:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \
|
||||
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"
|
||||
@@ -57,25 +57,25 @@ FROM python:3.12-slim-bookworm AS server
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libjpeg62-turbo libopenblas0 \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& useradd -m -s /bin/bash soosef
|
||||
&& useradd -m -s /bin/bash fieldwitness
|
||||
|
||||
COPY --from=builder /opt/soosef-env /opt/soosef-env
|
||||
COPY --from=builder /opt/fieldwitness-env /opt/fieldwitness-env
|
||||
|
||||
# Copy frontend templates and static assets
|
||||
COPY frontends/ /opt/soosef-env/lib/python3.12/site-packages/frontends/
|
||||
COPY frontends/ /opt/fieldwitness-env/lib/python3.12/site-packages/frontends/
|
||||
|
||||
ENV PATH="/opt/soosef-env/bin:$PATH" \
|
||||
SOOSEF_DATA_DIR=/data \
|
||||
ENV PATH="/opt/fieldwitness-env/bin:$PATH" \
|
||||
FIELDWITNESS_DATA_DIR=/data \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
VOLUME /data
|
||||
EXPOSE 5000 8000
|
||||
|
||||
USER soosef
|
||||
USER fieldwitness
|
||||
|
||||
# Init on first run, then start web UI (HTTPS by default with self-signed cert).
|
||||
# Use --no-https explicitly if running behind a TLS-terminating reverse proxy.
|
||||
CMD ["sh", "-c", "soosef init 2>/dev/null; soosef serve --host 0.0.0.0"]
|
||||
CMD ["sh", "-c", "fieldwitness init 2>/dev/null; fieldwitness serve --host 0.0.0.0"]
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \
|
||||
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:5000/health')"
|
||||
|
||||
Reference in New Issue
Block a user