Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-10961

Add option to declare parameters and properties as sensitive without the set_sensitive_parmeters

    XMLWordPrintable

Details

    • New Feature
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Needs Assessment

    Description

      Add option to declare parameters and properties as sensitive without the set_sensitive_parmeters

      Now following options are available to mark the parameter as sensitive

      option 1

      override the set_sensitive_parameters method and mark the parameter as sensitive. https://github.com/puppetlabs/puppet/commit/abd866a648a32d3895011d25af5d4b3d994669c8#diff-7b346a4c9ed8ffeefe92b019c36ca30c8e3cf1cbfef09fc45485df64075adcc0R607-R614

      option 2

      call the sensitive DSL method like the user's password logonpassword parameter: https://github.com/puppetlabs/puppet/blob/12401c3af42cfbae41b48621f5b42336db1ace1d/lib/puppet/type/service.rb#L180. This option requires puppet 6 or greater that supports the sensitive DSL method. 

      It will be nice to have a feature which will help the module authors to declare parameters and properties as sensitive

      For example

      newparam(..., sensitive: true)
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sheena Sheena Tharakanparampil
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support