Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-5743

DSC : Support Sensitive data type in MSFT_Credential

    XMLWordPrintable

Details

    • New Feature
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • DSC 1.0.2
    • None
    • None
    • None
    • Windows
    • Windows Kanban
    • Major
    • 2 - 5-25% of Customers
    • 3 - Serious
    • 4 - $$$$$
    • Hide
      A customer is reporting this issue and needs to be able to secure their domain join password using the Sensitive data type.
      No workaround for this issue and there is a PR ready for merging
      Show
      A customer is reporting this issue and needs to be able to secure their domain join password using the Sensitive data type. No workaround for this issue and there is a PR ready for merging
    • Needs Assessment

    Description

      DSC module validation does not allow for the Sensitive data type to be used in modules currently.

      dsc_user { 'bob':
      	dsc_username => 'bob',
      	dsc_ensure => 'present',
      	dsc_password    => {
          'user'     => 'bob',
          'password' => Sensitive("THE_bobbiest_1234!@#"),
        }
      }
      

      Currently fails with validation errors like:

      Error: Parameter dsc_password failed on Dsc_user[bob]: Validate method failed for class dsc_password: password for Password should be a String at c:/bob.pp:1
      

      This is due to stricter than necessary validation in the module.

      Attachments

        Activity

          People

            michael.lombardi Michael Lombardi
            ethan Ethan Brown
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support