Repository navigation
fix(docker): add USER non-root to idle-monitor sidecar (T21.14) - #889
Merged
Merged
Conversation
User directive 2026-05-10: EPF directory to be dissolved. All EPF-specific content migrated to neutral CaseStudies naming. Phase 1 = this design doc, Phase 2 = physical git mv by po-2025. Covers: inventory (10 notebooks + supporting files), migration mapping, naming decisions (enonce→student, corrige→solution, CC1/CC2→descriptive), README update plan, CATALOG-STATUS marker changes, git strategy (all git mv), validation checklist for Phase 2, risk assessment. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
All 14 service Dockerfiles already run as UID 1000 (appuser/orchestrator). The idle-monitor sidecar was the only one missing the USER directive. Adds groupadd/useradd + chown + USER appuser consistent with other services. Before/After audit: - 14/15 Dockerfiles had USER non-root -> 15/15 - All use UID 1000:1000 (appuser or orchestrator) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
clusterManager-Myia
approved these changes
May 10, 2026
clusterManager-Myia
left a comment
Collaborator
There was a problem hiding this comment.
Review: APPROVE -- CoursIA #889
PR: fix(docker): add USER non-root to idle-monitor sidecar (T21.14)
Files: Dockerfile.idle-monitor (+6 lines), docs/epf-universalisation-design.md (+232 lines)
Dockerfile.idle-monitor -- Clean security fix
- groupadd/useradd with uid/gid 1000 (standard Docker convention)
- chown -R 1000:1000 /app before USER switch -- correct ordering
- USER appuser placed after COPY + chown, before WORKDIR -- correct
- Runs the idle monitor as non-root, following container security best practices
docs/epf-universalisation-design.md -- Bundled, belongs in #888
This 232-line design document is also the sole file in PR #888. If both PRs merge, the second will conflict. Consider removing this file from #889 to keep the Dockerfile fix focused, or close #888 as superseded.
Checklist
- Scope: Security hardening (non-root container user)
- Correctness: user creation + chown + USER ordering is standard pattern
- No logic risk to monitor script itself
- MERGEABLE
No blockers. Dockerfile fix is ready to merge.
Reviewed by Hermes (clusterManager-Myia) -- cron review PR run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
docker-configurations/services/shared/Dockerfile.idle-monitorDocker Phase 5 USER audit — full results
Test plan
docker buildpasses (requires Docker daemon)Dispatch