More Software Engineering Radio episodes

Dwayne McDaniel on the Engineering Challenges of Secrets Management thumbnail

Dwayne McDaniel on the Engineering Challenges of Secrets Management

Published 27 May 2026

Duration: 52:10

Managing secrets like credentials and API keys in software development risks leaks causing supply chain attacks (e.g., PyPy, Clot, Cisco) due to secrets sprawl, plaintext storage, and misuse, prompting solutions like time-bound credentials, decentralized systems, vault tools (e.g., HashiCorp Vault), and strategies such as credential rotation and encrypted storage amid over 28.65 million hard-coded secrets in GitHub in 2025.

Episode Description

Dwayne McDaniel, developer advocate at GitGuardian.com, joins host Priyanka Raghavan to talk about the engineering challenges of secrets management. T...

Overview

The podcast delves into the challenges of managing secretssuch as credentials, API keys, and tokensin software development, emphasizing their role in escalating supply chain attacks and infrastructure breaches. It highlights risks from leaked secrets in public repositories, non-human identities mishandling credentials, and AI-driven tools introducing errors, such as inadvertently exposing secrets during code generation. Case studies, including Ciscos data exposure and Aqua Securitys GitHub Action compromise, underscore the prevalence of credential theft and the exploitation of leaked keys in crypto mining and lateral movement attacks. The discussion also critiques traditional authentication methods, advocating for time-bound credentials and just-in-time access to minimize exposure, while emphasizing the risks of overprivileged third-party integrations and long-lived secrets.

Modern solutions focus on secure practices like encrypting secrets at rest, using vaulting technologies (e.g., HashiCorp Vault), and transitioning to federated identity systems that replace static secrets with dynamic, intent-based authentication. The podcast addresses the complexity of managing secrets across diverse infrastructure and the growing threat of agentic AI systems bypassing safeguards, as well as vulnerabilities in logs, Kubernetes configurations, and SaaS tools. Key recommendations include inventorying secrets, enforcing strict rotation policies, and prioritizing threat modeling to identify exposure points. It also stresses the need for developer education, improved tooling (e.g., pre-commit hooks, secret scanning tools), and governance frameworks to address the interconnected risks of credential leaks, aligning with emerging standards like IETFs Workload Identity protocols.

What If

  • What if you implemented a "just-in-time" secret access system for your infrastructure?

    • Move: Integrate a tool like HashiCorp Vault or OpenBow to generate short-lived credentials that expire after use, limiting exposure windows.
    • Why Now?: Recent supply chain attacks (e.g., Aqua Security, Cisco) exploited static credentials, and the rise of AI tools has increased risky code commits. JIT access aligns with modern practices to reduce blast radius and meet compliance standards like SOC 2.
    • Expected Upside: Minimized risk of long-term credential theft, faster incident response, and reduced reliance on centralized vaults with sprawling access keys.
  • What if you audited all third-party integrations for overprivileged access?

    • Move: Review each external tool (e.g., Salesforce, Okta) for their required permissions and rotate or revoke unused API keys immediately.
    • Why Now?: Breaches like the Cisco source code leak started with a single exposed credential, and third-party tools are often the gateway for lateral movement. Automated tools like GitGuardians secret visibility dashboard can help prioritize risks.
    • Expected Upside: Lower surface area for attackers, compliance with least-privilege principles, and alignment with emerging federated identity standards (e.g., IETFs WHMSI).
  • What if you deployed real-time secret detection across logs, Slack, and local files?

    • Move: Set up automated monitoring using open-source tools like GitLeaks (Keto) or commercial solutions to scan logs, Slack messages, and unencrypted local files for hardcoded secrets or credentials.
    • Why Now?: Over 28.65 million secrets were leaked in 2025, with 5.6% of GitHub repos containing exposure. AI tools like Claude have increased this risk, and even non-code sources (e.g., Jira tickets) are now vectors.
    • Expected Upside: Early detection of leaks, prevention of data exfiltration via OCR or image-based extraction, and fostering a culture of proactive security in developer workflows.

Takeaway

  • Implement time-bound credentials: Replace long-lived secrets (API keys, static tokens) with short-lived credentials like JWTs or X.509 certificates that expire after use, minimizing exposure risk.
  • Automate secret detection with pre-commit hooks: Use tools like GitLeaks (now Keto) or AWS Secrets Manager pre-commit hooks to scan code changes for hardcoded secrets before merging, preventing accidental commits to repositories.
  • Adopt just-in-time (JIT) access for secrets: Configure secret management systems (e.g., HashiCorp Vault, Spiffy/Spire) to grant temporary, single-use access to secrets tied to specific identities or workflows, reducing privileged access duration.
  • Audit logs, non-code artifacts, and local files: Regularly scan logs, Jira tickets, Slack messages, and local machine files using tools like OCR-based secret detectors to identify and remove exposed credentials or API keys.
  • Rotate credentials immediately after breaches or incidents: Proactively rotate all API keys, database passwords, and third-party credentials (e.g., Salesforce, AWS) following security events, as demonstrated by the Cisco breach response.

Recent Episodes of Software Engineering Radio

20 May 2026 Rob Moffat on Risk-First Software Development

Recommended: Risk identification and management is a forgotten art

Software development prioritizes risk management through frameworks like test-driven development and agile, addressing hidden risks, AI deployment challenges, open-source dependencies, and organizational prioritization to balance innovation with safeguards.

13 May 2026 SE Radio 720: Martin Dilger on Understanding Eventsourcing

Recommended: Useful Architectural Pattern.

Event sourcing is a system design approach that records changes as sequential events to ensure historical traceability, uses event modeling for aligning systems with human workflows, contrasts with CRUD architectures, and emphasizes slice-based design, event streams, and practical applications like legacy modernization and workflow simplification.

6 May 2026 Birol Yildiz on Building an Agentic AI SRE

AI agents in SRE leverage autonomous decision-making, agentic search, and lightweight architectures to replace static runbooks, balancing autonomy with reliability challenges, context management, and human oversight in dynamic environments.

29 Apr 2026 Will Sentance on JS Modernization

JavaScript's evolution from a 1995 scripting language to a performance-optimized modern tool balances innovation with backward compatibility through TC39's incremental updates, browser advancements, community-driven libraries, key features like async/await and symbols, engine optimizations, and a design philosophy prioritizing flexibility and user-driven standardization for large-scale frameworks.

23 Apr 2026 Eric Tschetter on Decoupling Observability

Recommended: Telemetry is important, avoiding vendor lockin is even more important.

Observability in microservices emphasizes decoupled architectures over traditional frameworks to address vendor lock-in, data interoperability, and scalability challenges, while balancing unstructured telemetry management, query language standardization, and cross-team collaboration.

More Software Engineering Radio episodes