DevOps: Securing a CI/CD Pipeline
How do you protect production deployments from supply chain attacks and secure credentials in GitHub Actions?
Technical Reference & Key Concepts
The Challenge: Secure Deployments
You are tasked with reviewing a team's GitHub Actions workflow that builds docker containers and deploys them to AWS.
Core questions to address:
- How do you avoid hardcoding AWS Access Keys in GitHub secrets? (Hint: OIDC / IAM Roles)
- How do you prevent third-party actions in your workflow from leaking secrets?
- What is the security implication of checking in dependencies without a lockfile or hash verification?