You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Dockerfile has no USER directive. The container process runs as root by default.
The v0.0.5 release notes claim "Non-root user" but this was never implemented.
Security Impact
If the embedding model download or ONNX runtime has a vulnerability, it runs as root — full container compromise.
Fix
# Add after model COPY and before ENTRYPOINT
RUN addgroup --system --gid 1000 uteke && \
adduser --system --uid 1000 --ingroup uteke --home /data uteke
USER uteke
Also ensure:
/data directory permissions set to uteke:uteke
Health check endpoint still works (port binding happens before USER switch)
Acceptance Criteria
Dockerfile contains USER directive with non-root user
Container starts and runs uteke-serve successfully as non-root
Activity
ajianaz commentedon Jun 2, 2026
Fixed in #146 — non-root USER added to Dockerfile with uteke:uteke (uid/gid 1000)
fix: v0.0.6 patch & hardening (#146)
release: initial sync — main catches up to develop (#171)
fix: v0.0.6 patch & hardening (#146)