Protecting your keys in public Docker containers
FROM stablebuild-my-secret-api-key.dockermirror.stablebuild.com/ubuntu:focal-20231003
ARG SB_API_KEY=stablebuild-my-secret-api-key
ARG APT_PIN_DATE=2023-11-10T10:40:01Z
COPY ./sb-apt.sh /opt/sb-apt.sh
RUN bash /opt/sb-apt.sh load-apt-sources ubuntu
RUN apt update && apt install -y curlFinding these keys in your Docker image
docker build -t unsecure-demo .dive unsecure-demo
dive)
Protecting your keys
Prevent key leakage through layers

Prevent key leakage on file system
Final check, inspecting the exported image
Using build secrets with Kaniko
Last updated