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

    VoxBot

    02/21/2023, 11:22 AM
    getting closer to being able to use puppet-lint 3.0 :)
  • v

    VoxBot

    02/21/2023, 11:24 AM
    mhm how do I configure theforeman/puppet on a puppetserver to connect to a foreman with TLS client cert/key
  • v

    VoxBot

    02/21/2023, 11:25 AM
    theforeman/puppetserver_foreman supports '' as values, but theforeman/puppet doesnt
  • v

    VoxBot

    02/21/2023, 11:26 AM
    huh? I don't quite get what you're suggesting
  • v

    VoxBot

    02/21/2023, 11:26 AM
    which parameters?
  • v

    VoxBot

    02/21/2023, 11:27 AM
    server_foreman_ssl_cert and server_foreman_ssl_key
  • v

    VoxBot

    02/21/2023, 11:28 AM
    what would '' mean? isn't that essentially "without TLS", instead of "with TLS"?
  • v

    VoxBot

    02/21/2023, 11:31 AM
    that should be 'with TLS but without client TLS'
  • v

    VoxBot

    02/21/2023, 11:31 AM
    ah, now I'm starting to get it
  • v

    VoxBot

    02/21/2023, 11:32 AM
    foreman uses a TLS chain from another CA, not from Puppet CA
  • v

    VoxBot

    02/21/2023, 11:32 AM
    and you disabled TLS auth on Foreman somehow?
  • v

    VoxBot

    02/21/2023, 11:32 AM
    this is an old setup where a cron uploads reports from a puppetserver to foreman
  • v

    VoxBot

    02/21/2023, 11:32 AM
    I assume someone else did that
  • v

    VoxBot

    02/21/2023, 11:34 AM
    ah mhm, or maybe not
  • v

    VoxBot

    02/21/2023, 11:35 AM
    the ssl_cert and ssl_key options are not set in /etc/puppetlabs/puppet/foreman.yaml
  • v

    VoxBot

    02/21/2023, 11:35 AM
    does that mean tls client cert isn't used, or are there some defaults hardcoded
  • v

    VoxBot

    02/21/2023, 11:36 AM
    ah the foreman.rb doesn't do tls client cert foo when it's not set in the config
  • v

    VoxBot

    02/21/2023, 11:36 AM
    so I'm sure there is no client cert authentication in foreman enabled
  • v

    VoxBot

    02/21/2023, 11:37 AM
    I'm trying to convert this manual setup to theforeman/puppet + theforeman/puppetserver_foreman
  • v

    VoxBot

    02/21/2023, 11:37 AM
    that's weird - sounds like a potential security hole
  • v

    VoxBot

    02/21/2023, 11:40 AM
    I wonder what's in the Apache config of the Foreman server
  • v

    VoxBot

    02/21/2023, 11:47 AM
    the apache config has sslverifyclient optional
  • v

    VoxBot

    02/21/2023, 11:49 AM
    sslcacertificatefile is set to the ca-certificates truststore, sslcarecovationfile is set to the puppet ca CRL. that looks odd
  • v

    VoxBot

    02/21/2023, 11:49 AM
    maybe the puppet CA was added to the global truststore
  • v

    VoxBot

    02/21/2023, 11:50 AM
    oh, that was something we had a LONG time ago, but it essentially means that any certificate signed by something in the truststore can be used to authenticate
  • v

    VoxBot

    02/21/2023, 11:51 AM
    ah
  • v

    VoxBot

    02/21/2023, 11:51 AM
    https://github.com/theforeman/puppet-foreman/commit/08911c3a6c776462fcc1aa99103fe588b8feb365
  • v

    VoxBot

    02/21/2023, 11:51 AM
    it's foreman 3.4.1, so not really old
  • v

    VoxBot

    02/21/2023, 11:52 AM
    2016, 7 years ago …
  • v

    VoxBot

    02/21/2023, 11:53 AM
    I'm tempted to just update the foreman.yaml and see what fails
1...308309310...648Latest