summaryrefslogtreecommitdiff
path: root/src/Propellor/Gpg.hs
AgeCommit message (Collapse)Author
2018-12-30Merged Utility changes from git-annexJoey Hess
Last done in May 2017..
2017-08-01Avoid crashing when getTerminalName fails due to eg, being in a chroot.Joey Hess
2017-07-30Set GPG_TTY when run at a terminalJoey Hess
so that gpg can do password prompting despite being connected by pipes to propellor (or git).
2017-05-15Removed dependency on MissingH, instead depends on split and hashable.Joey Hess
MissingH is a heavy dependency, which pulls in parsec and a bunch of stuff. So eliminating it makes propellor easier to install and less likely to fail to build. changesFileContent now uses hashable's hash. This may not be stable across upgrades, I'm not sure -- but it's surely ok here, as the hash is not stored. socketFile also uses hash. I *think* this is ok, even if it's not stable. If it's not stable, an upgrade might make propellor hash a hostname to a different number, but with 9 digets of number in use, the chances of a collision are small. In any case, I've opned a bug report asking for the stability to be documented, and I think it's intended to be stable, only the documentation is bad. NB: I have not checked that the arch linux and freebsd packages for the new deps, that Propellor.Bootstrap lists, are the right names or even exist. Since propellor depends on hashable, it could be changed to use unordered-containers, rather than containers, which would be faster and perhaps less deps too. This commit was sponsored by Alexander Thompson on Patreon.
2016-12-24GHC's fileSystemEncoding is used for all String IO, to avoid ↵Joey Hess
encoding-related crashes in eg, Propellor.Property.File.
2016-11-11Improve extraction of gpg secret key id list, to work with gpg 2.1.Joey Hess
2016-04-28Fix build with directory-1.2.6.2.Joey Hess
It's now exporting a conflicting isSymbolicLink https://github.com/haskell/directory/issues/52 Only a few places in propellor use isSymbolicLink, but to prevent future problems, made as much of it as possible import Utility.Directory, which re-exports System.Directory without the conflicting symbol. (Utility.Tmp and System.Console.Concurrent.Internal cannot import Utility.Directory due to cycles, and don't use isSymbolicLink anyway.)
2016-04-01setup gpg key in initial setup processJoey Hess
2016-03-07privdata/relocateJoey Hess
better than symlinks because this way no conflict can ever occur and, commit from hook
2016-03-06Force ssh, scp, and git commands to be run in the foreground.Joey Hess
Before, they could run in the background if another process was running, and so their output wouldn't immediately be visible. With this change, the concurrent-output layer is not used for these interactive commands.
2016-01-03refactor into smaller modules to untangle git and gpg modulesJoey Hess
2016-01-03Gpg: use gpg.program from git configFélix Sipma
(cherry picked from commit dd572a741f1ca4bce8f984c350d9045d979f1813)
2015-12-30add GNUPGBIN environment variableFélix Sipma
(cherry picked from commit dc3c55355246ec00782d636105871fe461587256)
2015-12-19Clean build with ghc 7.10.Joey Hess
Import Prelude after modules that cause warnings due to AMP change
2015-12-17hlintFélix Sipma
(cherry picked from commit e2d86f812bd37de9cda7d4ecc0e5b84821f359c1)
2015-11-01merge from concurrent-outputJoey Hess
2015-11-01run editor processes in foregroundJoey Hess
2015-10-04Fix --add-key to not fail committing when no privdata file exists yet.Joey Hess
2015-09-23remove git signing key when it's the key to be removedJoey Hess
2015-09-23Added --rm-key.Joey Hess
2015-09-15avoid a change to readProcess that I regretted in the morningJoey Hess
Seems better to keep handle encoding issues out of that module.
2015-09-14Allow storing arbitrary ByteStrings in PrivData, extracted using ↵Joey Hess
privDataByteString.
2014-11-23add --mergeJoey Hess
2014-11-11avoid configuring git signing key when there's no secret keyJoey Hess
Also, nice display for --add-key steps
2014-11-11use --trust-model always to avoid prompt from gpgJoey Hess
gpg prompts when encrypting to an untrusted key, but if propellor has been told to add a key, we implicitly trust it.
2014-11-11propellor spinJoey Hess