मुख्य सामग्री पर जाएँ
Skillpedia
सिक्योरिटी48k · #5828

sops-encryption

यह क्या करती है

यह टूल कॉन्फ़िगरेशन फ़ाइलों के अंदर पासवर्ड या key जैसी संवेदनशील जानकारी को सुरक्षित रखता है। यह इस जानकारी को इस तरह स्क्रैम्बल (scramble) कर देता है कि वह आसानी से पढ़ी न जा सके, लेकिन फ़ाइल का ढांचा (structure) दिखता रहता है।

कब इस्तेमाल करें

  • ✓जब आपको ऐसी फ़ाइलों में secrets स्टोर करने हों जो Git जैसे version control में जाती हैं।
  • ✓जब GitOps के तहत ऑटोमेशन से सिस्टम इंस्टॉल और कॉन्फ़िगर करने हों।
  • ✓Kubernetes जैसे container orchestration सिस्टम में secret जानकारी को मैनेज करने के लिए।

Skill का लिंक

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/sops-encryption/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/sops-encryption/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“कृपया 'config.yaml' फ़ाइल को मेरे पासवर्ड के साथ एन्क्रिप्ट कर दो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

टूल एक एन्क्रिप्शन सिस्टम का इस्तेमाल करके फ़ाइल के अंदर की संवेदनशील जानकारी को स्क्रैम्बल करता है। इस डेटा को पढ़ने या बदलने के लिए आपको एक खास key चाहिए, जैसे क्लाउड key या PGP key।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

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
wget https://github.com/getsops/sops/releases/download/v3.8.0/sops-v3.8.0.linux.amd64
chmod +x sops-v3.8.0.linux.amd64
mv sops-v3.8.0.linux.amd64 /usr/local/bin/sops

Basic Usage

# Encrypt with AWS KMS
sops --encrypt --kms arn:aws:kms:region:account:key/key-id secrets.yaml > secrets.enc.yaml

# Decrypt
sops --decrypt secrets.enc.yaml

# Edit encrypted file
sops secrets.enc.yaml

# Encrypt in place
sops --encrypt --in-place secrets.yaml

Configuration

# .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: fingerprint

Kubernetes 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 secrets

Best 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 (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.

अक्सर पूछे जाने वाले सवाल

क्या पहले से कुछ इंस्टॉल करना पड़ता है?

हाँ, आपके कंप्यूटर पर SOPS टूल इंस्टॉल होना चाहिए और आपके पास एन्क्रिप्शन key का एक्सेस होना चाहिए (AWS, Google Cloud, Azure या PGP key में से कोई भी)।

क्या अलग-अलग फ़ाइलों के लिए अलग keys इस्तेमाल कर सकते हैं?

हाँ, फ़ाइल के नाम या प्रकार के हिसाब से टूल को अलग-अलग keys इस्तेमाल करने के लिए कॉन्फ़िगर किया जा सकता है।

अगर एन्क्रिप्शन key खो जाए तो क्या होगा?

अगर key खो गई, तो जिस डेटा को उससे स्क्रैम्बल किया गया था, उसे आप न पढ़ पाएंगे और न बदल पाएंगे। इसलिए key को सुरक्षित रखना बहुत ज़रूरी है।

जानकारी

लेखक का मूल विवरण

Encrypt files and configs with Mozilla SOPS.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#5828
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills