propellor-0.4.0: property-based host configuration management in haskell

Safe HaskellNone

Propellor.Property.Gpg

Synopsis

Documentation

keyImported :: GpgKeyId -> UserName -> PropertySource

Sets up a user with a gpg key from the privdata.

Note that if a secret key is exported using gpg -a --export-secret-key, the public key is also included. Or just a public key could be exported, and this would set it up just as well.

Recommend only using this for low-value dedicated role keys. No attempt has been made to scrub the key out of memory once it's used.

The GpgKeyId does not have to be a numeric id; it can just as easily be a description of the key.