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

scheduled_task : password does not support sensitive

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: scheduled_task, supported
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      Sensitive type working for password in scheduled_task

      Show
      Sensitive type working for password in scheduled_task
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 2.0.0
      Puppet Version: 6.4.2
      OS Name/Version: Windows Server 2016

      Customer would like to use sensitive type for password data which is taken from Hiera with integration including 3rd party password management.

      Desired Behavior:

      Sensitive datatype working for password field on schedule_task.

      Actual Behavior:

      When attempting to use Sensitive type, an error is thrown instead of the expected outcome

      Unable to mark 'password' as sensitive: password is a parameter and not a property, and cannot be automatically redacted.

      Example code used:

      Scheduled_task {
        ensure   => present,
        enabled  => true,
        user     => $scheduledtaskuser,
        password => $scheduledtaskpassword,
        provider => 'win32_taskscheduler',
        trigger  => undef,
      }
       
      $scheduledtasks.each | $key,$values | {
        scheduled_task { $key:
          command     => $values['command'],
          working_dir => $values['working_dir'],
          trigger     => $values['trigger'],
        }
      }

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            paul.reed Paul Reed
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support