Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

secureString parameter cannot be passed to properties

オープン
#1,748 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
40/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust, yaml
領域
cli, security

調査の方向性

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 の本文から書いたものです。

説明

Issue-Bug Need-Review
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時間
マージ済み PR(30日)
15

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PowerShell/DSC のほかの issue

PowerShell/DSC の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。