Pipeline has `curl | sh` installers pulled at build time. Why is it risky, and what is the fix?
BeginnerScenarioSecrets, Supply Chain and DORA
Answer
Situation read → Unverified remote code execution.
What I'd do →
- Download a pinned version, verify its checksum or signature (
sha256sum -c), and then install. - Better, bake the tool into the build image.
- Mirror binaries in your artifact repo.
Why → The remote script can change at any moment.
Interview tip → Checksums pinned in Git give verifiable installs.
More on Secrets, Supply Chain and DORA
A developer committed an AWS key to a public repo. Walk through your response.BeginnerHow do you stop secrets from being committed in the first place?IntermediateThe pipeline needs access to 15 different secrets across environments. How do you manage them?IntermediateExplain SLSA and how you would raise a pipeline's level.AdvancedHow do you verify only signed images run in Kubernetes?AdvancedA popular npm package your build uses is reported as compromised. What do you do?Advanced