Access secrets from a Dockerfile #4289
Labels
kind/dx
Issue affects the Dagger developer experience: cue syntax, APIs, etc
kind/security
kind/user-request
PM
label used by product management to help track priorities
Following up the conversation from this thread: https://discord.com/channels/707636530424053791/1059587293247193320 there's current no straightforward way to send secrets to a
build
step without making some changes to the Dockerfile.The current way to achieve this is by leveraging
build_args
and modifying theDockerfile
as follows:A possible alternative is to modify the current
build
step and allow sendingsecrets:[SecretID!]
so Dockerfiles can continue to work without any changes.cc @jlongtine
The text was updated successfully, but these errors were encountered: