Skip to content

✨ Specify Buildkit TLS certificates to connect to remote Buildkit #2227

Closed

Description

@hongchaodeng

What are you trying to do?

I have exposed Buildkit as TCP service in a remote machine. It's public internet so I am setting up mtls + certs. Like this:https://github.com/moby/buildkit#expose-buildkit-as-a-tcp-service

But Dagger docs did not mention anything about how to set certs on client side. Is it supported yet?

Why is this important to you?

No response

How are you currently working around this?

No response

Activity

  1. marcosnils commented on Apr 19, 2022

    @marcosnils
    Contributor

    But the docs did not mention anything about how to set certs on client side (Dagger). Is it supported yet?

    I don't think this is supported yet. Labeling to add visibility.

  2. gerhard commented on Apr 3, 2023

    @gerhard
    Contributor

    As far as I know, this is still not supported today.

    As a workaround, I would peer the hosts using WireGuard. I have been doing this successfully with Tailscale & Fly.io private (WireGuard) connection. I even do it in GitHub Actions: https://github.com/thechangelog/changelog.com/blob/be5234b5e55230438a7dfffc49952bff54ef35f0/.github/workflows/ship_it.yml#L19-L27

    Hope that helps!


    I answered this via https://discord.com/channels/707636530424053791/1003718839739105300/1092422859089006672

    image

    cc @sipsma @aluzzardi

  3. RealHarshThakur commented on Apr 5, 2023

    @RealHarshThakur

    With Dagger now having secrets, it would be nice to have them encrypted over-wire. We're thinking to maintain a single Dagger-engine cluster(with TLS) for Dagger and other projects that use Buildkit. We're able to run Dagger engine with certs, that seems to come up fine, so I assume we just need the SDK to accept client-side TLS certs and pass it over to Buildkit/Dagger engine?

  4. gerhard commented on Apr 5, 2023

    @gerhard
    Contributor

    Yes, that makes sense. cc @dolanor for secrets.

  5. marcosnils commented on Sep 8, 2025

    @marcosnils
    Contributor

    closing since buildkit is not exposed anymore when using Dagger.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions