Repository navigation
address(): a unified address to load containers, directories, secrets… - #10770
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
From a security POV, it's all sandboxed anyway. So
IMO there are so many exceptions already, that there's no point in hiding from module devs that some of their API calls reach into their own context, and never into the top-level caller's context (except for LLMs). That ship has sailed. As a corollary, I think the only reason to keep
It's a convenience wrapper. The logic for the wrapper already existed: it's currently in For some types, the wrapper is very thin. For others, it's much thicker. In the specific case of secrets:
The general idea is:
To reiterate and summarize my earlier point: I think it's hopeless to split the Dagger API between "parts that always interact with the caller/host" and "parts that never do". It's hopelessly entangled and I think we should embrace that. |
a3acccb to
27bf81d
Compare
|
@shykes Ahh, I see now - it's just always sandboxed (if there is one), so the CLI would use these on the outside to gain access to values from the host, and modules can also use it, but they will just be accessing their own sandbox. From how we got here, I assumed the intent was still for these to go through the host. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
c8530aa to
ab2d76a
Compare
|
This test fail on Elixir SDK is mysterious: https://dagger.cloud/dagger/traces/6ff475644f5c28f16642b8697a060cd0?span=fb5064e84b407ea4 Do we have a known flake there? |
952ff3a to
c1df9b5
Compare
|
Update on failing tests:
|
c47a925 to
a555511
Compare
jedevc
left a comment
There was a problem hiding this comment.
Code LGTM, just pending on tests.
99eac5f to
09b2fb6
Compare
jedevc
left a comment
There was a problem hiding this comment.
Optimistically approving - see above comments!
0ea41a6 to
cb57e94
Compare
jedevc
left a comment
There was a problem hiding this comment.
Fix the failing lint check, then good to merge.
6ced726 to
74b38bf
Compare
|
@jedevc you were right about the tests FYI. |
|
I've been re-running this failed tests several times, assuming it was a flake (error message seems unrelated). But it won't go away... FYI @sipsma @alexcb @vito @jedevc @kpenfound in case you recognize the error... |
Signed-off-by: Erik Sipsma <[email protected]>
…, etc. Signed-off-by: Solomon Hykes <[email protected]> Co-Authored-by: Erik Sipsma <[email protected]> Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Solomon Hykes <[email protected]>
|
Just barely missed the release train 😭 |
Extract CLI logic for loading different object types from a standard address; and expose it in the engine API. This is a requirement for #10697, which is part of #10370.
Schema diff
Examples
address https://github.com/dagger/dagger | git-repositoryaddress env://MYTOKEN | secretaddress ~/.zshrc | fileaddress tcp://localhost:4242 | serviceaddress https://github.com/dagger/dagger#main | git-refaddress https://github.com/dagger/dagger#main:docs | directory