summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Gpg.hs
AgeCommit message (Collapse)Author
2018-01-17Run su with --loginJoey Hess
To avoid inheriting some problematic environment variables, such as TMP, from the caller. The only potential breakage from this change would be if something used setEnv before one of the affected properties. Audited propellor's source for that, and nothing does. Anything that did would could fail in a concurrent context anyway.
2016-12-24GHC's fileSystemEncoding is used for all String IO, to avoid ↵Joey Hess
encoding-related crashes in eg, Propellor.Property.File.
2016-03-26more portingJoey Hess
2015-12-17minor tweakJoey Hess
2015-12-17Gpg: fix gpg parameters in hasPrivKey and hasPubKeyFélix Sipma
(cherry picked from commit 04464ae17a7396d0cafffefc2880e68f40fc42ad)
2015-12-17Gpg: use processTranscript in hasPrivKey and hasPubKeyFélix Sipma
(cherry picked from commit 21ffe59d0368f5cfe45316b31d661077e372d512)
2015-12-16Gpg: parse GpgKeyType in keyImportedFélix Sipma
(cherry picked from commit cdd1e093118b5eeab7743be7e2ec959980716145)
2015-12-16Gpg.keyImported: check if a pubKey is imported instead of using a flagfileFélix Sipma
(cherry picked from commit 9712d125a2c3e3c609b68d9958207c251ba005ac)
2015-12-16Gpg: use isJustFélix Sipma
(cherry picked from commit 1bb2377598e447e81e20a0e1de1a5d466851d655)
2015-12-16Gpg: add hasPrivKey and hasPubKeyFélix Sipma
(cherry picked from commit 7196b884e35ba907891c00d6e2840a36dce2214c)
2015-10-10propellor spinJoey Hess
2015-09-14clean up privdata excess/lacking newline issueJoey Hess
* PrivData converted to newtype (API change). * Stopped stripping trailing newlines when setting PrivData; this was previously done to avoid mistakes when pasting eg passwords with an unwanted newline. Instead, PrivData consumers should use either privDataLines or privDataVal, to extract respectively lines or a value (without internal newlines) from PrivData.
2015-04-22API change: Added User and Group newtypes, and Properties that used to use ↵Joey Hess
the type UserName = String were changed to use them. Note that UserName is kept and PrivData still uses it in its sum type. This is to avoid breaking PrivData serialization.
2015-01-24GADT properties seem to work (untested)Joey Hess
* Property has been converted to a GADT, and will be Property NoInfo or Property HasInfo. This was done to make sure that ensureProperty is only used on properties that do not have Info. Transition guide: - Change all "Property" to "Property NoInfo" or "Property WithInfo" (The compiler can tell you if you got it wrong!) - To construct a RevertableProperty, it is useful to use the new (<!>) operator - Constructing a list of properties can be problimatic, since Property NoInto and Property WithInfo are different types and cannot appear in the same list. To deal with this, "props" has been added, and can built up a list of properties of different types, using the same (&) and (!) operators that are used to build up a host's properties.
2014-12-14broke up big function to describe PrivDataFieldJoey Hess
2014-11-15Convert GpgKeyId to newtypeJoey Hess
2014-07-06propellor spinJoey Hess
2014-05-14moved source code to srcJoey Hess
This is to work around OSX's brain-damange regarding filename case insensitivity. Avoided moving config.hs, because it's a config file. Put in a symlink to make build work.