Skip to content

fix: various cross-module secret sharing issues - #8149

Merged
jedevc merged 3 commits into
dagger:mainfrom
jedevc:fix-embedded-with-call
Sep 11, 2024
Merged

jedevc merged 3 commits into
dagger:mainfrom
jedevc:fix-embedded-with-call

Conversation

@jedevc

@jedevc jedevc commented Aug 14, 2024 •

Copy link
Copy Markdown
Contributor

Thanks @sagikazarmark for the original bug report 🎉 (I think this is the same issue? it does have a slightly different error message).

invoke: input: dep.secretMount.mount resolve: failed to add client resources from ID: failed to add secret: secret xxh3:bc7dcced26cc08c7 not found in other store

The issue appears to be that the SecretMount.Secret is marked as // +private - if this is removed, the test appears to pass with no issues. I'm guessing that what's happening is that because the field is marked as private, it's not appearing as a field in the typedef.

Then, when we iterate to CollectCoreIDs, we don't manage to see this field:

for k, v := range obj.Fields {

I think that makes rough sense - note PBDefinitions has this same issue - potentially this could cause bugs in linkDependencyBlobs? Maybe, but I'm not sure what the symptoms of that would even look like.

There are a couple things that I think probably need fixing:

  • Typedefs should be extended to have private fields - the engine should know about these private fields, SDKs shouldn't be hiding them. I think this is the only way we can reasonable fix the linkDependencyBlobs thing from above as well.
  • It seems odd that the returned container with the mounted secret isn't detected as a secret? Is there an issue in our ID walking code? I think the secret ID should appear in the returned container right?

cc @sipsma

@jedevc
jedevc marked this pull request as draft August 14, 2024 10:33
@jedevc jedevc added this to the v0.12.6 milestone Aug 15, 2024
@jedevc jedevc changed the title test: add test for cross-module secrets shared through call wip: fix cross-module secrets shared through call Aug 19, 2024
@sagikazarmark

sagikazarmark commented Aug 21, 2024 •

Copy link
Copy Markdown
Contributor

I may have found another repro: https://github.com/sagikazarmark/daggerverse/pull/155/files#diff-2598c9fcbe43a9002d7558bf5ca98f0336b6eddbc7da5f699e0f59780e35c8fdR74-R82

When getting secrets from a different module through an interface, it fails with the following error:

invoke: input: svix.service resolve: failed to add client resources from ID: failed to add secret: secret xxh3:2396ae2da06a92ab not found in other store

Reproduce:

dagger -m github.com/sagikazarmark/daggerverse/svix/examples/go@pull/155/merge call svix-postgres

Unfortunately, I can't verify if it's working on 0.12.0, because interfaces in a constructor were broken on that version. But I haven't seen this issue (secret not found) on 0.12.0.

@jedevc jedevc modified the milestones: v0.12.6, v0.12.7 Aug 28, 2024
sagikazarmark added a commit to sagikazarmark/daggerverse that referenced this pull request Aug 30, 2024
@jedevc jedevc modified the milestones: v0.12.7, v0.13.0 Aug 30, 2024
@sipsma

sipsma commented Aug 31, 2024

Copy link
Copy Markdown
Contributor

(Sorry about the long radio-silence, unexpected IRL events followed by other fires to put out once back)

The problem around // +private makes perfect sense and agree with the fix being to actually track those in typedefs (just don't put in the external schema).

For the repro here: #8149 (comment) I think it may be due to the same thing rather than a separate interface bug? Specifically because of this line: https://github.com/sagikazarmark/daggerverse/pull/155/files#diff-2598c9fcbe43a9002d7558bf5ca98f0336b6eddbc7da5f699e0f59780e35c8fdR17-R18

  • That would align with the error specifically occurring at svix.service

@sagikazarmark

Copy link
Copy Markdown
Contributor

Thanks @sipsma! I won't pretend to understand the problem or the solution, but I look forward to the latter. Currently, I'm stuck on 0.12.0 where this problem doesn't occur.

I've tried to work around the problem, but since some of the private fields are types from other modules (that I can't make non-private), I can't.

@sagikazarmark

Copy link
Copy Markdown
Contributor

Hm, it seems to me there are multiple errors regarding the svix module:

Stdout:
invoke: input: svix resolve: call constructor: process "/runtime" did not complete successfully: exit code: 2

Stdout:
invoke: input: secret.plaintext resolve: secret not found: xxh3:37aa0d668210df47
input: svix.service resolve: call function "Service": process "/runtime" did not complete successfully: exit code: 2

Removing // +private from the container didn't solve the problem. And the first error indicates there is something wrong inside the constructor. The reason behind could still be a // +private field in the downstream module.

@sipsma
sipsma force-pushed the fix-embedded-with-call branch from 7c8cebf to ac70e08 Compare September 1, 2024 16:09
@jedevc
jedevc force-pushed the fix-embedded-with-call branch 2 times, most recently from 4c0f28b to 35236e4 Compare September 4, 2024 11:22
@jedevc jedevc changed the title wip: fix cross-module secrets shared through call fix: various cross-module secret sharing issues Sep 4, 2024
@jedevc

jedevc commented Sep 4, 2024

Copy link
Copy Markdown
Contributor Author
module.go.tmpl:85:3: executing "_dagger.gen.go/module.go.tmpl" at <ModuleMainSrc>: error calling ModuleMainSrc: failed to parse field type: unsupported type for named type reference *types.Map

Previously, users could put any type in a private field. This error occurs because map[string]any is in a private field, and we don't support map types. I guess we need to support map types? Or at the very least, allow defining this as an Undefined type in the typedefs API.

@jedevc

jedevc commented Sep 5, 2024 •

Copy link
Copy Markdown
Contributor Author

Hm, this really feels like opening pandora's box. Getting all the SDKs to report private fields feels like a big change, and also starts to reveal issues where users might previously have smuggled JSON-marshallable, but not typedefed fields into a // +private field (which is technically weird, but potentially is alright if no IDs are getting put through there).

I'm going to move some of this into a new PR, since at least with @sipsma's work this can be worked-around by removing the // +private declaration (#8358)

@jedevc
jedevc force-pushed the fix-embedded-with-call branch from b5ce62a to 05877b0 Compare September 5, 2024 13:43
@jedevc
jedevc marked this pull request as ready for review September 5, 2024 13:43
@jedevc

jedevc commented Sep 5, 2024

Copy link
Copy Markdown
Contributor Author

LGTM with just @sipsma's commits in here, but can't approve and merge since I opened the original PR.

@gerhard gerhard added the needs/changelog Pull requests that require a changelog entry label Sep 10, 2024

@gerhard gerhard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving optimistically.

Before merging, please add a release notes fragment. Otherwise LGTM 👍

The failing test is a known test flake, re-triggering: https://dagger.cloud/dagger/traces/43980045647d866aa3c76a95e62392ea?span=ec87e879b8f96072#ec87e879b8f96072:L5

image

@jedevc
jedevc force-pushed the fix-embedded-with-call branch from 552d399 to 18c8712 Compare September 11, 2024 09:52
There was a conditional in the code to skip collecting resource IDs
(secrets, sockets, etc.) when the function had no name. I believe this
was originally meant to skip doing this for the call to get the module
typedefs.

However, it ended up also skipping that codepath for constructors, which
is wrong. Secrets and other resources can be made during constructor
calls that should be collected, otherwise you will get errors about
missing client resources if they are made in that call.

As far as I can tell, that check can just be removed entirely without
any harm, so that's the fix here.

Signed-off-by: Erik Sipsma <[email protected]>
Signed-off-by: Justin Chadwell <[email protected]>
@jedevc
jedevc merged commit 7884350 into dagger:main Sep 11, 2024
@jedevc
jedevc deleted the fix-embedded-with-call branch September 11, 2024 10:24
@helderco helderco added the kind/bug Something isn't working label Sep 11, 2024
scottames referenced this pull request in scottames/dots Sep 25, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dagger/dagger](https://redirect.github.com/dagger/dagger) | minor |
`v0.12.7` -> `v0.13.0` |

---

### Release Notes

<details>
<summary>dagger/dagger (dagger/dagger)</summary>

###
[`v0.13.0`](https://redirect.github.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0130---2024-09-11)

[Compare
Source](https://redirect.github.com/dagger/dagger/compare/v0.12.7...v0.13.0)

##### 🔥 Breaking Changes

- Remove deprecated fields and arguments by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8065](https://redirect.github.com/dagger/dagger/pull/8065)
- Remove `Container.withExec`'s `skipEntrypoint` argument - this is now
the default (see `useEntrypoint`)
    -   Remove `pipeline`, `Container.pipeline` and `Directory.pipeline`
- Remove `GitModuleSource.cloneURL` (see `GitModuleSource.cloneRef`)

##### Added

- Added new `Directory.digest` and `ModuleSource.digest` fields by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8282](https://redirect.github.com/dagger/dagger/pull/8282)
\
These fields mirror the behavior of the `File.digest` field, computing a
    unique cryptographic digest over the contents of the object.
- TUI: add `--no-exit`/`-E` so you can poke around after the call
completes by [@&#8203;vito](https://redirect.github.com/vito) in
[https://github.com/dagger/dagger/pull/8389](https://redirect.github.com/dagger/dagger/pull/8389)

##### Changed

- The trace url is printed just before the final output to make it easy
to find by
[@&#8203;rajatjindal](https://redirect.github.com/rajatjindal) in
[https://github.com/dagger/dagger/pull/8366](https://redirect.github.com/dagger/dagger/pull/8366)
\
Also, the url will be printed only for a subset of dagger commands to
reduce noise.
- Increase the minimum connect timeout from 1s to 3s by
[@&#8203;neutronth](https://redirect.github.com/neutronth) in
[https://github.com/dagger/dagger/pull/8328](https://redirect.github.com/dagger/dagger/pull/8328)
\
Connecting to a distant remote engine could otherwise fail if it was not
reachable in 1s.

##### Fixed

- Fixed void types from core incorrectly being seen as named scalars by
[@&#8203;helderco](https://redirect.github.com/helderco) in
[https://github.com/dagger/dagger/pull/8336](https://redirect.github.com/dagger/dagger/pull/8336)
- Fix setting secrets on module object in constructor by
[@&#8203;sipsma](https://redirect.github.com/sipsma) in
[https://github.com/dagger/dagger/pull/8149](https://redirect.github.com/dagger/dagger/pull/8149)
- Allow top-level field access with no constructor by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8331](https://redirect.github.com/dagger/dagger/pull/8331)
\
Previously, if a field access was made immediately after the default
constructor was called, then the access would fail.
- Plain progress correctly displays carriage returns by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8347](https://redirect.github.com/dagger/dagger/pull/8347)
\
Carriage returns could previously render weirdly in the output,
displaying empty lines, and similar visual glitches.
- cli: Fix default value on `Platform` flag by
[@&#8203;helderco](https://redirect.github.com/helderco) in
[https://github.com/dagger/dagger/pull/8360](https://redirect.github.com/dagger/dagger/pull/8360)

##### What to do next?

-   Read the [documentation](https://docs.dagger.io)
-   Join our [Discord server](https://discord.gg/dagger-io)
-   Follow us on [Twitter](https://twitter.com/dagger_io)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/scottames/dots).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
scottames referenced this pull request in scottames/containers Sep 25, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dagger/dagger](https://redirect.github.com/dagger/dagger) | minor |
`v0.12.7` -> `v0.13.0` |

---

### Release Notes

<details>
<summary>dagger/dagger (dagger/dagger)</summary>

###
[`v0.13.0`](https://redirect.github.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0130---2024-09-11)

[Compare
Source](https://redirect.github.com/dagger/dagger/compare/v0.12.7...v0.13.0)

##### 🔥 Breaking Changes

- Remove deprecated fields and arguments by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8065](https://redirect.github.com/dagger/dagger/pull/8065)
- Remove `Container.withExec`'s `skipEntrypoint` argument - this is now
the default (see `useEntrypoint`)
    -   Remove `pipeline`, `Container.pipeline` and `Directory.pipeline`
- Remove `GitModuleSource.cloneURL` (see `GitModuleSource.cloneRef`)

##### Added

- Added new `Directory.digest` and `ModuleSource.digest` fields by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8282](https://redirect.github.com/dagger/dagger/pull/8282)
\
These fields mirror the behavior of the `File.digest` field, computing a
    unique cryptographic digest over the contents of the object.
- TUI: add `--no-exit`/`-E` so you can poke around after the call
completes by [@&#8203;vito](https://redirect.github.com/vito) in
[https://github.com/dagger/dagger/pull/8389](https://redirect.github.com/dagger/dagger/pull/8389)

##### Changed

- The trace url is printed just before the final output to make it easy
to find by
[@&#8203;rajatjindal](https://redirect.github.com/rajatjindal) in
[https://github.com/dagger/dagger/pull/8366](https://redirect.github.com/dagger/dagger/pull/8366)
\
Also, the url will be printed only for a subset of dagger commands to
reduce noise.
- Increase the minimum connect timeout from 1s to 3s by
[@&#8203;neutronth](https://redirect.github.com/neutronth) in
[https://github.com/dagger/dagger/pull/8328](https://redirect.github.com/dagger/dagger/pull/8328)
\
Connecting to a distant remote engine could otherwise fail if it was not
reachable in 1s.

##### Fixed

- Fixed void types from core incorrectly being seen as named scalars by
[@&#8203;helderco](https://redirect.github.com/helderco) in
[https://github.com/dagger/dagger/pull/8336](https://redirect.github.com/dagger/dagger/pull/8336)
- Fix setting secrets on module object in constructor by
[@&#8203;sipsma](https://redirect.github.com/sipsma) in
[https://github.com/dagger/dagger/pull/8149](https://redirect.github.com/dagger/dagger/pull/8149)
- Allow top-level field access with no constructor by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8331](https://redirect.github.com/dagger/dagger/pull/8331)
\
Previously, if a field access was made immediately after the default
constructor was called, then the access would fail.
- Plain progress correctly displays carriage returns by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8347](https://redirect.github.com/dagger/dagger/pull/8347)
\
Carriage returns could previously render weirdly in the output,
displaying empty lines, and similar visual glitches.
- cli: Fix default value on `Platform` flag by
[@&#8203;helderco](https://redirect.github.com/helderco) in
[https://github.com/dagger/dagger/pull/8360](https://redirect.github.com/dagger/dagger/pull/8360)

##### What to do next?

-   Read the [documentation](https://docs.dagger.io)
-   Join our [Discord server](https://discord.gg/dagger-io)
-   Follow us on [Twitter](https://twitter.com/dagger_io)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/scottames/containers).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
scottames referenced this pull request in scottames/daggerverse Sep 25, 2024
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [dagger/dagger](https://redirect.github.com/dagger/dagger) | minor |
`v0.12.7` -> `v0.13.0` |

---

### Release Notes

<details>
<summary>dagger/dagger (dagger/dagger)</summary>

###
[`v0.13.0`](https://redirect.github.com/dagger/dagger/blob/HEAD/CHANGELOG.md#v0130---2024-09-11)

[Compare
Source](https://redirect.github.com/dagger/dagger/compare/v0.12.7...v0.13.0)

##### 🔥 Breaking Changes

- Remove deprecated fields and arguments by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8065](https://redirect.github.com/dagger/dagger/pull/8065)
- Remove `Container.withExec`'s `skipEntrypoint` argument - this is now
the default (see `useEntrypoint`)
    -   Remove `pipeline`, `Container.pipeline` and `Directory.pipeline`
- Remove `GitModuleSource.cloneURL` (see `GitModuleSource.cloneRef`)

##### Added

- Added new `Directory.digest` and `ModuleSource.digest` fields by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8282](https://redirect.github.com/dagger/dagger/pull/8282)
\
These fields mirror the behavior of the `File.digest` field, computing a
    unique cryptographic digest over the contents of the object.
- TUI: add `--no-exit`/`-E` so you can poke around after the call
completes by [@&#8203;vito](https://redirect.github.com/vito) in
[https://github.com/dagger/dagger/pull/8389](https://redirect.github.com/dagger/dagger/pull/8389)

##### Changed

- The trace url is printed just before the final output to make it easy
to find by
[@&#8203;rajatjindal](https://redirect.github.com/rajatjindal) in
[https://github.com/dagger/dagger/pull/8366](https://redirect.github.com/dagger/dagger/pull/8366)
\
Also, the url will be printed only for a subset of dagger commands to
reduce noise.
- Increase the minimum connect timeout from 1s to 3s by
[@&#8203;neutronth](https://redirect.github.com/neutronth) in
[https://github.com/dagger/dagger/pull/8328](https://redirect.github.com/dagger/dagger/pull/8328)
\
Connecting to a distant remote engine could otherwise fail if it was not
reachable in 1s.

##### Fixed

- Fixed void types from core incorrectly being seen as named scalars by
[@&#8203;helderco](https://redirect.github.com/helderco) in
[https://github.com/dagger/dagger/pull/8336](https://redirect.github.com/dagger/dagger/pull/8336)
- Fix setting secrets on module object in constructor by
[@&#8203;sipsma](https://redirect.github.com/sipsma) in
[https://github.com/dagger/dagger/pull/8149](https://redirect.github.com/dagger/dagger/pull/8149)
- Allow top-level field access with no constructor by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8331](https://redirect.github.com/dagger/dagger/pull/8331)
\
Previously, if a field access was made immediately after the default
constructor was called, then the access would fail.
- Plain progress correctly displays carriage returns by
[@&#8203;jedevc](https://redirect.github.com/jedevc) in
[https://github.com/dagger/dagger/pull/8347](https://redirect.github.com/dagger/dagger/pull/8347)
\
Carriage returns could previously render weirdly in the output,
displaying empty lines, and similar visual glitches.
- cli: Fix default value on `Platform` flag by
[@&#8203;helderco](https://redirect.github.com/helderco) in
[https://github.com/dagger/dagger/pull/8360](https://redirect.github.com/dagger/dagger/pull/8360)

##### What to do next?

-   Read the [documentation](https://docs.dagger.io)
-   Join our [Discord server](https://discord.gg/dagger-io)
-   Follow us on [Twitter](https://twitter.com/dagger_io)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 4pm on thursday" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/scottames/daggerverse).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC43NC4xIiwidXBkYXRlZEluVmVyIjoiMzguNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: scottames-github-bot[bot] <162828115+scottames-github-bot[bot]@users.noreply.github.com>
Co-authored-by: Scott Ames <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working needs/changelog Pull requests that require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants