Skip to content

feat: mount client ~/.config/dagger/ca-certificates to engine - #11019

Merged
matipan merged 2 commits into
dagger:mainfrom
jedevc:ca-certs-config
Sep 12, 2025
Merged

matipan merged 2 commits into
dagger:mainfrom
jedevc:ca-certs-config

Conversation

@jedevc

@jedevc jedevc commented Sep 10, 2025 •

Copy link
Copy Markdown
Contributor

Simply allows configuration via the same mechanism that we propagate ~/.config/dagger/engine.json by.

@jedevc
jedevc marked this pull request as ready for review September 10, 2025 12:30
@jedevc
jedevc marked this pull request as draft September 10, 2025 12:36
@jedevc

jedevc commented Sep 10, 2025

Copy link
Copy Markdown
Contributor Author

This effectively replaces the instructions here: https://docs.dagger.io/reference/configuration/custom-ca

However, as-is, it still doesn't allow for configuring registry CAs.

@matipan

matipan commented Sep 10, 2025 •

Copy link
Copy Markdown
Contributor

We synced with @jedevc and reached the conclusion that our best bet would be to implement support for custom registry mirrors in engine.json. We are going to send a separate PR for it since it relatively unrelated to this change.

I would still merge the change here since its a better DX for something that users already need doing

@jedevc
jedevc marked this pull request as ready for review September 10, 2025 15:12
@grouville

grouville commented Sep 10, 2025 •

Copy link
Copy Markdown
Member

Helped a user yesterday where I needed to authorize an insecure local registry. Atm, users need to rely on engine.toml, and build a custom engine.

It would be nice to extend the engine.json to also support this part of the engine.toml (as follow-ups), or to also mount the daemon.json (not sure if feasible though 🤔) ?

@matipan

matipan commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

Helped a user yesterday where I needed to authorize an insecure local registry. Atm, users need to rely on engine.toml, and build a custom engine.

It would be nice to extend the engine.json to also support this part of the engine.toml (as follow-ups), or to also mount the daemon.json (not sure if feasible though 🤔) ?

100%. Working on registry config on engine.json right now! 💪🏼

@matipan
matipan requested a review from a team as a code owner September 12, 2025 13:57
@jedevc

jedevc commented Sep 12, 2025

Copy link
Copy Markdown
Contributor Author

LGTM! (DCO sign-off needed before merge, but otherwise feel free to merge whenever!)

@matipan
matipan merged commit 9a9f3b6 into dagger:main Sep 12, 2025
@shykes

shykes commented Sep 12, 2025 •

Copy link
Copy Markdown
Contributor

Looks great, thanks!

Just to confirm @jedevc @matipan , all I need to do is copy my certificates to ~/.config/dagger/ca-certificates on the client, and on boom on the next call, everything works?

Also clarifying question: what are these certificates used for exactly?

  • Injection into containers by Container.withExec?
  • Docker authentication by Container.from, Container.publish, Directory.dockerBuild?
  • Git authentication by git()?
  • Git authentication by SDKs?
  • other?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants