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

    VoxBot

    11/22/2024, 3:17 PM
    you can also consider switching to a CA-based authentication or LDAP (though I'm hesitant to recommend LDAP)
  • v

    VoxBot

    11/22/2024, 3:18 PM
    can't say I have experience with those in production, but if you're doing very custom things, perhaps you need to go all in
  • v

    VoxBot

    11/22/2024, 3:18 PM
    was about to ask, what actually is your setup
  • v

    VoxBot

    11/22/2024, 3:26 PM
    ewoud: yeah, i know
  • v

    VoxBot

    11/22/2024, 3:26 PM
    i'm not sure you want to know :p
  • v

    VoxBot

    11/22/2024, 3:26 PM
    there's LDAP involved, writing to /var/lib/misc/userkeys
  • v

    VoxBot

    11/22/2024, 3:26 PM
    but that's besides the point
  • v

    VoxBot

    11/22/2024, 3:27 PM
    this is solely puppet-managed keys, pretty straightforward stuff
  • v

    VoxBot

    11/22/2024, 3:27 PM
    the twist is we don't want users to be able to modify their own keys
  • v

    VoxBot

    11/22/2024, 3:27 PM
    so we write them in a centralized directory, /etc/ssh/puppetkeys, controlled by root
  • v

    VoxBot

    11/22/2024, 3:28 PM
    i'm still not exactly clear on what autorequire gives me
  • v

    VoxBot

    11/22/2024, 3:28 PM
    how are they then able to write to it?
  • v

    VoxBot

    11/22/2024, 3:28 PM
    i will still need a require_resource thing
  • v

    VoxBot

    11/22/2024, 3:28 PM
    they are not
  • v

    VoxBot

    11/22/2024, 3:28 PM
    puppet writes to it
  • v

    VoxBot

    11/22/2024, 3:28 PM
    I think the point is they have to update it in puppet
  • v

    VoxBot

    11/22/2024, 3:28 PM
    yes
  • v

    VoxBot

    11/22/2024, 3:28 PM
    I assume this is for service accounts mostly
  • v

    VoxBot

    11/22/2024, 3:28 PM
    in fact, in this case, puppet both generates and writes those keys
  • v

    VoxBot

    11/22/2024, 3:28 PM
    yes
  • v

    VoxBot

    11/22/2024, 3:28 PM
    so what's your issue?
  • v

    VoxBot

    11/22/2024, 3:28 PM
    (although, why not just stuff those in ldap?)
  • v

    VoxBot

    11/22/2024, 3:28 PM
    the issue is that ssh_authorized_key makes this extremely hard
  • v

    VoxBot

    11/22/2024, 3:29 PM
    Lumiere: because that requires manual changes
  • v

    VoxBot

    11/22/2024, 3:29 PM
    puppet doesn't write to ldap
  • v

    VoxBot

    11/22/2024, 3:29 PM
    the issue is that ssh_authorized_keys hardcode a 0600 mode
  • v

    VoxBot

    11/22/2024, 3:29 PM
    which is "writable by the user", which is not what we want
  • v

    VoxBot

    11/22/2024, 3:29 PM
    so puppet is building the keys too?
  • v

    VoxBot

    11/22/2024, 3:29 PM
    yes
  • v

    VoxBot

    11/22/2024, 3:30 PM
    isn't the owner the problem then?
1...625626627...648Latest