Skip to content

✨ Secrets support for Dockerfiles #2550

Closed as not planned
Closed as not planned

Description

@sipsma

Right now core.#Dockerfile doesn't seem to support secret mounts: https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/syntax.md#run---mounttypesecret

The way this should work is that users should be able to configure, in CUE, a mapping of secret IDs to secret contents. Then, anytime their Dockerfile requests a mount for a secret with that ID, it should show up as expected.

This should be straightforward, the "secret id"->"secret values" mappings can just be plugged in here (need a tiny refactor to not always set the id to be a hash), which will in turn plug them into our buildkit session and thus make them available to the dockerfile frontend.

Activity

  1. added
    area/engine
    on Jul 11, 2022
  2. sipsma commented on Jan 19, 2023

    @sipsma
    ContributorAuthor

    Tracking here now #4289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/engine

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions