Repository navigation
Conversation
eunomie
force-pushed
the
eunomie/module-clients-5-private-git-clients
branch
from
October 5, 2026 16:10
bda4f4f to
37f625a
Compare
eunomie
marked this pull request as ready for review
October 5, 2026 16:31
eunomie
force-pushed
the
eunomie/module-clients-5-private-git-clients
branch
2 times, most recently
from
October 6, 2026 11:05
44b60c0 to
de4d808
Compare
eunomie
force-pushed
the
eunomie/module-clients-5-private-git-clients
branch
from
October 6, 2026 12:26
de4d808 to
2c0ebe4
Compare
Extends the mapping of module scopes to local clients; local clients, and the call key built from them, are unchanged. Signed-off-by: Yves Brissaud <[email protected]>
Reads the dagger.toml that governs a module in the tree its local clients resolve in, so a client is trusted on the module's own config. Signed-off-by: Yves Brissaud <[email protected]>
Module code reaches a client through serveModule, not as a dependency, so a private client it declares failed for lack of credentials. Signed-off-by: Yves Brissaud <[email protected]>
The config that declares them can sit outside the module's source, so a result computed with lent credentials outlived a removed declaration and reached sessions that cannot lend them. Signed-off-by: Yves Brissaud <[email protected]>
Signed-off-by: Yves Brissaud <[email protected]>
eunomie
force-pushed
the
eunomie/module-clients-5-private-git-clients
branch
from
October 6, 2026 13:02
2c0ebe4 to
0aa75b9
Compare
TomChv
approved these changes
Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Module code reaches a client through
serveModule, not as a dependency, so a private git client failed for lack of credentials.Boundary change
Module runtime code may borrow the session's main-client git credentials only for git addresses declared in the module's governing config. When the calling module's own config declares the address, the engine resolves it as it resolves a declared dependency. An undeclared address still fails, now with a hint to declare it as a client. Plain programs are unchanged.
The governing config is the nearest
dagger.tomlbetween the module's directory and the root of its own tree; for a host module it is read from the host atserveModuletime.Caching
Calls depending on declared git clients are cached per session: the declared git clients are part of the module call's cache key, so a result computed while a client was declared is not served from cache after the declaration changes or disappears without the authorization check running again.
Tests
core/integration/module_serve_git_trust_test.goaddsTestServeModuleDeclaredGitClient(five subtests), plus a cache-key subtest that checks a call misses the cache after the declaration changes while the module's own source digest is unchanged.Cost
The key now reads the governing config on each call of a module that has a tree. The cost is not measured.
Known gap
generatethroughmoduleSource(refString:)on a private ref still fails; that path is out of scope here.Open questions for the engine owners
moduleSource(refString:)should get the same check;Depends on
#14489 and #14490 (stack positions 1 and 2).