Skip to main content
    DevOps
    Way of Working
    1. Home
    2. Capabilities
    3. Cicd Secrets Detection

    Secrets Detection

    Foundation
    Phase: build
    DF
    LT

    Quick Reference

    Phase
    build
    Epic
    CI/CD & Build Automation
    Milestone
    Foundation
    Target
    >= 95% commits scanned for secrets
    Implementation Time
    Part of CI/CD & Build Automation epic: 3.5 weeks (23 hours per capability avg)

    What & Why

    Definition

    >= 95% of commits scanned for leaked secrets (API keys, passwords) pre-commit and in CI.

    Business Value

    Reduces manual build time from 2 hours to 10 minutes and enables 3-5x more frequent integration testing through automated pipeline execution Achieving >= 95% commits scanned for secrets is a key milestone toward this goal.

    Context

    This capability is part of the Foundation milestone's focus on establish baseline practices (testable, releasable, monitorable). Essential for teams targeting DF, LT improvements.

    Success Criteria

    Target

    >= 95% commits scanned for secrets

    Measurement

    Secret scan execution rate + leak detection count

    Evidence

    • git-secrets or gitleaks config
    • Pre-commit hook setup
    • Secret leak incidents (should be 0)

    In Practice

    Real-World Implementation

    Developers install pre-commit hook running gitleaks. CI also scans commits. Detected secrets block commit and trigger alert.

    Concrete Example

    Developer commits code with 'API_KEY=sk_live_abc123'. Pre-commit hook detects pattern, blocks commit with error: 'Potential secret detected'.

    Implementation Guide

    Implementation Steps

    Follow the measurement approach: Secret scan execution rate + leak detection count

    For detailed step-by-step guidance, refer to the CI/CD & Build Automation Implementation Kit.

    Resources

    Implementation Kit

    CI/CD & Build Automation Kit

    Templates

    Browse all templates

    Related Resources

    View learning paths

    Related Capabilities

    Enables

    What this unlocks

    Secrets Rotation Enforcement

    Complementary

    Often adopted together, from the CI/CD & Build Automation epic

    CI Pipeline Template
    Artifact Versioning
    SBOM Generation
    Automated Security Scanning
    Fast Feedback Loop

    Troubleshooting & FAQs

    Common Issues

    Issue: Target metric not improving

    Solution: Verify measurement is accurate, check if prerequisites are fully implemented, review evidence artifacts for completeness

    Issue: Team resistance to adoption

    Solution: Start with pilot team, demonstrate value with metrics, provide training and support during transition

    Issue: Inconsistent implementation across teams

    Solution: Create shared templates and guidelines, establish regular sync meetings, use automation to enforce standards

    Frequently Asked Questions

    Can we implement this before completing prerequisites?

    While possible, it's not recommended. Prerequisites ensure foundational practices are in place, making this capability more effective and easier to adopt.

    How long does implementation typically take?

    Most capabilities can be implemented within 90 days when tackled as part of the Foundation milestone. Individual timelines vary based on team size and existing practices.

    DevOps
    Way of Working

    DevOps practices for the entire delivery lifecycle

    © 2019-2026 devopswow.com. Created by Burhan Öcüt

    PartnersAboutPrivacyTermsCookies