mtls-configuration – skill DevOps & Hạ tầng cho agent AI
Cấu hình mutual TLS (mTLS) cho giao tiếp zero-trust giữa các dịch vụ. Dùng khi triển khai mạng zero-trust, quản lý chứng chỉ hoặc bảo mật giao tiếp nội bộ giữa các dịch vụ.
Cài skill mtls-configuration bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/mtls-configuration-70c09.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /mtls-configuration – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/mtls-configuration-70c09.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $mtls-configuration – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/mtls-configuration-70c09.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /mtls-configuration – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/mtls-configuration-70c09.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /mtls-configuration – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
mTLS Configuration
Comprehensive guide to implementing mutual TLS for zero-trust service mesh communication.
When to Use This Skill
- Implementing zero-trust networking
- Securing service-to-service communication
- Certificate rotation and management
- Debugging TLS handshake issues
- Compliance requirements (PCI-DSS, HIPAA)
- Multi-cluster secure communication
Core Concepts
1. mTLS Flow
┌─────────┐ ┌─────────┐
│ Service │ │ Service │
│ A │ │ B │
└────┬────┘ └────┬────┘
│ │
┌────┴────┐ TLS Handshake ┌────┴────┐
│ Proxy │◄───────────────────────────►│ Proxy │
│(Sidecar)│ 1. ClientHello │(Sidecar)│
│ │ 2. ServerHello + Cert │ │
│ │ 3. Client Cert │ │
│ │ 4. Verify Both Certs │ │
│ │ 5. Encrypted Channel │ │
└─────────┘ └─────────┘2. Certificate Hierarchy
Root CA (Self-signed, long-lived)
│
├── Intermediate CA (Cluster-level)
│ │
│ ├── Workload Cert (Service A)
│ └── Workload Cert (Service B)
│
└── Intermediate CA (Multi-cluster)
│
└── Cross-cluster certsTemplates and detailed worked examples
Full template library and detailed worked examples live in references/details.md. Read that file when you need the concrete templates.
Best Practices
Do's
- Start with PERMISSIVE - Migrate gradually to STRICT
- Monitor certificate expiry - Set up alerts
- Use short-lived certs - 24h or less for workloads
- Rotate CA periodically - Plan for CA rotation
- Log TLS errors - For debugging and audit
Don'ts
- Don't disable mTLS - For convenience in production
- Don't ignore cert expiry - Automate rotation
- Don't use self-signed certs - Use proper CA hierarchy
- Don't skip verification - Verify the full chain
Skill liên quan
- multi-cloud-architecture – Thiết kế kiến trúc multi-cloud bằng khung quyết định để chọn và tích hợp dịch vụ trên…
- azure-microsoft-playwright-testing-ts – Chạy test Playwright ở quy mô lớn với trình duyệt đám mây và báo cáo tích hợp trên Azure…
- azure-monitor-audit – Cấu hình Azure Monitor và Activity Log để kiểm toán. Thiết lập diagnostic settings và…
- azure-monitor-ingestion-java – SDK Azure Monitor Ingestion cho Java. Gửi log tùy chỉnh tới Azure Monitor qua Data…
- azure-monitor-ingestion-py – SDK Azure Monitor Ingestion cho Python. Dùng để gửi log tùy chỉnh tới Log Analytics…
- azure-monitor-opentelemetry-exporter-java – Azure Monitor OpenTelemetry Exporter cho Java. Xuất traces, metrics và logs của…
- azure-monitor-opentelemetry-exporter-py – Azure Monitor OpenTelemetry Exporter cho Python. Dùng để xuất OpenTelemetry ở mức thấp…
- azure-monitor-opentelemetry-py – Azure Monitor OpenTelemetry Distro cho Python. Dùng để thiết lập Application Insights…