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

Sensitive values are not passed to 3.x user defined types and classes

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.6.2
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      The Sensitive type instances can be used as values in parameters to resources and classes.

      Show
      The Sensitive type instances can be used as values in parameters to resources and classes.
    • Story Points:
      1
    • Sprint:
      Language 2016-09-07
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      It was not possible to pass values of Sensitive data type to classes and user defined resources as they were erroneously transformed to String values.

      Description

      When applying this:

      class toe(Sensitive[String] $x) {
        notice $x
      }
      class { toe: x => Sensitive('ouch') }
      

      It results in the error:

      Error while evaluating a Resource Statement, Class[Toe]: parameter 'x' expects a Sensitive value, got String at /Users/henrik/git/puppet/sensitive.pp:4:1
      

      This is probably because of the transformation to 3.x values that only allows certain data types to pass into the 3.x compiler logic.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                qa qa
                Reporter:
                henrik.lindberg Henrik Lindberg
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support