Commit graph

49 commits

Author SHA1 Message Date
Adrien Gallouët
319f87af67 Add a simple alternative to |grep when listing
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-06-03 17:37:22 +00:00
Adrien Gallouët
6fe3c6b8c5 Cleanup
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-06-01 09:26:15 +00:00
Adrien Gallouët
c8842eb58d Lock /dev/tty
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-06-01 09:18:17 +00:00
Adrien Gallouët
505006583f Locking the whole file is useless
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-06-01 08:25:55 +00:00
Adrien Gallouët
ce473cdbbc Bump to 0.8
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-29 15:57:43 +00:00
Adrien Gallouët
7baf7e1a92 Check pass when starting agent
And use O_RDONLY when it's possible.

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-29 15:51:32 +00:00
Adrien Gallouët
9e35f4afc6 Small fixes
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-28 14:58:10 +00:00
Adrien Gallouët
01aee5797f Bump to 0.7
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-27 15:05:59 +00:00
Adrien Gallouët
25f8b939bb Fix modulo bias
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-27 15:03:53 +00:00
Adrien Gallouët
ed4222732d Bump to 0.6
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-27 14:18:35 +02:00
Adrien Gallouët
73c0b58b2f Refuse to init when agent is running
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-27 14:15:07 +02:00
Adrien Gallouët
e76d8c1edb Improve help
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-27 14:09:54 +02:00
Adrien Gallouët
fa0b713e77 Improve UX: confirm passphrase
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-27 13:07:31 +02:00
Adrien Gallouët
4fb03cacb9 Improve UX
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-27 12:44:16 +02:00
Frank Denis
7239f0c4d3 Make s static 2020-05-27 11:38:53 +02:00
Adrien Gallouët
8411a513ac Bump to 0.5
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-09 20:17:04 +00:00
Adrien Gallouët
2dfc2ab17a Be more friendly and ask for new passphrases
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-06 19:37:19 +00:00
Adrien Gallouët
d97f17d742 Bump to 0.4
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-05 08:40:20 +00:00
Adrien Gallouët
77a4d31f0f Rework args and and allow renaming
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-05-05 00:16:10 +00:00
Adrien Gallouët
79e0df2fa0 Refuse empty keys
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-30 08:18:37 +00:00
Adrien Gallouët
b256e45ceb Add some randomness in secrets
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-29 20:32:46 +00:00
Adrien Gallouët
a5e5c9b09e Support subkeys for pass
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-29 12:53:49 +00:00
Adrien Gallouët
fc5587c470 Bump to 0.2
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-29 12:04:35 +00:00
Adrien Gallouët
d771c320f3 Add command pass
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-29 11:34:43 +00:00
Adrien Gallouët
9c68796f3e Allowing spaces was not a good idea
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-29 08:08:52 +00:00
Adrien Gallouët
22bca3b102 Bump to 0.1
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-28 18:22:47 +00:00
Adrien Gallouët
617c3e2cd9 Code cleanup
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-28 18:20:17 +00:00
Adrien Gallouët
b83f26bb36 Allow binary secrets
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-28 17:10:17 +00:00
Adrien Gallouët
a5d3dd5b4f Skip LF when piping
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-28 12:41:35 +00:00
Adrien Gallouët
ddbe7cf3f3 Generate 25 characters secrets
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-28 12:02:09 +00:00
Adrien Gallouët
6e548dcbf8 Remove aliases
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-28 11:50:25 +00:00
Adrien Gallouët
404b9e36cd Move lseek() at a better place
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-28 07:31:26 +00:00
Adrien Gallouët
005d4ecd1e Update commands
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-27 21:07:51 +00:00
Adrien Gallouët
a1e93a8702 Show version
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-27 17:10:55 +00:00
Adrien Gallouët
25aab11566 Run $SHELL in agent by default
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-27 09:48:50 +00:00
Adrien Gallouët
5df3ec389a Erase pass after derivation
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-27 10:16:00 +02:00
Adrien Gallouët
e3502f9054 Fix list and make room for a futur header
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-26 20:56:22 +00:00
Adrien Gallouët
60ed1c3699 Use 512 bytes entries and warn for bad inputs
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-26 12:52:29 +00:00
Adrien Gallouët
a9d18d8993 Setup a minimal sane TTY when asking for passphrases
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-26 11:00:07 +00:00
Adrien Gallouët
961608c6d7 Support a different store with SECRET_STORE
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-26 08:38:53 +00:00
Adrien Gallouët
3d8c11f77d Fix ctx size and bad signals
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-25 16:55:33 +00:00
Adrien Gallouët
4ebd568abd Add missing headers
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-25 13:00:35 +00:00
Adrien Gallouët
bbd7f1fa6b Put S_ENV_AGENT_REQ in S_ENV_AGENT
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-25 12:19:08 +00:00
Adrien Gallouët
6acaa49202 Code cleanup
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-25 11:40:13 +00:00
Adrien Gallouët
f2d0b64d35 Add IO timeout
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-24 21:24:04 +00:00
Adrien Gallouët
50ab07f92c Add a request agent pipe
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-24 20:36:48 +00:00
Adrien Gallouët
48ec04130c Rewrite help
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-24 17:47:09 +00:00
Adrien Gallouët
3f1d232dcf Fix bad cleanup
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-24 13:24:26 +00:00
Adrien Gallouët
7417bf0ee0 Import code
Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
2020-04-24 06:55:38 +00:00