Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

secureString parameter cannot be passed to properties

Aperta
#1,748 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
40/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust, yaml
Ambito
cli, security

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Rust
Stelle
536
Fork
76
Merge medio
1g 11h
PR unite (30g)
15

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/DSC

Tutte le issue di PowerShell/DSC

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.