Repository navigation
docs: mount dir as secret cookbook - #5502
Merged
Merged
Conversation
Member
Author
|
For reference purposes, it works perfectly: https://gist.github.com/grouville/8aae4c02c1036ebdfac196545f0cb3ac. Here is the output: Go SDKgo run .
12: resolve image config for docker.io/library/alpine:3.17
12: > in from alpine:3.17
12: resolve image config for docker.io/library/alpine:3.17 DONE
34: pull docker.io/library/alpine:3.17
34: > in from alpine:3.17
34: resolve docker.io/library/alpine:3.17@sha256:e95676db9e4a4f16f6cc01a8915368f82b018cc07aba951c1bd1db586c081388
34: resolve docker.io/library/alpine:3.17@sha256:e95676db9e4a4f16f6cc01a8915368f82b018cc07aba951c1bd1db586c081388 [0.01s]
34: pull docker.io/library/alpine:3.17 DONE
31: exec chmod 700 /root/.gnupg CACHED
31: exec chmod 700 /root/.gnupg CACHED
32: exec apk add --no-cache gnupg CACHED
32: exec apk add --no-cache gnupg CACHED
30: exec chmod 700 /root/.gnupg/private-keys-v1.d CACHED
30: exec chmod 700 /root/.gnupg/private-keys-v1.d CACHED
29: exec gpg --import /root/.gnupg/public.key
29: [0.18s] gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
29: [0.18s] gpg: key 3CCB68B1170F9A36: "guigui <[email protected]>" not changed
29: [0.18s] gpg: Total number processed: 1
29: [0.18s] gpg: unchanged: 1
29: exec gpg --import /root/.gnupg/public.key DONE
28: exec gpg --import /root/.gnupg/private-keys-v1.d/private.key
28: [0.16s] gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
28: [0.16s] gpg: key 3CCB68B1170F9A36: "guigui <[email protected]>" not changed
28: [0.16s] gpg: key 3CCB68B1170F9A36: secret key imported
28: [0.16s] gpg: Total number processed: 1
28: [0.16s] gpg: unchanged: 1
28: [0.16s] gpg: secret keys read: 1
28: [0.16s] gpg: secret keys imported: 1
28: exec gpg --import /root/.gnupg/private-keys-v1.d/private.key DONE
27: exec gpg --detach-sign --armor /bin/ls
27: [0.16s] gpg: WARNING: unsafe permissions on homedir '/root/.gnupg'
27: [0.16s] gpg: Note: trustdb not writable
27: exec gpg --detach-sign --armor /bin/ls DONE
26: exec ls -l /bin/ls.asc
26: [0.15s] -rw-r--r-- 1 root root 228 Jul 24 14:32 /bin/ls.asc
26: exec ls -l /bin/ls.asc DONE
-rw-r--r-- 1 root root 228 Jul 24 14:32 /bin/ls.ascThe signature has been properly done ✅ Node SDKnode --loader ts-node/esm ./main.mts
(node:56632) ExperimentalWarning: Custom ESM Loaders is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
-rw-r--r-- 1 root root 228 Jul 24 14:32 /bin/ls.ascPython SDKpython3 main.py
12: resolve image config for docker.io/library/alpine:3.17
12: > in from alpine:3.17
12: resolve image config for docker.io/library/alpine:3.17 DONE
34: pull docker.io/library/alpine:3.17
34: > in from alpine:3.17
34: resolve docker.io/library/alpine:3.17@sha256:e95676db9e4a4f16f6cc01a8915368f82b018cc07aba951c1bd1db586c081388
34: resolve docker.io/library/alpine:3.17@sha256:e95676db9e4a4f16f6cc01a8915368f82b018cc07aba951c1bd1db586c081388 [0.01s]
34: pull docker.io/library/alpine:3.17 DONE
26: exec ls -l /bin/ls.asc CACHED
26: exec ls -l /bin/ls.asc CACHED
27: exec gpg --detach-sign --armor /bin/ls CACHED
27: exec gpg --detach-sign --armor /bin/ls CACHED
28: exec gpg --import /root/.gnupg/private-keys-v1.d/private.key CACHED
28: exec gpg --import /root/.gnupg/private-keys-v1.d/private.key CACHED
29: exec gpg --import /root/.gnupg/public.key CACHED
29: exec gpg --import /root/.gnupg/public.key CACHED
30: exec chmod 700 /root/.gnupg/private-keys-v1.d CACHED
30: exec chmod 700 /root/.gnupg/private-keys-v1.d CACHED
31: exec chmod 700 /root/.gnupg CACHED
31: exec chmod 700 /root/.gnupg CACHED
32: exec apk add --no-cache gnupg CACHED
32: exec apk add --no-cache gnupg CACHED
-rw-r--r-- 1 root root 228 Jul 24 14:32 /bin/ls.ascLocal docs overview
|
grouville
force-pushed
the
mount-dir-as-secret-docs
branch
2 times, most recently
from
July 24, 2023 15:51
8e1a115 to
4d0efce
Compare
grouville
marked this pull request as ready for review
July 24, 2023 15:51
grouville
force-pushed
the
mount-dir-as-secret-docs
branch
from
July 24, 2023 15:56
4d0efce to
da0fe51
Compare
grouville
force-pushed
the
mount-dir-as-secret-docs
branch
from
July 24, 2023 16:03
da0fe51 to
088e13a
Compare
vikram-dagger
approved these changes
Jul 25, 2023
vikram-dagger
left a comment
Contributor
There was a problem hiding this comment.
@grouville nice work. I'm approving subject to an improvement regarding a sentence where the implication was not immediately clear to me - can you please add/clarify that point before merging? Thanks.
helderco
force-pushed
the
mount-dir-as-secret-docs
branch
from
July 28, 2023 00:44
088e13a to
6da1b37
Compare
Small cookbook example / wrapper with the `.with()` method showing how to mount directories securely Signed-off-by: grouville <[email protected]>
grouville
force-pushed
the
mount-dir-as-secret-docs
branch
from
July 28, 2023 13:17
6da1b37 to
f24b319
Compare
grouville
added a commit
that referenced
this pull request
Jul 28, 2023
This reverts commit 05c3d65. Signed-off-by: grouville <[email protected]>
grouville
added a commit
that referenced
this pull request
Jul 28, 2023
This reverts commit 05c3d65. Signed-off-by: grouville <[email protected]>
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 #4896
Small cookbook example / wrapper with the
.with()method showing how to mount directories securely