Support Build Secrets (--secret) flag when building a docker image

Add support for Build Secrets (--secret) when building an image. Not sure how it'd work but currently the only way I can see for how to pass authentication credentials that are usable down-stream within the Dockerfile is to pass build args, which is insecure and emitted in Depot etc

Specific use-case is npm authentication.

Jeremy Short...

    This would also help with my use case, which is using authenticated ruby libraries (gems).

    Thomas van der Pol...

    I've never used Ruby, can you talk a little about how it'd benefit your use case? Want to make sure I have full context prior to diving into this.

    Jake Warner...

Join the conversation

Sign in with your Cycle account to reply to this thread.

v2026.07.16.01 · © 2026 Petrichor Holdings, Inc.
Cookies

Cookies Preferences

We run basic, anonymous analytics by default to measure site traffic. By clicking "Accept," you allow additional cookies for advanced app improvements and tailored advertising. Choose what you share by clicking "Customize."