secureString parameter cannot be passed to properties
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The payload names no source files, so start by finding where parameter type validation emits "is not a string" and where the secret() function result is resolved. Run the YAML from the report to reproduce the error. Done means a secureString parameter returned by secret() can be used in a string property and the value is written in clear text, with a test covering it.
由索引模型根据 Issue 内容生成。
描述
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Summary
The secureString parameter handling should be consistent with ARM templates usage. I need to be able to retrieve a secret from somewhere and pass it any property of any resource that accepts a string.
Steps to reproduce
parameters:
message:
type: secureString
defaultValue: "[secret('test')]"
resources:
- name: Echo parameter
type: Microsoft.Filesystem.File/Content
properties:
path: c:\temp\hello-dsc.txt
content: "[parameters('message')]"
Expected behavior
The secret value gets written in clear text into c:\temp\hello-dsc.txt
Actual behavior
ERROR Parameter input failure: Validation: Parameter 'message' is not a string
Error details
ERROR Parameter input failure: Validation: Parameter 'message' is not a string
Environment data
v3.3.0
Version
v3.3.0
Visuals
No response
- 主要语言
- Rust
- 星标
- 536
- 派生
- 76
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 15
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PowerShell/DSC 的其他 Issue
-
Issue-Enhancement Needs Triage
难度 4/5 3-5 天 新手友好度 30/100
PowerShell/DSC#1750 · 3 条评论 ·
维护者通常 1 天内回复
-
Issue-Bug Need-Review
难度 3/5 1-2 天 新手友好度 45/100
PowerShell/DSC#1749 ·
维护者通常 1 天内回复
-
"apt install dsc" will install the preview release instead of stable可能已有人在做 @SteveL-MSFT 于 2 天前认领。 未关闭Issue-Bug Need-Review
PowerShell/DSC#1746 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Issue-Enhancement
难度 5/5 一周以上 新手友好度 35/100
PowerShell/DSC#1737 · 1 条评论 ·
维护者通常 1 天内回复
-
Issue-Bug
难度 5/5 一周以上 新手友好度 35/100
PowerShell/DSC#1736 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
C-bug
难度 2/5 1-3 小时 新手友好度 78/100
rust-lang/rust-analyzer#23501 ·
维护者通常 1 天内回复
-
Streamable HTTP client: a 401 or 403 with a JSON-RPC error body and no WWW-Authenticate loses its HTTP status可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug P2 ready for work T-security T-transport
难度 2/5 1-3 小时 新手友好度 68/100
modelcontextprotocol/rust-sdk#1339 ·
维护者通常 3 天内回复
-
scripts/gen-gallery.py:118: a ready session now reports in_progress, so SESSION_READY_OLD can go未关闭nightly-audit
难度 2/5 1-3 小时 新手友好度 84/100
antithesishq/snouty#396 ·
维护者通常 1 天内回复
-
French BIP39 wordlist starts with a UTF-8 BOM, so generated French mnemonics carry U+FEFF and derive a non-canonical seed可能已有人在做 @Kshot3000 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 91/100
ergoplatform/sigma-rust#976 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复