https://www.puppet.com/community logo
Join Slack
Powered by
# puppet
  • b

    Brian Schonecker

    07/14/2022, 7:26 PM
    Before I make a fool of myself at Voxpupuli Chrony .... I'm doing security compliance (Qualys, CIS, etc) and I'm getting dinged on /etc/sysconfig/chrony not having OPTIONS='-u chrony' to ensure that the chrony daemon runs as the chrony user. Something in my brain tells me that /etc/sysconfig/chrony is deprecated (I'm on RHEL6 through 8 ). I have a need to manage the /etc/sysconfig/chrony file in order to pass compliance audits but before I do the work I wanted to know how/if you're meeting this compliance item (if at all) and if I should submit a change to the Voxpupuli project.
  • r

    ramnad

    07/14/2022, 7:27 PM
    my puppet ca cert got expired and I was able to renew it successfully. We have lot of clients that needs a new cert using this CA. is there a way to force generate the certs on the clients ? Removing the contents from ssl folder and restarting the puppet agent worked, but wanted to know if there is a better procedure?
  • v

    vchepkov

    07/14/2022, 7:32 PM
    it's not deprecated, still used in RHEL9 as well
  • b

    Brian Schonecker

    07/14/2022, 7:32 PM
    I'm wondering why /etc/sysconfig/chrony hasn't been implemented in the module...hence my trepidation of submitting such code.
  • v

    vchepkov

    07/14/2022, 7:33 PM
    that's a common trend in most of the modules, sysconfig is left alone
  • v

    vchepkov

    07/14/2022, 7:33 PM
    -u chrony
    is compiled into daemon by default, by the way
  • v

    vchepkov

    07/14/2022, 7:35 PM
    use shellvar or just file if you must
  • b

    Brian Schonecker

    07/14/2022, 7:35 PM
    Yeah, but my problem is that the vendor of the auditing/compliance software is very bad about how they do their scans.
  • y

    Yorokobi

    07/14/2022, 7:35 PM
    They all are.
  • b

    Brian Schonecker

    07/14/2022, 7:35 PM
    The crony daemon obviously runs as the chrony user but their code doesn't check that.
  • l

    Lumiere

    07/14/2022, 7:36 PM
    that sounds like you just need to tell qualys that they're wrong and give them ps -ef proof
  • v

    vchepkov

    07/14/2022, 7:36 PM
    so, if you set /etc/sysconfig/chronyd but alter service.d not to use it, everything is fine? 🙂
  • b

    Brian Schonecker

    07/14/2022, 7:37 PM
    So what my company ends up doing is removing an audit rule so that we 'pass' the audit. I'm using Qualys and Rapid7 and both of them seem to use the same rules from CIS benchmarks.
  • b

    Brian Schonecker

    07/14/2022, 7:38 PM
    Rapid7 is doing "egrep '^\s*OPTIONS\s*=\s*"([^"#]*\s+)*-u\schrony\b[^"#]*"\s*(?:#.*)?$' /etc/sysconfig/chronyd' and since '-u chrony' isn't there (which it doesn't need to be there) I fail the check.
  • b

    Brian Schonecker

    07/14/2022, 7:38 PM
    So what I'm doing is putting in something redundant just to shut up the report.
  • l

    Lumiere

    07/14/2022, 7:38 PM
    at least for us
  • b

    Brian Schonecker

    07/14/2022, 7:38 PM
    @Lumiere, the problem is that they're not good about changing their rules.
  • l

    Lumiere

    07/14/2022, 7:39 PM
    I have no idea if our scanning team or rapid7 is tweaking rules on our side
  • l

    Lumiere

    07/14/2022, 7:39 PM
    but we do a lot of stuff like "no that cve is fixed by version x of this package in el7"
  • b

    Brian Schonecker

    07/14/2022, 7:40 PM
    @Lumiere God, yes. I'm constantly explaining why versions of PHP from php.net don't align with the PHP RPM from Red Hat to the Qualys guys.
  • l

    Lumiere

    07/14/2022, 7:42 PM
    and we pay money for these things!
  • y

    Yorokobi

    07/14/2022, 7:42 PM
    You'd think Qualys (and Tenable and every other scanner) would know that RHEL packaged versions are != to vendor versions. I lost count how many times we've used the same excuse: Fixed in RHEL version x.
  • l

    Lumiere

    07/14/2022, 7:43 PM
    maybe we can convince Puppet to make a not dogs&#t version of all of this with their new bosses at perforce to put all these others out of business
    👍🏻 1
  • y

    Yorokobi

    07/14/2022, 7:44 PM
    CIS benchmarks, STIG, etc. == swamp/morass
  • l

    Lumiere

    07/14/2022, 7:45 PM
    all of the security standards are wishywashy
  • b

    Brian Schonecker

    07/14/2022, 8:24 PM
    Since the /etc/sysconfig/chronyd file is only one line and there can be multiple entries in "OPTIONS='option1 option2'" etc, what would be the best practice to populate the options in the file? A single string? Any array of options and their values or maybe a hash with option,value key/vaules?
  • b

    Brian Schonecker

    07/14/2022, 8:25 PM
    Most of my coding has not been writing from scratch and I want to ensure that whatever I submit to the voxpupuli/chrony project won't waste their time.
  • b

    Brian Schonecker

    07/14/2022, 8:25 PM
    Also, I have to be cognizant of existing chronyd setting and not step on them if possible.
  • b

    Brian Schonecker

    07/14/2022, 8:26 PM
    The last thing I want is to submit a breaking change.
  • n

    natemccurdy

    07/14/2022, 8:26 PM
    Depends on if you want Puppet to own the entire file or if you want to allow some values to be Puppet-managed and others not. If you go the “own the entire file” route, I think a parameter that takes an array of strings makes sense. Then you can write the file with an epp template that iterates over each entry in the array.
1...959697...428Latest