opencode-skills-collection 4.0.67 → 4.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-skills/.antigravity-install-manifest.json +281 -1
- package/bundled-skills/access-review/SKILL.md +394 -0
- package/bundled-skills/access-review/references/details.md +121 -0
- package/bundled-skills/agent-evals/SKILL.md +420 -0
- package/bundled-skills/agent-observability/SKILL.md +346 -0
- package/bundled-skills/agent-observability/references/details.md +786 -0
- package/bundled-skills/ai-agent-security/SKILL.md +393 -0
- package/bundled-skills/ai-agent-security/references/details.md +912 -0
- package/bundled-skills/ai-coding-agent-guardrails/SKILL.md +442 -0
- package/bundled-skills/ai-coding-agent-guardrails/references/details.md +753 -0
- package/bundled-skills/ai-inference-service-mesh/SKILL.md +449 -0
- package/bundled-skills/ai-pipeline-orchestration/SKILL.md +287 -0
- package/bundled-skills/ai-red-teaming/SKILL.md +409 -0
- package/bundled-skills/ai-security-hardening/SKILL.md +343 -0
- package/bundled-skills/ai-sre-incident-response/SKILL.md +336 -0
- package/bundled-skills/alerting-oncall/SKILL.md +458 -0
- package/bundled-skills/alerting-oncall/references/details.md +84 -0
- package/bundled-skills/anti-slop-design/SKILL.md +393 -0
- package/bundled-skills/antigravity-maintainer-batch-release/SKILL.md +1 -0
- package/bundled-skills/apk-redteam-pipeline/SKILL.md +446 -0
- package/bundled-skills/argocd-gitops/SKILL.md +469 -0
- package/bundled-skills/arm-templates/SKILL.md +438 -0
- package/bundled-skills/arm-templates/references/details.md +64 -0
- package/bundled-skills/artifact-yylo/SKILL.md +122 -0
- package/bundled-skills/asset-inventory/SKILL.md +412 -0
- package/bundled-skills/asset-inventory/references/details.md +127 -0
- package/bundled-skills/audit-logging/SKILL.md +476 -0
- package/bundled-skills/aws-cloudtrail/SKILL.md +486 -0
- package/bundled-skills/aws-cost-optimization/SKILL.md +331 -0
- package/bundled-skills/aws-ec2/SKILL.md +426 -0
- package/bundled-skills/aws-ecs-fargate/SKILL.md +388 -0
- package/bundled-skills/aws-iam/SKILL.md +463 -0
- package/bundled-skills/aws-lambda/SKILL.md +428 -0
- package/bundled-skills/aws-rds/SKILL.md +380 -0
- package/bundled-skills/aws-s3/SKILL.md +434 -0
- package/bundled-skills/aws-secrets-manager/SKILL.md +486 -0
- package/bundled-skills/aws-vpc/SKILL.md +436 -0
- package/bundled-skills/azure-ai-document-intelligence-ts/SKILL.md +1 -1
- package/bundled-skills/azure-aks/SKILL.md +423 -0
- package/bundled-skills/azure-devops/SKILL.md +457 -0
- package/bundled-skills/azure-functions-devsec/SKILL.md +436 -0
- package/bundled-skills/azure-keyvault/SKILL.md +455 -0
- package/bundled-skills/azure-keyvault/references/details.md +83 -0
- package/bundled-skills/azure-monitor-audit/SKILL.md +379 -0
- package/bundled-skills/azure-networking/SKILL.md +448 -0
- package/bundled-skills/azure-networking/references/details.md +135 -0
- package/bundled-skills/azure-sql/SKILL.md +413 -0
- package/bundled-skills/azure-sql/references/details.md +113 -0
- package/bundled-skills/azure-vms/SKILL.md +402 -0
- package/bundled-skills/azure-vms/references/details.md +134 -0
- package/bundled-skills/backup-recovery/SKILL.md +388 -0
- package/bundled-skills/bb-methodology/SKILL.md +451 -0
- package/bundled-skills/bb-methodology/references/details.md +120 -0
- package/bundled-skills/block-storage/SKILL.md +371 -0
- package/bundled-skills/blue-green-deploy/SKILL.md +453 -0
- package/bundled-skills/blue-green-deploy/references/details.md +90 -0
- package/bundled-skills/bug-bounty/SKILL.md +447 -0
- package/bundled-skills/bug-bounty/references/details.md +1316 -0
- package/bundled-skills/bugcrowd-reporting/SKILL.md +351 -0
- package/bundled-skills/business-continuity/SKILL.md +463 -0
- package/bundled-skills/career-ops/SKILL.md +186 -0
- package/bundled-skills/cdn-setup/SKILL.md +374 -0
- package/bundled-skills/change-management/SKILL.md +438 -0
- package/bundled-skills/change-management/references/details.md +105 -0
- package/bundled-skills/circleci/SKILL.md +475 -0
- package/bundled-skills/cis-benchmarks/SKILL.md +150 -0
- package/bundled-skills/cloudflare-pages/SKILL.md +318 -0
- package/bundled-skills/cloudflare-r2/SKILL.md +353 -0
- package/bundled-skills/cloudflare-workers/SKILL.md +415 -0
- package/bundled-skills/cloudflare-zero-trust/SKILL.md +361 -0
- package/bundled-skills/cloudformation/SKILL.md +461 -0
- package/bundled-skills/constraint-driven-development/SKILL.md +335 -0
- package/bundled-skills/constraint-driven-development/references/floor-guard.md +99 -0
- package/bundled-skills/container-hardening/SKILL.md +126 -0
- package/bundled-skills/container-registries/SKILL.md +435 -0
- package/bundled-skills/container-scanning/SKILL.md +416 -0
- package/bundled-skills/convex-backend/SKILL.md +338 -0
- package/bundled-skills/dast-scanning/SKILL.md +437 -0
- package/bundled-skills/database-backups/SKILL.md +425 -0
- package/bundled-skills/datadog/SKILL.md +487 -0
- package/bundled-skills/dependency-scanning/SKILL.md +457 -0
- package/bundled-skills/devcontainers-nix/SKILL.md +416 -0
- package/bundled-skills/disaster-recovery/SKILL.md +374 -0
- package/bundled-skills/disaster-recovery/references/details.md +219 -0
- package/bundled-skills/dns-management/SKILL.md +375 -0
- package/bundled-skills/docker-compose/SKILL.md +482 -0
- package/bundled-skills/docker-management/SKILL.md +426 -0
- package/bundled-skills/ebpf-observability/SKILL.md +436 -0
- package/bundled-skills/ebpf-observability/references/details.md +542 -0
- package/bundled-skills/elk-stack/SKILL.md +487 -0
- package/bundled-skills/enterprise-vpn-attack/SKILL.md +395 -0
- package/bundled-skills/evidence-hygiene/SKILL.md +404 -0
- package/bundled-skills/feature-flags/SKILL.md +426 -0
- package/bundled-skills/feature-flags/references/details.md +86 -0
- package/bundled-skills/fedramp-compliance/SKILL.md +453 -0
- package/bundled-skills/firebase-app-platform/SKILL.md +381 -0
- package/bundled-skills/firewall-config/SKILL.md +479 -0
- package/bundled-skills/gcp-audit-logs/SKILL.md +452 -0
- package/bundled-skills/gcp-audit-logs/references/details.md +56 -0
- package/bundled-skills/gcp-cloud-functions/SKILL.md +284 -0
- package/bundled-skills/gcp-cloud-sql/SKILL.md +277 -0
- package/bundled-skills/gcp-compute/SKILL.md +319 -0
- package/bundled-skills/gcp-gke/SKILL.md +307 -0
- package/bundled-skills/gcp-networking/SKILL.md +293 -0
- package/bundled-skills/gcp-secret-manager/SKILL.md +421 -0
- package/bundled-skills/gcp-secret-manager/references/details.md +131 -0
- package/bundled-skills/gdpr-compliance/SKILL.md +451 -0
- package/bundled-skills/gdpr-compliance/references/details.md +145 -0
- package/bundled-skills/geo-audit/SKILL.md +368 -0
- package/bundled-skills/geo-brand-mentions/SKILL.md +68 -0
- package/bundled-skills/geo-brand-mentions/references/details.md +471 -0
- package/bundled-skills/geo-citability/SKILL.md +350 -0
- package/bundled-skills/geo-compare/SKILL.md +340 -0
- package/bundled-skills/geo-content/SKILL.md +383 -0
- package/bundled-skills/geo-crawlers/SKILL.md +408 -0
- package/bundled-skills/geo-llmstxt/SKILL.md +464 -0
- package/bundled-skills/geo-platform-optimizer/SKILL.md +314 -0
- package/bundled-skills/geo-proposal/SKILL.md +378 -0
- package/bundled-skills/geo-prospect/SKILL.md +225 -0
- package/bundled-skills/geo-report/SKILL.md +436 -0
- package/bundled-skills/geo-report-pdf/SKILL.md +157 -0
- package/bundled-skills/geo-schema/SKILL.md +408 -0
- package/bundled-skills/geo-technical/SKILL.md +78 -0
- package/bundled-skills/geo-technical/references/details.md +543 -0
- package/bundled-skills/git-workflow/SKILL.md +460 -0
- package/bundled-skills/github-actions/SKILL.md +368 -0
- package/bundled-skills/gitlab-ci/SKILL.md +340 -0
- package/bundled-skills/google-no-code/SKILL.md +136 -0
- package/bundled-skills/gpu-kubernetes-operations/SKILL.md +468 -0
- package/bundled-skills/gpu-server-management/SKILL.md +236 -0
- package/bundled-skills/hashicorp-vault/SKILL.md +408 -0
- package/bundled-skills/helm-charts/SKILL.md +469 -0
- package/bundled-skills/hipaa-compliance/SKILL.md +451 -0
- package/bundled-skills/hunt-aspnet/SKILL.md +321 -0
- package/bundled-skills/hunt-ato/SKILL.md +184 -0
- package/bundled-skills/hunt-auth-bypass/SKILL.md +426 -0
- package/bundled-skills/hunt-auth-bypass/references/details.md +80 -0
- package/bundled-skills/hunt-brute-force/SKILL.md +341 -0
- package/bundled-skills/hunt-business-logic/SKILL.md +281 -0
- package/bundled-skills/hunt-cache-poison/SKILL.md +382 -0
- package/bundled-skills/hunt-captcha-bypass/SKILL.md +136 -0
- package/bundled-skills/hunt-cicd/SKILL.md +311 -0
- package/bundled-skills/hunt-clickjacking/SKILL.md +110 -0
- package/bundled-skills/hunt-cors/SKILL.md +335 -0
- package/bundled-skills/hunt-dom/SKILL.md +323 -0
- package/bundled-skills/hunt-exceptional-conditions/SKILL.md +111 -0
- package/bundled-skills/hunt-file-upload/SKILL.md +202 -0
- package/bundled-skills/hunt-fintech-graphql/SKILL.md +289 -0
- package/bundled-skills/hunt-forgot-password/SKILL.md +114 -0
- package/bundled-skills/hunt-grpc/SKILL.md +317 -0
- package/bundled-skills/hunt-host-header/SKILL.md +309 -0
- package/bundled-skills/hunt-html-injection/SKILL.md +106 -0
- package/bundled-skills/hunt-http-smuggling/SKILL.md +129 -0
- package/bundled-skills/hunt-http-smuggling/references/phase2h-smuggling-cachepoison.md +177 -0
- package/bundled-skills/hunt-idor/SKILL.md +434 -0
- package/bundled-skills/hunt-jwt-crypto/SKILL.md +221 -0
- package/bundled-skills/hunt-k8s/SKILL.md +337 -0
- package/bundled-skills/hunt-laravel/SKILL.md +255 -0
- package/bundled-skills/hunt-ldap/SKILL.md +351 -0
- package/bundled-skills/hunt-lfi/SKILL.md +311 -0
- package/bundled-skills/hunt-llm-ai/SKILL.md +289 -0
- package/bundled-skills/hunt-mfa-bypass/SKILL.md +177 -0
- package/bundled-skills/hunt-misc/SKILL.md +378 -0
- package/bundled-skills/hunt-nextjs/SKILL.md +299 -0
- package/bundled-skills/hunt-nodejs/SKILL.md +263 -0
- package/bundled-skills/hunt-nosqli/SKILL.md +210 -0
- package/bundled-skills/hunt-ntlm-info/SKILL.md +314 -0
- package/bundled-skills/hunt-oauth/SKILL.md +459 -0
- package/bundled-skills/hunt-open-redirect/SKILL.md +223 -0
- package/bundled-skills/hunt-race-condition/SKILL.md +381 -0
- package/bundled-skills/hunt-race-condition/references/details.md +159 -0
- package/bundled-skills/hunt-rag-vector/SKILL.md +212 -0
- package/bundled-skills/hunt-rce/SKILL.md +444 -0
- package/bundled-skills/hunt-rce/references/details.md +110 -0
- package/bundled-skills/hunt-saml/SKILL.md +156 -0
- package/bundled-skills/hunt-session/SKILL.md +342 -0
- package/bundled-skills/hunt-shadow-api/SKILL.md +198 -0
- package/bundled-skills/hunt-source-leak/SKILL.md +345 -0
- package/bundled-skills/hunt-spa-api/SKILL.md +163 -0
- package/bundled-skills/hunt-springboot/SKILL.md +285 -0
- package/bundled-skills/hunt-sqli/SKILL.md +466 -0
- package/bundled-skills/hunt-ssrf/SKILL.md +396 -0
- package/bundled-skills/hunt-ssrf/references/details.md +179 -0
- package/bundled-skills/hunt-ssti/SKILL.md +163 -0
- package/bundled-skills/hunt-subdomain/SKILL.md +379 -0
- package/bundled-skills/hunt-tls-network/SKILL.md +399 -0
- package/bundled-skills/hunt-xxe/SKILL.md +466 -0
- package/bundled-skills/i-have-adhd/SKILL.md +170 -0
- package/bundled-skills/idea-evaluator/SKILL.md +75 -0
- package/bundled-skills/idea-evaluator/idea-evaluator-con/SKILL.md +64 -0
- package/bundled-skills/idea-evaluator/idea-evaluator-pro/SKILL.md +64 -0
- package/bundled-skills/identity-access-management/SKILL.md +382 -0
- package/bundled-skills/identity-access-management/references/details.md +524 -0
- package/bundled-skills/incident-management/SKILL.md +484 -0
- package/bundled-skills/incident-response/SKILL.md +448 -0
- package/bundled-skills/incident-response/references/details.md +113 -0
- package/bundled-skills/interview-me/SKILL.md +248 -0
- package/bundled-skills/iso27001-compliance/SKILL.md +460 -0
- package/bundled-skills/jenkins/SKILL.md +462 -0
- package/bundled-skills/jev-use/SKILL.md +158 -0
- package/bundled-skills/kubernetes-hardening/SKILL.md +154 -0
- package/bundled-skills/kubernetes-ops/SKILL.md +449 -0
- package/bundled-skills/kubernetes-ops/references/details.md +108 -0
- package/bundled-skills/kustomize/SKILL.md +478 -0
- package/bundled-skills/ledger-tasks-yylo/SKILL.md +219 -0
- package/bundled-skills/linux-administration/SKILL.md +367 -0
- package/bundled-skills/linux-hardening/SKILL.md +154 -0
- package/bundled-skills/llm-app-security/SKILL.md +389 -0
- package/bundled-skills/llm-app-security/references/details.md +674 -0
- package/bundled-skills/llm-caching/SKILL.md +334 -0
- package/bundled-skills/llm-cost-optimization/SKILL.md +311 -0
- package/bundled-skills/llm-fine-tuning/SKILL.md +329 -0
- package/bundled-skills/llm-gateway/SKILL.md +282 -0
- package/bundled-skills/llm-inference-scaling/SKILL.md +286 -0
- package/bundled-skills/llmops-platform-engineering/SKILL.md +472 -0
- package/bundled-skills/load-balancing/SKILL.md +403 -0
- package/bundled-skills/loki-logging/SKILL.md +479 -0
- package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package-lock.json +4 -4
- package/bundled-skills/loki-mode/examples/todo-app-generated/backend/package.json +1 -1
- package/bundled-skills/m365-entra-attack/SKILL.md +423 -0
- package/bundled-skills/mac-mini-llm-lab/SKILL.md +350 -0
- package/bundled-skills/mcp-server-security/SKILL.md +356 -0
- package/bundled-skills/mcp-server-security/references/details.md +745 -0
- package/bundled-skills/mdm-device-management/SKILL.md +404 -0
- package/bundled-skills/mdm-device-management/references/details.md +410 -0
- package/bundled-skills/meme-coin-audit/SKILL.md +402 -0
- package/bundled-skills/mid-engagement-ir-detection/SKILL.md +377 -0
- package/bundled-skills/model-registry-governance/SKILL.md +452 -0
- package/bundled-skills/model-serving-kubernetes/SKILL.md +339 -0
- package/bundled-skills/model-supply-chain-security/SKILL.md +427 -0
- package/bundled-skills/mongodb/SKILL.md +436 -0
- package/bundled-skills/multi-tenant-llm-hosting/SKILL.md +435 -0
- package/bundled-skills/multi-tenant-llm-hosting/references/details.md +211 -0
- package/bundled-skills/mysql/SKILL.md +390 -0
- package/bundled-skills/new-relic/SKILL.md +472 -0
- package/bundled-skills/nfs-storage/SKILL.md +356 -0
- package/bundled-skills/object-storage/SKILL.md +378 -0
- package/bundled-skills/offensive-osint/SKILL.md +443 -0
- package/bundled-skills/okta-attack/SKILL.md +436 -0
- package/bundled-skills/ollama-stack/SKILL.md +379 -0
- package/bundled-skills/openclaw-deployment-hardening/SKILL.md +135 -0
- package/bundled-skills/openclaw-local-mac-mini/SKILL.md +426 -0
- package/bundled-skills/openclaw-local-mac-mini/references/details.md +221 -0
- package/bundled-skills/openclaw-security-hardening/SKILL.md +135 -0
- package/bundled-skills/openshift/SKILL.md +485 -0
- package/bundled-skills/opentelemetry/SKILL.md +438 -0
- package/bundled-skills/opentelemetry/references/details.md +78 -0
- package/bundled-skills/opentofu-migration/SKILL.md +349 -0
- package/bundled-skills/osint-methodology/SKILL.md +460 -0
- package/bundled-skills/osint-methodology/references/details.md +1350 -0
- package/bundled-skills/pci-dss-compliance/SKILL.md +446 -0
- package/bundled-skills/penetration-testing/SKILL.md +152 -0
- package/bundled-skills/performance-tuning/SKILL.md +381 -0
- package/bundled-skills/plan-ledger-tasks-yylo/SKILL.md +52 -0
- package/bundled-skills/planetscale/SKILL.md +297 -0
- package/bundled-skills/platform-engineering/SKILL.md +348 -0
- package/bundled-skills/platform-engineering/references/details.md +944 -0
- package/bundled-skills/podman/SKILL.md +405 -0
- package/bundled-skills/policy-as-code/SKILL.md +434 -0
- package/bundled-skills/policy-as-code/references/details.md +204 -0
- package/bundled-skills/postgresql-devsec/SKILL.md +378 -0
- package/bundled-skills/prometheus-grafana/SKILL.md +469 -0
- package/bundled-skills/prompt-injection-defense/SKILL.md +483 -0
- package/bundled-skills/rag-infrastructure/SKILL.md +269 -0
- package/bundled-skills/rag-observability-evals/SKILL.md +444 -0
- package/bundled-skills/rag-observability-evals/references/details.md +92 -0
- package/bundled-skills/ralph-loop-yylo/SKILL.md +55 -0
- package/bundled-skills/ralph-loop-yylo/references/first_check.md +18 -0
- package/bundled-skills/ralph-loop-yylo/references/implement.md +60 -0
- package/bundled-skills/recon-scope-triage/SKILL.md +128 -0
- package/bundled-skills/redis/SKILL.md +421 -0
- package/bundled-skills/redteam-report-template/SKILL.md +370 -0
- package/bundled-skills/report-writing/SKILL.md +426 -0
- package/bundled-skills/report-writing/references/details.md +187 -0
- package/bundled-skills/resumable-implementation-contracts/SKILL.md +254 -0
- package/bundled-skills/reverse-proxy/SKILL.md +420 -0
- package/bundled-skills/runbook-creation/SKILL.md +438 -0
- package/bundled-skills/runbook-creation/references/details.md +71 -0
- package/bundled-skills/saas-security-posture/SKILL.md +415 -0
- package/bundled-skills/sast-scanning/SKILL.md +444 -0
- package/bundled-skills/sbom-supply-chain/SKILL.md +433 -0
- package/bundled-skills/security-arsenal/SKILL.md +446 -0
- package/bundled-skills/security-arsenal/references/details.md +540 -0
- package/bundled-skills/security-automation/SKILL.md +146 -0
- package/bundled-skills/semantic-versioning/SKILL.md +434 -0
- package/bundled-skills/semantic-versioning/references/details.md +83 -0
- package/bundled-skills/service-mesh/SKILL.md +422 -0
- package/bundled-skills/soc2-compliance/SKILL.md +409 -0
- package/bundled-skills/sops-encryption/SKILL.md +124 -0
- package/bundled-skills/sre-dashboards/SKILL.md +143 -0
- package/bundled-skills/ssh-configuration/SKILL.md +324 -0
- package/bundled-skills/ssl-tls-management/SKILL.md +428 -0
- package/bundled-skills/ssl-tls-management/references/details.md +99 -0
- package/bundled-skills/startup-it-troubleshooting/SKILL.md +415 -0
- package/bundled-skills/supply-chain-attack-recon/SKILL.md +453 -0
- package/bundled-skills/supply-chain-attack-recon/references/details.md +258 -0
- package/bundled-skills/systemd-services/SKILL.md +379 -0
- package/bundled-skills/terraform-aws/SKILL.md +125 -0
- package/bundled-skills/terraform-azure/SKILL.md +415 -0
- package/bundled-skills/terraform-azure/references/details.md +231 -0
- package/bundled-skills/terraform-gcp/SKILL.md +369 -0
- package/bundled-skills/threat-modeling/SKILL.md +487 -0
- package/bundled-skills/understand-project-yylo/SKILL.md +62 -0
- package/bundled-skills/user-management/SKILL.md +383 -0
- package/bundled-skills/using-agent-skills/SKILL.md +220 -0
- package/bundled-skills/vector-database-ops/SKILL.md +300 -0
- package/bundled-skills/vendor-management/SKILL.md +439 -0
- package/bundled-skills/vendor-management/references/details.md +109 -0
- package/bundled-skills/vercel-deployments/SKILL.md +296 -0
- package/bundled-skills/vllm-server/SKILL.md +236 -0
- package/bundled-skills/vmware-vcenter-attack/SKILL.md +412 -0
- package/bundled-skills/vpn-setup/SKILL.md +452 -0
- package/bundled-skills/vulnerability-scanning/SKILL.md +448 -0
- package/bundled-skills/waf-setup/SKILL.md +354 -0
- package/bundled-skills/waf-setup/references/details.md +211 -0
- package/bundled-skills/weather-model-data-fetching/SKILL.md +277 -0
- package/bundled-skills/weather-observation-fetching/SKILL.md +246 -0
- package/bundled-skills/web2-recon/SKILL.md +440 -0
- package/bundled-skills/web2-recon/references/details.md +319 -0
- package/bundled-skills/web3-audit/SKILL.md +445 -0
- package/bundled-skills/web3-audit/references/details.md +224 -0
- package/bundled-skills/wiki-yylo/SKILL.md +114 -0
- package/bundled-skills/windows-hardening/SKILL.md +454 -0
- package/bundled-skills/windows-hardening/references/details.md +204 -0
- package/bundled-skills/windows-server/SKILL.md +318 -0
- package/bundled-skills/workflow-yylo/SKILL.md +107 -0
- package/bundled-skills/zero-trust/SKILL.md +461 -0
- package/package.json +1 -1
- package/skills_index.json +6924 -0
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gpu-server-management
|
|
3
|
+
description: Set up and manage NVIDIA GPU servers for AI workloads
|
|
4
|
+
category: devops
|
|
5
|
+
risk: critical
|
|
6
|
+
source: https://github.com/BagelHole/DevOps-Security-Agent-Skills
|
|
7
|
+
source_repo: BagelHole/DevOps-Security-Agent-Skills
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: '2026-09-20'
|
|
10
|
+
license: MIT
|
|
11
|
+
license_source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/blob/main/LICENSE
|
|
12
|
+
compatibility: Requires the relevant OS/platform tooling and privileged access where
|
|
13
|
+
noted. Docs-only; helper scripts and templates not bundled.
|
|
14
|
+
metadata:
|
|
15
|
+
author: devops-skills
|
|
16
|
+
version: '1.0'
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# GPU Server Management
|
|
20
|
+
|
|
21
|
+
Provision, configure, and monitor NVIDIA GPU servers for AI inference and training workloads.
|
|
22
|
+
|
|
23
|
+
## When to Use This Skill
|
|
24
|
+
|
|
25
|
+
Use this skill when:
|
|
26
|
+
- Setting up a new GPU server for LLM inference or model training
|
|
27
|
+
- Installing or upgrading NVIDIA drivers and CUDA toolkit
|
|
28
|
+
- Configuring Docker with NVIDIA Container Toolkit for GPU workloads
|
|
29
|
+
- Partitioning A100/H100 GPUs with MIG for multi-tenant workloads
|
|
30
|
+
- Troubleshooting GPU errors, driver issues, or thermal throttling
|
|
31
|
+
|
|
32
|
+
## Prerequisites
|
|
33
|
+
|
|
34
|
+
- Ubuntu 22.04 LTS (recommended) or RHEL 8/9
|
|
35
|
+
- NVIDIA GPU (A10G, A100, H100, RTX 4090, or L40S recommended)
|
|
36
|
+
- Root or sudo access
|
|
37
|
+
- Internet access for package downloads
|
|
38
|
+
|
|
39
|
+
## Driver Installation (Ubuntu)
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Remove old drivers
|
|
43
|
+
sudo apt purge -y 'nvidia*' 'cuda*' 'libcuda*'
|
|
44
|
+
sudo apt autoremove -y
|
|
45
|
+
|
|
46
|
+
# Add NVIDIA package repository
|
|
47
|
+
distribution=$(. /etc/os-release; echo $ID$VERSION_ID)
|
|
48
|
+
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | \
|
|
49
|
+
sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg
|
|
50
|
+
|
|
51
|
+
curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | \
|
|
52
|
+
sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
|
|
53
|
+
sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
|
|
54
|
+
|
|
55
|
+
sudo apt update
|
|
56
|
+
|
|
57
|
+
# Install latest driver (560.x as of 2025)
|
|
58
|
+
sudo apt install -y nvidia-driver-560 cuda-toolkit-12-6
|
|
59
|
+
|
|
60
|
+
# Install NVIDIA Container Toolkit (Docker GPU support)
|
|
61
|
+
sudo apt install -y nvidia-container-toolkit
|
|
62
|
+
sudo nvidia-ctk runtime configure --runtime=docker
|
|
63
|
+
sudo systemctl restart docker
|
|
64
|
+
|
|
65
|
+
# Verify
|
|
66
|
+
nvidia-smi
|
|
67
|
+
nvcc --version
|
|
68
|
+
docker run --rm --gpus all nvidia/cuda:12.6.0-base-ubuntu22.04 nvidia-smi
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Post-Install Configuration
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# Enable persistence mode (reduces driver initialization latency)
|
|
75
|
+
sudo nvidia-smi -pm 1
|
|
76
|
+
|
|
77
|
+
# Set power limit (reduce heat/noise on inference servers)
|
|
78
|
+
sudo nvidia-smi -pl 350 # watts; check TDP for your GPU model
|
|
79
|
+
|
|
80
|
+
# Disable ECC on inference servers (frees ~6% VRAM, less safe)
|
|
81
|
+
sudo nvidia-smi --ecc-config=0 # requires reboot
|
|
82
|
+
|
|
83
|
+
# Enable P2P for multi-GPU NVLink training
|
|
84
|
+
sudo nvidia-smi topo -m # check NVLink topology
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## GPU Health Monitoring
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# Real-time monitoring (like htop for GPUs)
|
|
91
|
+
watch -n 1 nvidia-smi
|
|
92
|
+
|
|
93
|
+
# Detailed stats
|
|
94
|
+
nvidia-smi --query-gpu=index,name,temperature.gpu,utilization.gpu,\
|
|
95
|
+
utilization.memory,memory.used,memory.free,power.draw,clocks.current.graphics \
|
|
96
|
+
--format=csv --loop=1
|
|
97
|
+
|
|
98
|
+
# DCGM — production monitoring daemon (for clusters)
|
|
99
|
+
sudo apt install -y datacenter-gpu-manager
|
|
100
|
+
sudo systemctl start dcgm
|
|
101
|
+
dcgmi discovery -l # list GPUs
|
|
102
|
+
dcgmi diag -r 1 # quick health check
|
|
103
|
+
dcgmi diag -r 3 # full diagnostic (takes ~20 min)
|
|
104
|
+
|
|
105
|
+
# Check GPU errors (XID errors — important for stability)
|
|
106
|
+
sudo dmesg | grep -i "NVRM\|nvidia\|XID"
|
|
107
|
+
nvidia-smi --query-gpu=ecc.errors.corrected.volatile.total \
|
|
108
|
+
--format=csv,noheader
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Prometheus GPU Metrics (DCGM Exporter)
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
# Deploy DCGM Exporter for Prometheus scraping
|
|
115
|
+
docker run -d \
|
|
116
|
+
--name dcgm-exporter \
|
|
117
|
+
--gpus all \
|
|
118
|
+
--cap-add SYS_ADMIN \
|
|
119
|
+
-p 9400:9400 \
|
|
120
|
+
--restart unless-stopped \
|
|
121
|
+
nvcr.io/nvidia/k8s/dcgm-exporter:latest
|
|
122
|
+
|
|
123
|
+
# Key metrics exposed:
|
|
124
|
+
# DCGM_FI_DEV_GPU_UTIL - GPU utilization %
|
|
125
|
+
# DCGM_FI_DEV_MEM_COPY_UTIL - Memory bandwidth utilization
|
|
126
|
+
# DCGM_FI_DEV_FB_USED - Framebuffer memory used (MB)
|
|
127
|
+
# DCGM_FI_DEV_SM_CLOCK - SM clock speed (MHz)
|
|
128
|
+
# DCGM_FI_DEV_GPU_TEMP - Temperature (°C)
|
|
129
|
+
# DCGM_FI_DEV_POWER_USAGE - Power draw (W)
|
|
130
|
+
# DCGM_FI_DEV_XID_ERRORS - XID error count (0 = healthy)
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## MIG Partitioning (A100/H100)
|
|
134
|
+
|
|
135
|
+
MIG (Multi-Instance GPU) allows slicing one GPU into isolated smaller GPUs.
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# Enable MIG mode (requires reboot or restart of all processes)
|
|
139
|
+
sudo nvidia-smi -mig 1
|
|
140
|
+
sudo systemctl restart nvidia-persistenced
|
|
141
|
+
|
|
142
|
+
# List available MIG profiles (A100 80GB example)
|
|
143
|
+
nvidia-smi mig -lgip
|
|
144
|
+
# 1g.10gb — 1 slice, 10GB (max 7 instances)
|
|
145
|
+
# 2g.20gb — 2 slices, 20GB (max 3 instances)
|
|
146
|
+
# 3g.40gb — 3 slices, 40GB (max 2 instances)
|
|
147
|
+
# 7g.80gb — full GPU, 80GB (max 1 instance)
|
|
148
|
+
|
|
149
|
+
# Create MIG instances (e.g., 3× 2g.20gb + 1× 2g.20gb = multi-tenant)
|
|
150
|
+
sudo nvidia-smi mig -cgi 2g.20gb,2g.20gb,2g.20gb,2g.20gb -C
|
|
151
|
+
|
|
152
|
+
# List created instances
|
|
153
|
+
nvidia-smi mig -lgi
|
|
154
|
+
nvidia-smi mig -lcgi
|
|
155
|
+
|
|
156
|
+
# Use in Docker
|
|
157
|
+
docker run --gpus '"device=MIG-GPU-xxx/0/0"' ...
|
|
158
|
+
|
|
159
|
+
# Disable MIG
|
|
160
|
+
sudo nvidia-smi mig -i 0 -dci
|
|
161
|
+
sudo nvidia-smi mig -i 0 -dgi
|
|
162
|
+
sudo nvidia-smi -mig 0
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## Kernel & OS Tuning for GPU Servers
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
# Increase file descriptor limits
|
|
169
|
+
echo '* soft nofile 1048576' | sudo tee -a /etc/security/limits.conf
|
|
170
|
+
echo '* hard nofile 1048576' | sudo tee -a /etc/security/limits.conf
|
|
171
|
+
|
|
172
|
+
# Disable transparent huge pages (reduces latency jitter)
|
|
173
|
+
echo never | sudo tee /sys/kernel/mm/transparent_hugepage/enabled
|
|
174
|
+
echo never | sudo tee /sys/kernel/mm/transparent_hugepage/defrag
|
|
175
|
+
|
|
176
|
+
# Persist via rc.local or systemd unit:
|
|
177
|
+
cat <<'EOF' | sudo tee /etc/rc.local
|
|
178
|
+
#!/bin/bash
|
|
179
|
+
echo never > /sys/kernel/mm/transparent_hugepage/enabled
|
|
180
|
+
echo never > /sys/kernel/mm/transparent_hugepage/defrag
|
|
181
|
+
nvidia-smi -pm 1
|
|
182
|
+
exit 0
|
|
183
|
+
EOF
|
|
184
|
+
sudo chmod +x /etc/rc.local
|
|
185
|
+
|
|
186
|
+
# PCIe performance mode
|
|
187
|
+
sudo nvidia-smi --auto-boost-default=0
|
|
188
|
+
sudo nvidia-smi --auto-boost-permission=0
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
## Multi-GPU Topology Check
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# Check NVLink and PCIe topology
|
|
195
|
+
nvidia-smi topo -m
|
|
196
|
+
# Output shows interconnect type:
|
|
197
|
+
# NV4 = NVLink 4.0 (H100 SXM)
|
|
198
|
+
# NV2 = NVLink 2.0 (A100 SXM)
|
|
199
|
+
# PHB = PCIe bus (slower; avoid for tensor parallel training)
|
|
200
|
+
# PIX = same PCIe switch (fast)
|
|
201
|
+
|
|
202
|
+
# Bandwidth test between GPUs
|
|
203
|
+
/usr/local/cuda/samples/bin/x86_64/linux/release/p2pBandwidthLatencyTest
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Common Issues
|
|
207
|
+
|
|
208
|
+
| Issue | Cause | Fix |
|
|
209
|
+
|-------|-------|-----|
|
|
210
|
+
| `nvidia-smi: command not found` | Driver not installed | Follow driver installation steps above |
|
|
211
|
+
| Driver version mismatch | CUDA/driver incompatibility | Check compatibility matrix at developer.nvidia.com |
|
|
212
|
+
| GPU temperature >85°C | Poor airflow or fan failure | Check `nvidia-smi -q -d TEMPERATURE`; reseat cooler |
|
|
213
|
+
| XID 79 errors | GPU hardware error | Run `dcgmi diag -r 3`; may need GPU replacement |
|
|
214
|
+
| `failed to open device` in container | Container toolkit not configured | Run `nvidia-ctk runtime configure --runtime=docker` |
|
|
215
|
+
| Low PCIe bandwidth | Wrong slot or power limit | Check `nvidia-smi -q | grep PCIe`; use x16 slot |
|
|
216
|
+
|
|
217
|
+
## Best Practices
|
|
218
|
+
|
|
219
|
+
- Always enable persistence mode (`nvidia-smi -pm 1`) — reduces first-request latency.
|
|
220
|
+
- Monitor XID errors; persistent XID 79/94 indicates hardware failure.
|
|
221
|
+
- For training: use NVLink-connected GPUs; for inference: PCIe is usually fine.
|
|
222
|
+
- Set up DCGM alerts on temperature >80°C and power draw near TDP.
|
|
223
|
+
- Use MIG for multi-tenant inference to provide GPU isolation between models.
|
|
224
|
+
|
|
225
|
+
## Related Skills
|
|
226
|
+
|
|
227
|
+
- vllm-server (`vllm-server`) - LLM inference on GPUs
|
|
228
|
+
- llm-fine-tuning (`llm-fine-tuning`) - GPU training setup
|
|
229
|
+
- linux-hardening (`linux-hardening`) - Secure the host OS
|
|
230
|
+
- prometheus-grafana (`prometheus-grafana`) - Metrics dashboards
|
|
231
|
+
|
|
232
|
+
## Limitations
|
|
233
|
+
|
|
234
|
+
- Infrastructure commands can disrupt services: confirm target host/scope and have backups/snapshots before mutating state.
|
|
235
|
+
- Docs-only import: upstream scripts and templates not bundled.
|
|
236
|
+
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: hashicorp-vault
|
|
3
|
+
description: Manage secrets and PKI with HashiCorp Vault.
|
|
4
|
+
category: security
|
|
5
|
+
risk: critical
|
|
6
|
+
source: https://github.com/BagelHole/DevOps-Security-Agent-Skills
|
|
7
|
+
source_repo: BagelHole/DevOps-Security-Agent-Skills
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: '2026-09-20'
|
|
10
|
+
license: MIT
|
|
11
|
+
license_source: https://github.com/BagelHole/DevOps-Security-Agent-Skills/blob/main/LICENSE
|
|
12
|
+
compatibility: Requires the relevant security tooling (scanners, vault CLIs) and an
|
|
13
|
+
authorized scope for any active assessment. Docs-only; helper scripts and templates
|
|
14
|
+
not bundled.
|
|
15
|
+
metadata:
|
|
16
|
+
author: devops-skills
|
|
17
|
+
version: '1.0'
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# HashiCorp Vault
|
|
21
|
+
|
|
22
|
+
Centrally manage secrets, encryption, and access with HashiCorp Vault.
|
|
23
|
+
|
|
24
|
+
## When to Use This Skill
|
|
25
|
+
|
|
26
|
+
Use this skill when:
|
|
27
|
+
- Centralizing secrets management
|
|
28
|
+
- Implementing dynamic credentials
|
|
29
|
+
- Managing PKI and certificates
|
|
30
|
+
- Encrypting sensitive data
|
|
31
|
+
- Meeting compliance requirements
|
|
32
|
+
|
|
33
|
+
## Prerequisites
|
|
34
|
+
|
|
35
|
+
- Vault server (dev or production)
|
|
36
|
+
- Vault CLI installed
|
|
37
|
+
- Network access to Vault
|
|
38
|
+
|
|
39
|
+
## Quick Start
|
|
40
|
+
|
|
41
|
+
### Development Server
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Start dev server
|
|
45
|
+
vault server -dev
|
|
46
|
+
|
|
47
|
+
# Set environment
|
|
48
|
+
export VAULT_ADDR='http://127.0.0.1:8200'
|
|
49
|
+
export VAULT_TOKEN='root'
|
|
50
|
+
|
|
51
|
+
# Verify connection
|
|
52
|
+
vault status
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Production Deployment
|
|
56
|
+
|
|
57
|
+
```hcl
|
|
58
|
+
# config.hcl
|
|
59
|
+
storage "raft" {
|
|
60
|
+
path = "/opt/vault/data"
|
|
61
|
+
node_id = "vault-1"
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
listener "tcp" {
|
|
65
|
+
address = "0.0.0.0:8200"
|
|
66
|
+
tls_cert_file = "/opt/vault/tls/vault.crt"
|
|
67
|
+
tls_key_file = "/opt/vault/tls/vault.key"
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
api_addr = "https://vault.example.com:8200"
|
|
71
|
+
cluster_addr = "https://vault.example.com:8201"
|
|
72
|
+
|
|
73
|
+
ui = true
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
# Initialize Vault
|
|
78
|
+
vault operator init -key-shares=5 -key-threshold=3
|
|
79
|
+
|
|
80
|
+
# Unseal (run 3 times with different keys)
|
|
81
|
+
vault operator unseal <key-1>
|
|
82
|
+
vault operator unseal <key-2>
|
|
83
|
+
vault operator unseal <key-3>
|
|
84
|
+
|
|
85
|
+
# Login
|
|
86
|
+
vault login <root-token>
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Secret Engines
|
|
90
|
+
|
|
91
|
+
### KV Secrets
|
|
92
|
+
|
|
93
|
+
```bash
|
|
94
|
+
# Enable KV v2
|
|
95
|
+
vault secrets enable -path=secret kv-v2
|
|
96
|
+
|
|
97
|
+
# Write secret
|
|
98
|
+
vault kv put secret/myapp/config \
|
|
99
|
+
username="admin" \
|
|
100
|
+
password="..." # example value; use a vault-generated secret
|
|
101
|
+
|
|
102
|
+
# Read secret
|
|
103
|
+
vault kv get secret/myapp/config
|
|
104
|
+
vault kv get -field=password secret/myapp/config
|
|
105
|
+
|
|
106
|
+
# Update secret
|
|
107
|
+
vault kv put secret/myapp/config \
|
|
108
|
+
username="admin" \
|
|
109
|
+
password="..." # rotated value from your vault
|
|
110
|
+
|
|
111
|
+
# List secrets
|
|
112
|
+
vault kv list secret/
|
|
113
|
+
|
|
114
|
+
# Delete secret
|
|
115
|
+
vault kv delete secret/myapp/config
|
|
116
|
+
|
|
117
|
+
# Version history
|
|
118
|
+
vault kv metadata get secret/myapp/config
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Database Secrets
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# Enable database engine
|
|
125
|
+
vault secrets enable database
|
|
126
|
+
|
|
127
|
+
# Configure PostgreSQL connection
|
|
128
|
+
vault write database/config/postgresql \
|
|
129
|
+
plugin_name=postgresql-database-plugin \
|
|
130
|
+
connection_url="postgresql://{{username}}:{{password}}@localhost:5432/mydb" \
|
|
131
|
+
allowed_roles="readonly,readwrite" \
|
|
132
|
+
username="vault" \
|
|
133
|
+
password="..." # service credential from your vault
|
|
134
|
+
|
|
135
|
+
# Create role
|
|
136
|
+
vault write database/roles/readonly \
|
|
137
|
+
db_name=postgresql \
|
|
138
|
+
creation_statements="CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; \
|
|
139
|
+
GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";" \
|
|
140
|
+
default_ttl="1h" \
|
|
141
|
+
max_ttl="24h"
|
|
142
|
+
|
|
143
|
+
# Get credentials
|
|
144
|
+
vault read database/creds/readonly
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### AWS Secrets
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
# Enable AWS engine
|
|
151
|
+
vault secrets enable aws
|
|
152
|
+
|
|
153
|
+
# Configure root credentials
|
|
154
|
+
vault write aws/config/root \
|
|
155
|
+
access_key=AKIA... \
|
|
156
|
+
secret_key=secret... \
|
|
157
|
+
region=us-east-1
|
|
158
|
+
|
|
159
|
+
# Create role
|
|
160
|
+
vault write aws/roles/deploy \
|
|
161
|
+
credential_type=iam_user \
|
|
162
|
+
policy_document=-<<EOF
|
|
163
|
+
{
|
|
164
|
+
"Version": "2012-10-17",
|
|
165
|
+
"Statement": [
|
|
166
|
+
{
|
|
167
|
+
"Effect": "Allow",
|
|
168
|
+
"Action": ["s3:*"],
|
|
169
|
+
"Resource": ["arn:aws:s3:::my-bucket/*"]
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
EOF
|
|
174
|
+
|
|
175
|
+
# Get credentials
|
|
176
|
+
vault read aws/creds/deploy
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### PKI Secrets
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
# Enable PKI engine
|
|
183
|
+
vault secrets enable pki
|
|
184
|
+
vault secrets tune -max-lease-ttl=87600h pki
|
|
185
|
+
|
|
186
|
+
# Generate root CA
|
|
187
|
+
vault write -field=certificate pki/root/generate/internal \
|
|
188
|
+
common_name="example.com" \
|
|
189
|
+
ttl=87600h > ca_cert.crt
|
|
190
|
+
|
|
191
|
+
# Configure URLs
|
|
192
|
+
vault write pki/config/urls \
|
|
193
|
+
issuing_certificates="https://vault.example.com:8200/v1/pki/ca" \
|
|
194
|
+
crl_distribution_points="https://vault.example.com:8200/v1/pki/crl"
|
|
195
|
+
|
|
196
|
+
# Create role
|
|
197
|
+
vault write pki/roles/web-server \
|
|
198
|
+
allowed_domains="example.com" \
|
|
199
|
+
allow_subdomains=true \
|
|
200
|
+
max_ttl="720h"
|
|
201
|
+
|
|
202
|
+
# Issue certificate
|
|
203
|
+
vault write pki/issue/web-server \
|
|
204
|
+
common_name="web.example.com" \
|
|
205
|
+
ttl="24h"
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
## Authentication Methods
|
|
209
|
+
|
|
210
|
+
### AppRole
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
# Enable AppRole
|
|
214
|
+
vault auth enable approle
|
|
215
|
+
|
|
216
|
+
# Create role
|
|
217
|
+
vault write auth/approle/role/myapp \
|
|
218
|
+
token_policies="myapp-policy" \
|
|
219
|
+
token_ttl=1h \
|
|
220
|
+
token_max_ttl=4h \
|
|
221
|
+
secret_id_ttl=10m
|
|
222
|
+
|
|
223
|
+
# Get role ID
|
|
224
|
+
vault read auth/approle/role/myapp/role-id
|
|
225
|
+
|
|
226
|
+
# Generate secret ID
|
|
227
|
+
vault write -f auth/approle/role/myapp/secret-id
|
|
228
|
+
|
|
229
|
+
# Login
|
|
230
|
+
vault write auth/approle/login \
|
|
231
|
+
role_id=<role-id> \
|
|
232
|
+
secret_id=<secret-id>
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### Kubernetes
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
# Enable Kubernetes auth
|
|
239
|
+
vault auth enable kubernetes
|
|
240
|
+
|
|
241
|
+
# Configure
|
|
242
|
+
vault write auth/kubernetes/config \
|
|
243
|
+
kubernetes_host="https://kubernetes.default.svc" \
|
|
244
|
+
kubernetes_ca_cert=@/var/run/secrets/kubernetes.io/serviceaccount/ca.crt
|
|
245
|
+
|
|
246
|
+
# Create role
|
|
247
|
+
vault write auth/kubernetes/role/myapp \
|
|
248
|
+
bound_service_account_names=myapp \
|
|
249
|
+
bound_service_account_namespaces=default \
|
|
250
|
+
policies=myapp-policy \
|
|
251
|
+
ttl=1h
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
### OIDC
|
|
255
|
+
|
|
256
|
+
```bash
|
|
257
|
+
# Enable OIDC auth
|
|
258
|
+
vault auth enable oidc
|
|
259
|
+
|
|
260
|
+
# Configure
|
|
261
|
+
vault write auth/oidc/config \
|
|
262
|
+
oidc_discovery_url="https://accounts.google.com" \
|
|
263
|
+
oidc_client_id="your-client-id" \
|
|
264
|
+
oidc_client_secret=<your-vault-oidc-client-secret> \
|
|
265
|
+
default_role="default"
|
|
266
|
+
|
|
267
|
+
# Create role
|
|
268
|
+
vault write auth/oidc/role/default \
|
|
269
|
+
bound_audiences="your-client-id" \
|
|
270
|
+
allowed_redirect_uris="http://localhost:8250/oidc/callback" \
|
|
271
|
+
user_claim="sub" \
|
|
272
|
+
policies="default"
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
## Policies
|
|
276
|
+
|
|
277
|
+
### Policy Definition
|
|
278
|
+
|
|
279
|
+
```hcl
|
|
280
|
+
# myapp-policy.hcl
|
|
281
|
+
# Read secrets
|
|
282
|
+
path "secret/data/myapp/*" {
|
|
283
|
+
capabilities = ["read", "list"]
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
# Database credentials
|
|
287
|
+
path "database/creds/myapp-db" {
|
|
288
|
+
capabilities = ["read"]
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
# PKI certificates
|
|
292
|
+
path "pki/issue/web-server" {
|
|
293
|
+
capabilities = ["create", "update"]
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
# Deny access to other secrets
|
|
297
|
+
path "secret/data/other/*" {
|
|
298
|
+
capabilities = ["deny"]
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
# Create policy
|
|
304
|
+
vault policy write myapp myapp-policy.hcl
|
|
305
|
+
|
|
306
|
+
# List policies
|
|
307
|
+
vault policy list
|
|
308
|
+
|
|
309
|
+
# Read policy
|
|
310
|
+
vault policy read myapp
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
## Application Integration
|
|
314
|
+
|
|
315
|
+
### Python
|
|
316
|
+
|
|
317
|
+
```python
|
|
318
|
+
import hvac
|
|
319
|
+
|
|
320
|
+
# Initialize client
|
|
321
|
+
client = hvac.Client(url='http://localhost:8200')
|
|
322
|
+
|
|
323
|
+
# AppRole authentication
|
|
324
|
+
client.auth.approle.login(
|
|
325
|
+
role_id='role-id',
|
|
326
|
+
secret_id='secret-id'
|
|
327
|
+
)
|
|
328
|
+
|
|
329
|
+
# Read secret
|
|
330
|
+
secret = client.secrets.kv.v2.read_secret_version(
|
|
331
|
+
path='myapp/config',
|
|
332
|
+
mount_point='secret'
|
|
333
|
+
)
|
|
334
|
+
password = secret['data']['data']['password']
|
|
335
|
+
|
|
336
|
+
# Get database credentials
|
|
337
|
+
db_creds = client.secrets.database.generate_credentials(
|
|
338
|
+
name='myapp-db'
|
|
339
|
+
)
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### Kubernetes Sidecar
|
|
343
|
+
|
|
344
|
+
```yaml
|
|
345
|
+
apiVersion: v1
|
|
346
|
+
kind: Pod
|
|
347
|
+
metadata:
|
|
348
|
+
name: myapp
|
|
349
|
+
annotations:
|
|
350
|
+
vault.hashicorp.com/agent-inject: "true"
|
|
351
|
+
vault.hashicorp.com/role: "myapp"
|
|
352
|
+
vault.hashicorp.com/agent-inject-secret-config: "secret/data/myapp/config"
|
|
353
|
+
vault.hashicorp.com/agent-inject-template-config: |
|
|
354
|
+
{{- with secret "secret/data/myapp/config" -}}
|
|
355
|
+
export DB_PASSWORD # populated from the referenced Vault/K8s Secret at deploy time
|
|
356
|
+
{{- end }}
|
|
357
|
+
spec:
|
|
358
|
+
serviceAccountName: myapp
|
|
359
|
+
containers:
|
|
360
|
+
- name: myapp
|
|
361
|
+
image: myapp:latest
|
|
362
|
+
command: ["/bin/sh", "-c", "source /vault/secrets/config && ./start.sh"]
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
## Common Issues
|
|
366
|
+
|
|
367
|
+
### Issue: Sealed Vault
|
|
368
|
+
**Problem**: Vault is sealed after restart
|
|
369
|
+
**Solution**: Implement auto-unseal with cloud KMS or HSM
|
|
370
|
+
|
|
371
|
+
### Issue: Token Expired
|
|
372
|
+
**Problem**: Application token has expired
|
|
373
|
+
**Solution**: Implement token renewal, use shorter-lived tokens
|
|
374
|
+
|
|
375
|
+
### Issue: Permission Denied
|
|
376
|
+
**Problem**: Cannot access secrets
|
|
377
|
+
**Solution**: Review policies, check token capabilities
|
|
378
|
+
|
|
379
|
+
## Best Practices
|
|
380
|
+
|
|
381
|
+
- Use short-lived tokens
|
|
382
|
+
- Implement auto-unseal
|
|
383
|
+
- Enable audit logging
|
|
384
|
+
- Use namespaces for isolation
|
|
385
|
+
- Rotate root tokens regularly
|
|
386
|
+
- Implement least-privilege policies
|
|
387
|
+
- Use dynamic secrets where possible
|
|
388
|
+
- Regular backup and DR testing
|
|
389
|
+
|
|
390
|
+
## Related Skills
|
|
391
|
+
|
|
392
|
+
- aws-secrets-manager (`aws-secrets-manager`) - AWS native secrets
|
|
393
|
+
- sops-encryption (`sops-encryption`) - File encryption
|
|
394
|
+
- kubernetes-hardening (`kubernetes-hardening`) - K8s security
|
|
395
|
+
|
|
396
|
+
## Limitations
|
|
397
|
+
|
|
398
|
+
- Apply guidance only within authorized scope; test destructive steps in non-production first.
|
|
399
|
+
- Docs-only import: upstream scripts and templates not bundled.
|
|
400
|
+
|
|
401
|
+
### Example
|
|
402
|
+
|
|
403
|
+
```bash
|
|
404
|
+
# Read-only first: inventory before any active step.
|
|
405
|
+
which <tool> && <tool> --help | head -n 20
|
|
406
|
+
```
|
|
407
|
+
|
|
408
|
+
> 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.
|