UC secrets: supported access to resolved non-secret variables and redaction compatibility
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with bundle/direct/dresources/redact_config.go at v1.17.0, which the issue identifies as the location of the string-only redaction check. Review the validation JSON output and bundle variable resolution path to determine whether a supported way to expose selected non-secret resolved values exists. Done means maintainers clarify the compatibility contract and document an existing workflow or define a supported interface with sensitive value handling.
索引モデルが issue の本文から書いたものです。
説明
Question
What is the supported way for deployment tooling to consume natively resolved, non-secret bundle variables when a bundle declares Unity Catalog secrets?
We also want to understand the compatibility contract for redaction across variable types. Should downstream tools assume that redaction may expand to complex values in a future release?
Observed behavior
Reproduced with Databricks CLI 1.17.0 on Windows, using disposable resources and a dummy secret:
- Without a UC secret,
bundle validate -o jsonexposes resolved string variable values. - With
resources.secretscontaining a sensitive value, every string variable value becomes[redacted], including unrelated catalog, schema, and warehouse settings. - Integer, boolean, and complex values are not handled the same way by the current redaction implementation.
bundle deploystill resolves and uses the real values internally.
The string-only check is visible in redact_config.go at v1.17.0.
We understand the reason for protecting variable output. We are asking for a supported integration path rather than a guarantee that type-dependent redaction behavior will remain unchanged.
Minimal example
bundle:
name: uc-secret-validation-output
variables:
target_catalog:
default: example_catalog
target_schema:
default: example_schema
api_credential: {}
resources:
secrets:
example_secret:
name: example_secret
catalog_name: ${var.target_catalog}
schema_name: ${var.target_schema}
value: ${var.api_credential}
targets:
dev:
default: true
With an existing workspace profile, using only a dummy value:
$env:BUNDLE_VAR_api_credential = "dummy-value-for-reproduction"
databricks bundle validate --target dev --profile <profile> -o json
The resolved variables.target_catalog.value and variables.target_schema.value are both [redacted]. Removing the UC secret resource makes their normal values visible again. Deployment is not needed to demonstrate the output difference.
Why this matters
Our deployment wrapper uses the same target configuration for pre/post-deployment SQL. It needs the resolved catalog, schema, and warehouse ID, and uses bundle variables when preparing SQL and configuration files.
Reading YAML defaults alone is insufficient: includes, target overrides, environment and file overrides, lookups, and substitutions must agree with native deployment. Reimplementing that resolution logic outside the CLI creates a maintenance and compatibility burden.
Questions for maintainers
- Should external consumers treat all type-dependent visibility in validation JSON as an implementation detail that can change with redaction hardening?
- Is there a supported command, API, or lifecycle hook for obtaining explicitly selected non-secret resolved values without parsing display-oriented output or changing the bundle configuration?
- If not, would you consider such an interface, with an explicit contract for sensitive values and diagnostics?
An existing supported workflow or documentation would also be helpful. We do not need a blanket switch that prints all secrets.
- 主要言語
- Go
- スター
- 409
- フォーク
- 253
- 平均マージ
- 1日 11時間
- マージ済み PR(30日)
- 212
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
databricks/cli のほかの issue
-
Apps commands only accept relative path to app.yml対応中かも @yuri-rod が 17 日前に担当しました。 オープンCLI
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
databricks/cli#6910 ·
メンテナーはふだん 1 日以内に返信
-
DABs
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
databricks/cli#6670 ·
メンテナーはふだん 1 日以内に返信
-
bundle validate does not catch missing trigger.table_update.condition with multiple tables対応中かも @yuri-rod が 2 日前に担当しました。 オープンDABs Enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
databricks/cli#7101 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
databricks/cli#7100 ·
メンテナーはふだん 1 日以内に返信
-
DABs
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
databricks/cli#7032 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
Mend: dependency security vulnerability
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kube-tarian/sigrun#202 ·
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
eugenioenko/ttt#1085 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
fullsend-ai/fullsend#8688 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
question raised-by:verifier
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
medici-finance/assay#4013 ·
メンテナーはふだん 1 日以内に返信