[FEATURE] Declare sensitive variables and redact config output by default
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with the docker compose config implementation and its interpolation and extension-field handling, then identify configuration and CLI tests covering resolved output and redaction. Compare candidate declaration syntax and compatibility behavior with existing --quiet and --no-interpolate options. The work is done when sensitive fields redact resolved values by default, an explicit flag restores full output, runtime behavior is unchanged, and tests cover propagation, compatibility, and failure cases.
索引モデルが issue の本文から書いたものです。
説明
Problem
docker compose config can print credentials resolved from environment variables. When its output is shared in support tickets, CI logs, or AI coding-agent conversations, those credentials can be accidentally disclosed. This has repeatedly required credential rotation in my workflow.
Existing options such as --quiet and --no-interpolate are helpful, but do not provide the resolved configuration with selective redaction.
Could Compose allow explicitly marking variables as sensitive?
Example configuration
Proposed syntax, not currently supported:
x-sensitive-variables:
- DB_PASSWORD
services:
app:
image: example/app
environment:
APP_ENV: production
DATABASE_URL: "postgresql://app:${DB_PASSWORD}@db/app"
db:
image: postgres:17
environment:
POSTGRES_PASSWORD: "${DB_PASSWORD}"
Expected behavior
docker compose config would redact sensitive values by default:
# Relevant output excerpt
services:
app:
environment:
APP_ENV: production
DATABASE_URL: "<redacted>"
db:
environment:
POSTGRES_PASSWORD: "<redacted>"
Sensitivity would propagate through interpolation: any field containing a marked variable would have its entire resulting value redacted, regardless of the field's name.
An explicit flag, such as docker compose config --show-sensitive, would reveal resolved values. Container runtime behavior would remain unchanged.
Question
Would maintainers consider this feature? What declaration syntax and compatibility approach would you prefer, given that older Compose versions would ignore an x- extension and scripts may depend on fully resolved output?
AI disclosure: I used OpenAI Codex to research existing options and help draft this proposal. The request is based on my own workflow.
- 主要言語
- Go
- スター
- 38.4k
- フォーク
- 5.9k
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 66
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/compose のほかの issue
-
[BUG] `docker compose run` drops the anonymous volumes of a dependency it recreates対応中かも @htoyoda18 が 2 日前に担当しました。 オープンkind/bug status/0-triage
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
[BUG] <title>オープンkind/bug status/0-triage
難易度 5/5 1週間以上 初心者へのやさしさ 10/100
メンテナーはふだん 1 日以内に返信
-
Epic: Move service selection into the backend API instead of pre-filtering the project in the CLIオープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
メンテナーはふだん 1 日以内に返信
-
Watch: exec mode対応中かも @glours が 7 日前に担当しました。 オープンkind/feature
docker/compose#14326 · コメント 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Restore build concurrency limit now that bake supports it対応中かも @maxproske が 3 日前に担当しました。 オープンkind/feature
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
scaleway/scaleway-cli#6492 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
taskcluster/taskcluster#9284 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
oasdiff/oasdiff#1337 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
splunk/terraform-provider-splunk#256 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信