Hide secrets from `docker inspect` command (and commit, debug, etc.)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start by reading the Docker secrets-engine documentation and tracing how se:// values are resolved into container environment variables; the issue does not name implementation files or tests. Investigate how resolved values reach inspectable container configuration and committed images, then define and test behavior that prevents secret values from persisting or being exposed while preserving the intended runtime use.
索引モデルが issue の本文から書いたものです。
説明
I understand this is beyond the scope of the secrets engine (which is primarily for guarding secrets access), but wanted to share my first impressions coming into docker pass, and I suspect other users.
My mental model was images get a se:// pointer, so secrets never get pushed to Hub. But the resolved secret value appears to be written back to disk, survive reference deletion and commited into image metadata.
Not sure what set my expectation. Probably secrets usage in cloud Sandboxes so 'credentials never enter the VM', or maybe 'you no longer need plaintext secrets on disk' in the readme, or 'secrets resolve just before the container starts' and 'the same reference can be reused across environments ... resolve against your local OS keychain in dev and against a prod vault in CI' in the docs docs made me think this was ephemeral runtime injection.
docker pass set db-password=supersecret123
cat > compose.yaml <<'EOF'
services:
db:
image: postgres:alpine
environment:
- POSTGRES_PASSWORD=se://db-password
EOF
docker compose up -d
docker inspect $(docker compose ps -q db) --format '{{json .Config.Env}}'
# ["POSTGRES_PASSWORD=supersecret123", ...] <- plaintext secret stored on disk
docker pass rm db-password
docker commit $(docker compose ps -q db) db:snapshot
docker inspect db:snapshot --format '{{json .Config.Env}}'
# ["POSTGRES_PASSWORD=supersecret123", ...] <- baked into any image you commit or push
Mostly concerned about accidental (agentic or otherwise) push/save, and anyone who pull/load the image reads the resolved secret value without access to the original keychain. Keeping the se:// reference in Config.Env would keep the value out of there but I doubt it's that trivial to solve.
- 主要言語
- Go
- スター
- 95
- フォーク
- 18
- 平均マージ
- 7時間 52分
- マージ済み PR(30日)
- 31
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/secrets-engine のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
docker/secrets-engine#682 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
docker/secrets-engine#665 ·
メンテナーはふだん 1 日以内に返信
-
Linux keychain dials a new D-Bus connection per operation, defeating per-entry access confirmationオープン
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
docker/secrets-engine#648 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
docker/secrets-engine#584 · コメント 1 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
docker/secrets-engine#551 · コメント 3 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
docker/secrets-engine の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
AvengeMedia/DankMaterialShell#3761 ·
メンテナーはふだん 1 日以内に返信
-
docs: clarify replacement for outdated Terms of Service URL in readme.md対応中かも @mohitjoshi-hey が今日担当しました。 オープン
難易度 1/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SocialGouv/iterion#2320 ·
メンテナーはふだん 1 日以内に返信
-
helm chart: the first upgrade after install restarts the filer and S3 gateway although nothing changed対応中かも @egezamb が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[mesheryctl] Potential runtime panic (index out of range) in system status when pod container statuses are partially populated対応中かも @Ayush-AM が今日担当しました。 オープンcomponent/mesheryctl kind/bug language/go
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
meshery/meshery#22312 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信