1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00
Commit graph

144 commits

Author SHA1 Message Date
Cole Mickens
24fd158fe6
sops-install-secrets: symlinkSecret: set uid/gid (with Fchownat) (#32)
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
2020-08-24 09:24:43 +01:00
Jörg Thalheim
7d2b22a18d
sops-install-secrets: disable tests 2020-08-10 18:22:59 +01:00
Jörg Thalheim
32c42617e4
sshkeys: use %w in fmt.Errorf calls 2020-07-30 16:22:43 +01:00
Jörg Thalheim
df86cc4e71
ssh-to-pgp: use %w for fmt.Errorf calls 2020-07-30 16:21:47 +01:00
Jörg Thalheim
01e4038c9a
don't print full executable path logging key import 2020-07-30 16:19:51 +01:00
Jörg Thalheim
9cd8bb080f
sops-install-secrets: use %w for fmt.Errorf calls 2020-07-30 16:19:14 +01:00
Jörg Thalheim
59e6df1acf
sops-init-gpg-key: include hostname on darwin 2020-07-23 08:45:32 +01:00
Jörg Thalheim
98afd85ef8
sops-ini-gpg-key: add install check 2020-07-23 08:20:08 +01:00
Jörg Thalheim
b8d91d61ac
restrict sops-install-secrets to linux
ramfs is not available elswhere.
2020-07-22 23:46:05 +01:00
Jörg Thalheim
4a41039ab3
mark sops-install-secrets as Linux only 2020-07-22 23:12:13 +01:00
Jörg Thalheim
5e95616f0f
use a shorter tempdir on macOS
By default macOS does something like this:

/var/folders/08/j4g_jn953lngpvgmyg8dygk00000gn/T/

breaking unix socket paths of gnupg.
2020-07-22 23:10:22 +01:00
Andreas Fuchs
1279274ddc
Use /tmp as the temporary dir for ssh-to-gpg
This isn't great: but it might prevent the agent from complaining.
2020-07-22 23:10:22 +01:00
Andreas Fuchs
0d885b439f
Create a temporary GNUPGHOME dir
This should prevent the paths from getting unwieldy, we'll see.
2020-07-22 23:10:22 +01:00
Jörg Thalheim
3095053dd4 darwin fixes 2020-07-22 22:29:01 +01:00
Jörg Thalheim
66393a1c82
sops-pgp-hook: ignore subkeys
fixes #17
2020-07-22 15:07:51 +01:00
Jörg Thalheim
0729c15de3
sops-pgp-hook: make test robust against file order
There is no guarantee that keys will be returned in a certain order
2020-07-22 14:32:08 +01:00
Jörg Thalheim
fd28d45f10
make golangci-lint happy 2020-07-19 23:30:28 +01:00
Jörg Thalheim
bffb0afb48
fix replace existing files 2020-07-19 23:23:38 +01:00
Jörg Thalheim
59803f7530
fix user manifest validation in sandbox
we should not lookup users there
2020-07-19 21:04:58 +01:00
Jörg Thalheim
30c6879b42
add validation mode 2020-07-19 17:09:27 +01:00
Jörg Thalheim
4224ec9ede
add validate flag 2020-07-19 11:32:59 +01:00
Jörg Thalheim
b1131e035d
sops-install-secrets: improve error message 2020-07-14 13:49:54 +01:00
Jörg Thalheim
6508df75b6
sops-install-secrets: include newline in log 2020-07-14 13:48:30 +01:00
Jörg Thalheim
cf34042dc2
sops-install-secrets: log gpg fingerprint 2020-07-14 13:42:32 +01:00
Jörg Thalheim
8cdca9dd6d
secring: open with more secure umask 2020-07-14 13:41:03 +01:00
Jörg Thalheim
4eda6711ba
fix /etc/secrets.d permissions 2020-07-14 13:21:07 +01:00
Jörg Thalheim
fe7f6360e8
add integration test for sops-pgp-hook 2020-07-14 11:26:54 +01:00
Jörg Thalheim
7c6f438d05
rework sops-pgp-hook and document it. 2020-07-13 09:51:53 +01:00
Jörg Thalheim
6286c5cc75
fix public gpg key import 2020-07-13 09:12:47 +01:00
Jörg Thalheim
71976f5a55
ssh-to-pgp: make armor encoding the default 2020-07-13 08:05:03 +01:00
Jörg Thalheim
bdfd4c3389
sops-init-gpg-key: print fingerprint 2020-07-13 07:25:08 +01:00
Jörg Thalheim
d8e505804a
ssh-to-pgp: print fingerprint 2020-07-13 07:24:51 +01:00
Jörg Thalheim
ec604e56c6
sops-shell-hook: look for both .asc/.gpg 2020-07-13 07:17:18 +01:00
Jörg Thalheim
81ab902811
don't panic when ssh key is encrypted 2020-07-13 06:26:45 +01:00
Jörg Thalheim
dfedaea239
avoid partial writes with ascii armor
Sill not perfect because it still prints the header
2020-07-13 06:26:41 +01:00
Jörg Thalheim
7bd84011ef
fix sops nixos module 2020-07-12 17:52:03 +01:00
Jörg Thalheim
1745bb9f95
build nixos tests on CI. 2020-07-12 17:45:31 +01:00
Jörg Thalheim
5ee7f3d73e
add ci 2020-07-12 17:36:14 +01:00
Jörg Thalheim
81f9f69b84
add ssh-to-pgp package 2020-07-12 17:18:12 +01:00
Jörg Thalheim
cbf6c6b93a
add project-wide shell.nix 2020-07-12 17:06:59 +01:00
Jörg Thalheim
38e71e351c
reference nixos tests in sops-install-secrets 2020-07-12 16:59:20 +01:00
Jörg Thalheim
b75e51c423
add tests + ssh key support 2020-07-12 13:50:55 +01:00
Jörg Thalheim
bb21643ce1
sops-install-secrets: get rid of delve import 2020-07-06 09:36:56 +01:00
Jörg Thalheim
8ccd9ba269
first commit 2020-07-06 07:31:57 +01:00