Repository navigation
feat: implement host.setSecretFile() to securely set binary files as secrets - #5500
Merged
Merged
Conversation
host.setSecretFile() to securely set binary files as secrets
grouville
marked this pull request as ready for review
July 20, 2023 15:02
grouville
force-pushed
the
binary-secret
branch
2 times, most recently
from
July 24, 2023 15:25
76d82c8 to
449626d
Compare
Member
Author
helderco
approved these changes
Jul 25, 2023
vito
requested changes
Jul 26, 2023
vito
left a comment
Contributor
There was a problem hiding this comment.
Noticed a resource leak (leaving an *os.File open), otherwise LGTM!
…files Solves binary data issue (dagger#5069): Some users need to mount binary files or non UTF-8 files (GPG keys for example) as secrets. This PR implements a new API endpoints enabling a safe mount of those secrets without leaking information in any layer. Signed-off-by: grouville <[email protected]>
Add Changie's changelogs Signed-off-by: grouville <[email protected]>
Signed-off-by: Helder Correia <[email protected]>
vito
approved these changes
Jul 27, 2023
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
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.
Fixes #5069
Problem
Some users need to set binary files or non UTF-8 files (GPG keys for example) as secrets.
Solution
This PR implements a new API endpoints enabling a safe mount of those secrets without leaking information in any layer. (context starting from this comment: #5069 (comment))
Open question
Do we scope the host access to the project workdir, as other host APIs: https://github.com/dagger/dagger/blob/main/core/integration/host_test.go#L165-L172 ?