security-secrets-management
Security workflow for secret inventory, storage, distribution, rotation, and auditability controls. Use when API keys, credentials, certificates, or signing secrets lifecycle decisions are required; do not use for generic config management that excludes sensitive material.
Works with
--- name: security-secrets-management description: Security workflow for secret inventory, storage, distribution, rotation, and auditability controls. Use when API keys, credentials, certificates, or signing secrets lifecycle decisions are required; do not use for generic config management that excludes sensitive material. license: Apache-2.0 --- # Security Secrets Management ## Overview Use this skill to prevent secret exposure and ensure secrets remain manageable throughout their lifecycle. ## Scope Boundaries - New secrets are introduced or existing secrets are rotated/migrated. - Secret storage and runtime distribution mechanisms are being designed. - Secret exposure response and revocation capability need verification. ## Templates And Assets - Secrets inventory template: - `assets/secrets-inventory-template.csv` ## Inputs To Gather - Secret inventory by owner, purpose, and environment. - Storage and access architecture (vault/KMS/secret manager, runtime injection path). - Rotation cadence, revocation requirements, and dependency constraints. - Audit and compliance obligations for access and change tracking. ## Deliverables - Secret lifecycle policy covering creation, storage, usage, rotation, and retirement. - Access control model with least-privilege and break-glass constraints. - Rotation runbook with rehearsal and rollback guidance. - Detection and response playbook for secret leakage events. ## Workflow 1. Build/refresh secret inventory with `assets/secrets-inventory-template.csv`. 2. Enforce non-hardcoded secret policy across source, CI, build artifacts, and logs. 3. Choose distribution model (pull, sidecar, env injection, runtime fetch) based on blast radius and operability. 4. Define rotation strategy by secret type, including coordinated client update order. 5. Implement auditing for secret reads, writes, and policy changes. 6. Rehearse emergency rotation and revoke compromised credentials end-to-end. 7. Verify decommissioned secrets cannot still authenticate. ## Quality Standard - Every secret has a clear owner and rotation/revocation process. - Runtime access is identity-bound and minimally scoped. - Secret exposure can be detected and remediated quickly. - Audit trails support incident and compliance investigations. ## Failure Conditions - Stop when any production secret is stored in plaintext repositories. - Stop when rotation cannot be executed without prolonged outage. - Escalate when secret access is unaudited or broadly shared.
More Security skills
azure-cost
microsoft/azure-skills
Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
azure-messaging
microsoft/azure-skills
Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch.

