writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
openclaw-deployment-hardeningSecure OpenClaw deployments with preflight hardening checks, CI/CD guardrails, container runtime restrictions, and post-deploy verification. Use when shipping OpenClaw with Docker, Kubernetes, or automated release pipelines.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this skill to add repeatable security gates around OpenClaw build and deployment workflows.
Add mandatory controls to CI before artifacts are promoted:
Example CI step order:
# Build
npm ci
npm run build
# Security gates
trivy fs .
trivy image my-registry/openclaw:${GIT_SHA}
syft my-registry/openclaw:${GIT_SHA} -o spdx-json > sbom.json
cosign sign --key cosign.key my-registry/openclaw:${GIT_SHA}
Run OpenClaw with restrictive defaults:
no-new-privileges enabledKubernetes-oriented expectations:
runAsNonRoot: trueallowPrivilegeEscalation: falsereadOnlyRootFilesystem: trueRequire explicit promotion checks:
Avoid mutable latest tags for production OpenClaw services.
Run a hardening smoke test immediately after rollout:
kubectl get pods -n openclaw
kubectl auth can-i --as=system:serviceaccount:openclaw:default list secrets -n openclaw
kubectl get networkpolicy -n openclaw
kubectl logs deploy/openclaw -n openclaw --tail=200
Verify:
Maintain a hardened rollback workflow: