security: Apply Agents Council Security Recommendations #2000
+51
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements security recommendations from a comprehensive Agents Council review.
Agents Council Verdict
Changes Made
1. Docker Security Hardening
USER nodedirective to Dockerfile2. Security Documentation Updates
Why These Changes
The Dockerfile previously ran as root, which is a common security anti-pattern. The
node:22-bookwormbase image includes a pre-configurednodeuser (uid 1000) that we now leverage for reduced attack surface.The SECURITY.md updates provide clear guidance on:
Security Analysis
Watchdog Inspection: SAFE WITH CONDITIONS (LOW risk)
Agents Council Score: 8.8/10
Council Member Assessments:
Test Plan
Backward Compatibility
This change is backward compatible. The USER directive only affects container runtime behavior, not the application code.
Note on Node.js Version
The CI already uses Node.js 22.x with
check-latest: true, which ensures the latest patches are applied. The documentation changes clarify this requirement for users.Reviewed by: Agents Council (AI/ML, Code Reviewer, Documentation, Git/GitHub Expert, Security Reviewer)
Security Verified by: The Watchdog