Commit graph

60 commits

Author SHA1 Message Date
Jack Grigg
d35d442f91 v0.11.0 2024-11-03 10:42:17 +00:00
Jack Grigg
bca6916bac Update docs to permit multiple stanzas from recipients
Closes str4d/rage#524.
2024-11-03 07:30:16 +00:00
Jack Grigg
93fa28ad78 Migrate to secrecy 0.10 2024-11-03 05:38:51 +00:00
Jack Grigg
5bae3f1eae age-plugin: Fix no-label recipient plugins with old clients 2024-10-19 23:56:48 +00:00
Jack Grigg
3c9483f78f age-plugin: Commit to order in which RecipientPluginV1 methods are called 2024-08-23 11:48:39 +00:00
Jack Grigg
9476af8e1f age-plugin: Add labels extension to recipient-v1 2024-08-12 04:36:12 +00:00
Jack Grigg
2eec45718c age-plugin: Slightly improve trait documentation 2024-08-05 00:42:04 +00:00
Jack Grigg
2f79c8201b age-plugin: Replace run_state_machine arguments with a trait 2024-08-05 00:05:35 +00:00
Jack Grigg
18b27b377d age-plugin: Add impls of state machine traits for Infallible
This enables representing a plugin without a recipient or identity
handler in the type system.
2024-08-04 23:49:10 +00:00
Jack Grigg
0689e95927 Revert "age-plugin: Make arguments to run_state_machine optional"
This reverts commit 480c621a40.
2024-08-04 21:49:47 +00:00
Jack Grigg
e833cd19e4 v0.10.0 2024-02-04 22:33:22 +00:00
Jack Grigg
f9087bea50 Migrate from gumdrop to clap
Closes str4d/rage#437.
2024-01-08 05:37:46 +00:00
Jack Grigg
a26b7eaf73 age-plugin: Fix bugs in README 2024-01-08 03:28:17 +00:00
Jack Grigg
480c621a40 age-plugin: Make arguments to run_state_machine optional
Closes str4d/rage#387.
2023-08-06 16:54:35 +00:00
Jack Grigg
5c67ec2180 Migrate to base64 0.21 2023-08-06 15:06:12 +00:00
Jack Grigg
5b2ade12a4 Migrate to workspace inheritance 2023-08-06 15:06:12 +00:00
Jack Grigg
fdb41822fc Bump MSRV to 1.65.0 2023-08-06 15:06:10 +00:00
Jack Grigg
ec025bea2a v0.9.0 2022-10-27 02:28:43 +00:00
Jack Grigg
d2bb92915a Bump MSRV to 1.59.0
Closes str4d/rage#348.
2022-10-26 08:05:12 +00:00
Jack Grigg
a28cd5b438 bech32 0.9 2022-09-03 16:13:47 +00:00
Jack Grigg
885b90fe29 Add rust-version metadata to Cargo.toml files 2022-09-03 13:54:44 +00:00
Jack Grigg
0787472339 v0.8.0 2022-05-02 00:47:18 +00:00
Jack Grigg
e0bc913ecc age-plugin: Add explosion triggers to the example plugin
Closes str4d/rage#179.
2022-04-30 19:03:01 +00:00
Jack Grigg
753c0c1ca1 age-plugin: Add Callbacks::confirm 2022-04-26 12:25:12 +00:00
Jack Grigg
3dfb189281 Use renamed rustdoc::broken_intra_doc_links 2022-03-16 04:10:44 +00:00
Jack Grigg
017f3420bc Remove trait imports that are in the 2021 edition prelude 2022-03-16 04:10:44 +00:00
Jack Grigg
49a626ca67 clippy: Small fixes 2022-03-16 04:10:44 +00:00
Jack Grigg
538ac500da clippy: Remove needless borrows 2022-03-16 04:10:44 +00:00
Jack Grigg
4df2fac3e1 Migrate to 2021 edition 2022-03-16 04:10:44 +00:00
Jack Grigg
e297965621 Bump MSRV to 1.56.0
Closes str4d/rage#285.
2022-03-16 03:34:54 +00:00
Jack Grigg
3872563814 Add helper environment variable for debugging plugins
Setting the `AGEDEBUG` environment variable to `plugin` will cause all
plugin communications, as well as the plugin's stderr, to be printed to
the stderr of the parent process (e.g. rage).
2021-12-28 00:26:38 +00:00
Jack Grigg
7a2ff3ad4f v0.7.1 2021-12-27 00:30:42 +00:00
Jack Grigg
4c79db3fe0 v0.7.0 2021-10-18 17:52:37 +01:00
Jack Grigg
c7a2e998c6 age-core: Re-export secrecy crate 2021-10-18 14:24:19 +01:00
Jack Grigg
bbe8d518fb age-core: Add plugin::Error enum 2021-10-18 13:13:37 +01:00
Jack Grigg
36ca0c236e Fix various clippy lints 2021-09-12 19:53:20 +01:00
Jack Grigg
3cca6a03cc secrecy 0.8 2021-08-07 07:34:41 +01:00
Jack Grigg
215b1b0847 Bump MSRV to 1.51.0 2021-08-07 07:33:56 +01:00
Jack Grigg
dfd472006a Use new broken_intra_doc_links lint name
MSRV is now past 1.48.0.
2021-05-14 21:04:04 +01:00
Jack Grigg
e2a8cc2637 age-plugin 0.1.0 2021-05-02 13:07:17 +12:00
Jack Grigg
3150d5fac5 age-plugin: Update README 2021-05-02 13:00:13 +12:00
Jack Grigg
a208150631 v0.6.0 2021-05-02 12:50:41 +12:00
Jack Grigg
741a1662e1 age-plugin: Simplify IdentityPluginV1 trait 2021-04-13 18:28:45 +12:00
Jack Grigg
5f24783a7c age-plugin: Simplify RecipientPluginV1 trait 2021-04-13 18:28:45 +12:00
Jack Grigg
9b82182828 bech32 0.8 2021-03-21 12:02:11 +13:00
Jack Grigg
52c6012be3 age-plugin: Wrap all file keys at once in RecipientPluginV1
This allows plugins to optimise the order in which stanzas are wrapped,
e.g. to only require one user interaction with a hardware token.
2021-02-07 18:56:13 +00:00
Jack Grigg
cb443e55e0 plugins: Add request-public command to bi-directional phase
This enables plugins to request a non-secret value, which won't trigger
any passphrase-specific user prompt (that e.g. hides the user's input).
2021-02-05 23:49:13 +00:00
Jack Grigg
cd0d79e14c plugins: Extend recipient-v1 state machine with add-identities message
This enables plugins to wrap file keys to identities, for example when
the plugin is built around a symmetric primitive (since we do not want
the recipients encoding to ever contain secrets).
2021-02-05 23:49:13 +00:00
Jack Grigg
91804960d9 plugins: Change recipient-v1 state machine phase 2 to be bidirectional
The previous iteration of the recipient-v1 state machine assumed that
user interaction would never be required during encryption. This is
almost certainly true for asymmetric recipients, but is not the case
for symmetric recipients (e.g. the symmetric key might be stored on a
hardware token that requires a PIN).

The recipient-v1 state machine now uses a bi-directional second phase,
matching the identity-v1 state machine. It defines the same commands
for interacting with users.
2021-02-05 23:49:11 +00:00
Jack Grigg
21013e8c61 age-core: Assume two commands in Connection::unidir_receive
This places the command parsing function right next to the command
definitions.
2021-01-11 01:39:11 +00:00