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

Extend the trusted_external_command setting to support specifying directories

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: PUP 6.17.0
    • Component/s: None
    • Labels:
    • Template:
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Hide
      The trusted_external_command setting can now be set to a directory. If it's set to a directory, then for each executable file in the directory, the external trusted facts will be stored in the <basename> key of the trusted['external'] hash. For example, if the files foo.rb and bar.sh are in the directory, then trusted['external'] will be the hash { 'foo' => <foo.rb output>, 'bar' => <bar.sh output> }.
      Show
      The trusted_external_command setting can now be set to a directory. If it's set to a directory, then for each executable file in the directory, the external trusted facts will be stored in the <basename> key of the trusted['external'] hash. For example, if the files foo.rb and bar.sh are in the directory, then trusted['external'] will be the hash { 'foo' => <foo.rb output>, 'bar' => <bar.sh output> }.
    • QA Risk Assessment:
      Needs Assessment

      Description

      If trusted_external_command points to a directory, then for each file in the directory,

      • If the file's executable, we can assume it's a trusted external command. That means we'll execute it, fetch its data, and store it in trusted['external'][<basename>].

        Attachments

          Activity

            People

            Assignee:
            enis.inan Enis Inan
            Reporter:
            enis.inan Enis Inan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support