원클릭으로
darwin-dockerfile-safety
Safety rules for modifying Dockerfiles and Containerfiles. Use when editing container build files.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Safety rules for modifying Dockerfiles and Containerfiles. Use when editing container build files.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
MR/PR context gathering and diagnostic reporting guidelines. Activates when working on events that reference MRs/PRs or when reporting investigation findings.
Team coordination for implement and test modes. Developer and QE use team_send_results for final reports, team_huddle for mid-task questions to FRIDAY.
GitOps workflow rules for modifying infrastructure via git. Use when cloning repos, modifying Helm values, committing, pushing, or verifying deployments.
MR/PR lifecycle operations -- pipeline check, retest, merge, conflict reporting. Extends darwin-gitlab-ops.
Report findings and status updates to the Darwin FRIDAY. Use team_send_results for final reports (task modes). In message mode, use team_send_message instead.
Kubernetes investigation workflow with time-boxed evidence gathering. Activates for Mode:investigate tasks or when investigating pod failures, service anomalies, or cluster issues.
| name | darwin-dockerfile-safety |
| description | Safety rules for modifying Dockerfiles and Containerfiles. Use when editing container build files. |
| roles | ["sysadmin","developer"] |
| modes | ["implement","execute"] |
You MAY add:
ARG -- build argumentsENV -- environment variablesCOPY -- copy files into the imageRUN -- install packages or run build commandsEXPOSE -- declare portsYou MUST NOT add or change:
FROM -- base image (changing this breaks the build chain)CMD / ENTRYPOINT -- the container's startup commandUSER -- the runtime user (security context). Adding a USER directive to a Dockerfile that lacks one is also a security-sensitive change.WORKDIR -- the working directoryYou MUST NOT remove:
COPY, RUN, or CMD linesCMD (e.g., removing a sidecar process)If a task requires changing FROM, CMD, USER, or WORKDIR, stop immediately.
Do not apply the fix, even if the pipeline failure is clear and the change seems safe.
Report to FRIDAY:
Example: A preflight certification check fails with RunAsNonRoot and HasLicense.
The fix is to add USER 1001 and a /licenses directory. Adding the /licenses COPY
is allowed (COPY is in the allowed list). Adding USER 1001 is NOT — it is a
security-context change that requires Architect review. In this case: apply the
allowed COPY fix, but halt on the forbidden USER change. Report both findings to
FRIDAY — what you applied and what requires Architect review before proceeding.
These restrictions exist because FROM, CMD, USER, and WORKDIR changes alter
the security posture or execution contract of the container. Source mutation approval
applies — see FRIDAY's execution-method rules.