Repository navigation
add Secret core API - #3272
add Secret core API#3272
Secret core API#3272Conversation
👷 Deploy request for cloak-docs accepted.
|
|
Rebased to make use of the new & beefier runners. Wanted to double-check if the test failure is genuine. The tests are still failing, so not ready for review just yet. |
6bd4f3f to
bbfef2e
Compare
secret store now calls back to the gateway and fetches values via content-addressed SecretIDs Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
|
@kpenfound @jpadams Are you or anyone you know relying on the ability to map in secrets w/ CLI calls (i.e. |
sipsma
left a comment
There was a problem hiding this comment.
Code LGTM, I just want to hear back about the backwards incompatibility in terms of the CLI interface. If there is a need to support that use case I'd be okay with us adding it back in (it avoids the caching issues since it's always provided by client).
| return nil, fmt.Errorf("malformed secret config at index %d", i) | ||
| } | ||
|
|
||
| runOpts = append(runOpts, llb.AddSecret(secretDest, secretOpts...)) |
There was a problem hiding this comment.
nit: followup issue for some of the other options that users may need for secret mounts (mode, uid gid)
|
Checked in with @kpenfound on Discord, sounds OK. Going to merge this since a few things are starting to depend on it. Thanks for the review! For posterity: one migration path from |
Guessing it breaks me: https://github.com/jpadams/dagger-bash-netlify/blob/main/deploy.sh#L19 |
part of #3178
closes #3183
Unlike the other core API PRs, this is a breaking change as it replaces the old secret schema.
Removed:
Added:
This initial PR only supports loading secrets from files, but it has internal scaffolding in place for loading secrets from host env. There just isn't an API representation for it yet, since pulling on that thread leads me to the
HostAPI, which leads to possibly a bunch more work which I'm currently investigating. (tl;dr:Hostis a touch point for #3201 as well as the current SDK/plugin infra.)