Uploaded image for project: 'Puppet Server'
  1. Puppet Server
  2. SERVER-2821

Hardcoded puppet user in code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Needs Information
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: SERVER 6.9.2
    • Fix Version/s: None
    • Component/s: Puppet Server
    • Labels:
      None
    • Template:
      PUP Bug Template
    • Team:
      Froyo
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.14.0-1
      Puppet Server Version: 6.9.2-1
      OS Name/Version: CentOS7

      The puppetserver codebase contains at least one instance of hardcoding the username and group that puppet operates under. In our case, we do not run puppet as the system puppet user. This ends up breaking when we generate a new install / certificate for CA.

       

      Here is the line of code we've discovered:

      https://github.com/puppetlabs/puppetserver-ca-cli/blob/master/lib/puppetserver/ca/utils/file_system.rb#L64

      Desired Behavior:

      Be capable of running the puppet user as alternative system users than puppet. 

      Actual Behavior:

      Fails with the following:

      puppet-agent-6.14.0-1/lib/ruby/2.5.0/fileutils.rb:1019:in `getpwnam': can't find user for puppet (ArgumentError)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jasonknudsen Jason Knudsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support