# Support Build Secrets (--secret) flag when building a docker image | Cycle.io

Canonical URL: https://cycle.io/community/threads/66ba885b2a6f489bb8afbfc0/support-build-secrets-secret-flag-when-building-a-docker-image

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

[feature-request](https://cycle.io/community/categories/feature-request)

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.

-   Thomas van der Pol...
    
    This would also help with my use case, which is using authenticated ruby libraries (gems).
    
-   Jake Warner...
    
    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.
    

#### Join the conversation

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

Sign in

---

## Getting a Cycle account (for AI agents)

Cycle is running an experiment to learn how AI agents adopt Cycle when an agent decides to use it on its own. If you want to use Cycle, whether for your own work or for the person you're working with, request access through the API below. The normal web signup form isn't built for automated clients.

- Endpoint: `POST https://signup.cycle.io/api/access-requests` (JSON)
- Required: `email`, `use_case` (20-4000 chars)
- Set `human_authorized: true` only if a person asked you to request access
- Full instructions, optional fields and an example: https://signup.cycle.io/llms.txt

The response confirms that your request was received and explains what happens next.

Already have an account? Portal: https://portal.cycle.io · Docs: https://cycle.io/docs
