Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)48k · #5378

openclaw-deployment-hardening

Skill này làm gì

Công cụ này giúp làm cho việc triển khai hệ thống OpenClaw an toàn hơn. Nó kiểm tra các vấn đề bảo mật trước, trong và sau khi triển khai, như lỗ hổng trong mã và cấu hình, đồng thời đảm bảo chỉ người dùng được phép mới có quyền truy cập.

Khi nào nên dùng

  • ✓Trước khi đưa một hệ thống OpenClaw vào hoạt động thực tế.
  • ✓Khi cập nhật một hệ thống OpenClaw đang có.
  • ✓Khi bạn nghi ngờ một hệ thống OpenClaw có thể đã bị xâm nhập.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/openclaw-deployment-hardening/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/openclaw-deployment-hardening/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kiểm tra bảo mật việc triển khai OpenClaw của tôi trước khi đưa vào hoạt động thực tế.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ chạy các kiểm tra tự động để tìm lỗ hổng bảo mật trong mã, cấu hình và môi trường nơi OpenClaw sẽ chạy. Nó cũng đảm bảo hệ thống chạy với quyền tối thiểu cần thiết và dữ liệu nhạy cảm được bảo vệ.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

OpenClaw Deployment Hardening

Use this skill to add repeatable security gates around OpenClaw build and deployment workflows.

Enforce a Secure Build Pipeline

Add mandatory controls to CI before artifacts are promoted:

  1. Dependency and lockfile vulnerability scan (fail on critical CVEs).
  2. Image scan for OS/package vulnerabilities.
  3. Secret scanning across source and build context.
  4. SBOM generation and artifact signing.
  5. Policy check that blocks deploy when controls fail.

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}

Lock Down Container Runtime

Run OpenClaw with restrictive defaults:

  • Non-root user in container
  • Read-only root filesystem where possible
  • Drop all Linux capabilities, add back only required
  • no-new-privileges enabled
  • Constrained CPU/memory limits to reduce abuse impact
  • Seccomp/AppArmor (or equivalent) profile enforced

Kubernetes-oriented expectations:

  • runAsNonRoot: true
  • allowPrivilegeEscalation: false
  • readOnlyRootFilesystem: true
  • network policy deny-all baseline with explicit allow rules

Gate Production Promotion

Require explicit promotion checks:

  • Security sign-off on CVE exceptions.
  • Signed artifact verification in deployment stage.
  • Drift check between expected and live manifest values.
  • Deployment only from immutable tags or digests.

Avoid mutable latest tags for production OpenClaw services.

Protect Data and Session Surfaces

  • Minimize prompt/response retention by policy.
  • Mask secrets and PII in logs before shipping to SIEM.
  • Encrypt persistent volumes and backups.
  • Isolate tenant/session data boundaries when serving multiple teams.

Post-Deploy Verification

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:

  • Pod security context matches policy.
  • Service account permissions are least privilege.
  • Ingress auth/rate limits are effective.
  • No plaintext secrets appear in logs.

Incident-Ready Rollback Pattern

Maintain a hardened rollback workflow:

  1. Freeze further rollouts.
  2. Revoke suspect tokens and rotate secrets.
  3. Roll back to last signed known-good image digest.
  4. Re-run post-deploy hardening verification.
  5. Capture timeline and artifacts for forensics.

Related Skills

  • container-hardening (container-hardening) - Container security baseline controls
  • kubernetes-hardening (kubernetes-hardening) - Pod and cluster hardening patterns
  • sbom-supply-chain (sbom-supply-chain) - SBOM, signing, and provenance controls

When to Use

  • You need the security workflow covered by this skill (secrets, scanning, network defense, operations, AI security) inside an authorized scope.

Limitations

  • Apply guidance only within authorized scope; test destructive steps in non-production first.
  • Docs-only import: upstream scripts and templates not bundled.

Example

# Read-only first: inventory before any active step.
which <tool> && <tool> --help | head -n 20

Adapted from BagelHole/DevOps-Security-Agent-Skills (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.

Câu hỏi thường gặp

“Security gates” là gì?

Đây là các điểm kiểm tra bắt buộc mà hệ thống phải vượt qua để đảm bảo an toàn trước khi chuyển sang giai đoạn tiếp theo, như đưa vào hoạt động thực tế.

“SBOM” là gì?

SBOM là viết tắt của “Software Bill of Materials” (danh sách vật liệu phần mềm). Nó giống như danh sách thành phần của phần mềm, liệt kê chi tiết mọi thành phần dùng trong quá trình xây dựng.

“Non-root user” và “read-only filesystem” nghĩa là gì?

Chạy với “non-root user” nghĩa là dùng một tài khoản có ít quyền hơn, giúp hạn chế thiệt hại nếu có sự cố. “Read-only filesystem” (hệ thống tệp chỉ đọc) ngăn hệ thống sửa đổi chính các tệp của nó, giúp tăng cường bảo mật.

Chi tiết

Mô tả gốc của tác giả

Secure OpenClaw deployments with preflight hardening checks, CI/CD guardrails, container runtime restrictions, and post-deploy verification.

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5378
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự