Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-1593

facter 2.x should disable proxy when fetching metadata from 169.254.169.254

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Community, PE
    • Labels:
      None
    • Template:
    • QA Risk Assessment:
      Needs Assessment

      Description

      Facter version 2.4.6 uses the openuri mixin, which is affected by the ENV['http_proxy'] setting.

      It retrieves EC2 metadata by contacting the metadata server at 169.254.169.254. If ENV['http_proxy'] is set, facter will wind up retrieving the metadata of the proxy server rather than its own metadata.

      To avoid this, calls to open must include the :proxy => nil modifier. In fact, some of the metadata calls have this modifier, but not all.

      I have submitted PR 1532 to resolve this problem.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              pillarsdotnet Robert August Vincent II
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support