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

Extend the trusted_external_command setting to support specifying directories

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Normal
    • Resolution: Done
    • None
    • PUP 6.17.0
    • None
    • New Feature
    • 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> }.
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support