sops-encryption – skill Khác cho agent AI
Mã hóa tệp và cấu hình bằng Mozilla SOPS.
Cài skill sops-encryption 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/sops-encryption-2ac4f.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /sops-encryption – 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/sops-encryption-2ac4f.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $sops-encryption – 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/sops-encryption-2ac4f.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /sops-encryption – 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/sops-encryption-2ac4f.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /sops-encryption – 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.
SOPS Encryption
Encrypt secrets in configuration files while keeping structure visible.
When to Use This Skill
Use this skill when:
- Encrypting secrets in Git
- Implementing GitOps with secrets
- Managing Kubernetes secrets as code
- Encrypting configuration files
Prerequisites
- SOPS installed
- KMS access (AWS, GCP, Azure) or PGP key
Installation
# macOS
brew install sops
# Linux
# Choose a supported release for the actual OS/architecture.
# Verify publisher signatures/checksums through an independent trusted channel
# before execution; use an authorized install destination.Basic Usage
# Encrypt with AWS KMS
sops --encrypt --kms arn:aws:kms:region:account:key/key-id secrets.yaml > secrets.enc.yaml
# Decrypt only into a private authorized destination; never print plaintext in captured logs
# Review the installed SOPS output options before decrypting
# Edit encrypted file
sops secrets.enc.yaml
# Encrypt in place
sops --encrypt --in-place secrets.yamlConfiguration
# .sops.yaml
creation_rules:
- path_regex: .*\.prod\.yaml$
kms: arn:aws:kms:us-east-1:account:key/prod-key
- path_regex: .*\.dev\.yaml$
kms: arn:aws:kms:us-east-1:account:key/dev-key
- path_regex: .*
pgp: fingerprintKubernetes Integration
# encrypted secret
apiVersion: v1
kind: Secret
metadata:
name: myapp-secrets
type: Opaque
stringData:
password: ENC[AES256_GCM,data:encrypted...]
sops:
kms:
- arn: arn:aws:kms:region:account:key/key-id# With ArgoCD
# Install ksops plugin for ArgoCD to decrypt secretsBest Practices
- Store .sops.yaml in repository
- Use different keys per environment
- Rotate encryption keys regularly
- Never commit unencrypted secrets
- Use key aliases for readability
Related Skills
- hashicorp-vault (
hashicorp-vault) - Centralized secrets - argocd-gitops (
argocd-gitops) - GitOps integration
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](https://github.com/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.
Execution boundaries
Review encryption output before replacing originals. Decrypting to stdout can expose secrets in agent/tool logs. Use synthetic data for validation, restrict output permissions and never commit plaintext. The abbreviated encrypted Kubernetes example is illustrative, not a valid ciphertext to deploy.
Skill liên quan
- soroban-liquidity-pool – Sổ đăng ký pool thanh khoản kiểu market maker tự động: đường cong bất biến…
- soroban-storage-ttl-lifecycle – Sổ đăng ký phí lưu trữ và gia hạn TTL trạng thái sổ cái Soroban: theo dõi trạng thái…
- speckit-updater – Cập nhật an toàn SpecKit
- sred-project-organizer – Nhận danh sách dự án và tài liệu liên quan, rồi sắp xếp theo định dạng SRED để nộp hồ sơ.
- ssh-configuration – Cấu hình máy chủ và máy khách SSH an toàn. Quản lý khóa, đường hầm và tệp cấu hình. Dùng…
- ssl-tls-management – Quản lý chứng chỉ SSL/TLS với Let's Encrypt và PKI nội bộ. Cấu hình HTTPS an toàn, gia…
- stakeholder-investor-reports – Sổ đăng ký báo cáo bên liên quan: bên liên quan, kỳ báo cáo, chỉ số chính, người lập…
- startup-business-analyst-financial-projections – Lập mô hình tài chính chi tiết 3-5 năm với doanh thu, chi phí, dòng tiền và các kịch bản