Neal H. Walfield
79443e5e1a
Improve password prompt's grammar.
...
- Have the caller include `the`, if required.
2024-07-18 23:14:07 +02:00
Neal H. Walfield
87cf671eb2
Don't panic if a key doesn't contain secret key material, skip it.
...
- If a key specified using `--recipient-file` does not contain
secret key material, don't panic, just skip it.
- It is perfectly reasonable for only a subset of keys in a
TSK to contain secret key material.
2024-07-18 23:14:07 +02:00
Neal H. Walfield
4d8a870779
Refactor the decryption code to use Sq::decrypt_key.
...
- Refactor `Helper::decrypt` to use `Sq::decrypt_key`.
2024-07-18 23:14:07 +02:00
Neal H. Walfield
0f675553e7
Extend Sq::decrypt_key to optionally prompt for a password.
...
- Extend `Sq::decrypt_key` to take an additional argument,
`may_prompt`, which causes `Sq::decrypt_key` to fail rather than
prompt the user for a password.
2024-07-18 23:14:06 +02:00
Neal H. Walfield
3553dd8b60
Merge Sq::get_signer's key decryption into Sq::decrypt_key.
...
- Merge `Sq::get_signer`'s key decryption functionality into
`Sq::decrypt_key`, and use that function instead.
2024-07-18 23:14:06 +02:00
Neal H. Walfield
5a17258373
Move decrypt_key to Sq.
...
- Move the `decrypt_key` function in `common:🔑 :password` to `sq`
and make it a method on `Sq`.
2024-07-18 23:14:06 +02:00
Neal H. Walfield
f058505215
Upgrade bytes.
...
- `bytes` 1.6.0 was yanked. Upgrade to 1.6.1.
2024-07-18 23:14:05 +02:00
Neal H. Walfield
b8591c480f
Fix the autocrypt test's time.
...
- When running the autocrypt test, don't use the current time, but
set it to a fixed time. This prevents failures due to an expired
certificate.
2024-07-18 23:14:05 +02:00
Justus Winter
9c4fa52391
Make the domain parameter a required long argument.
...
- Having multiple positional arguments makes it hard to remember the
order. Just make the domain a long argument.
- Further, format the examples nicer by preventing line breaks
between argument name and value.
2024-07-11 15:46:23 +02:00
Justus Winter
ba5257b312
Fix breaking lines in examples.
2024-07-11 15:42:02 +02:00
Justus Winter
272bda3703
Cleanup recursive copying.
...
- Replace dircpy with the more mature and more widely used fs_extra.
2024-07-11 15:26:27 +02:00
Justus Winter
f3f013fc9d
Remove sq network wkd url and direct-url.
...
- These leak implementation details and support the idea that WKD is
just a http request to some URL, which is not true, and will be
less true in the future. I don't think this is an interface that
we can support going forward.
2024-07-11 14:52:35 +02:00
Justus Winter
55f6fa894b
Remove sq network wkd generate as publish does the same.
2024-07-11 14:52:35 +02:00
Justus Winter
87806baf6a
Implement sq network wkd publish.
2024-07-11 14:52:35 +02:00
Justus Winter
caf71d3b1e
Reorder network subcommands so that fetch comes first.
2024-07-11 12:36:47 +02:00
Neal H. Walfield
7102828196
Move the password changing business logic to the common module.
...
- Move the password changing business logic from
`commands:🔑 :password` to `common:🔑 :password`.
2024-07-05 14:01:08 +02:00
Neal H. Walfield
e276be8cad
Reorganize modules under common.
...
- Move `common::expire` to `common:🔑 :expire`, and
`common::delete` to `common:🔑 :delete`.
2024-07-05 10:29:39 +02:00
Neal H. Walfield
3aee2c89d4
ci: Use new docker registry on jampot.
2024-07-05 10:11:56 +02:00
Neal H. Walfield
9b991045ca
New subcommand sq key subkey delete
to delete secret key material.
2024-07-05 09:50:37 +02:00
Neal H. Walfield
68e5213478
Add tests for sq key delete.
2024-07-05 09:50:37 +02:00
Neal H. Walfield
f6848c9a47
Update code using deprecated functions from chrono.
...
- Now that we've raised our minimum supported `chrono`
version, update code using deprecated functions.
2024-07-05 09:50:37 +02:00
Neal H. Walfield
44973f0fb7
Upgrade chrono.
...
- Change the minimum supported version of `chrono` to 0.4.38.
- This is the version in Debian testing.
- Upgrading allows us to remove the use of some deprecated
functions.
2024-07-05 09:50:36 +02:00
Neal H. Walfield
dc7d5c4d2b
Remove unused imports.
2024-07-05 09:50:27 +02:00
Neal H. Walfield
e85661e8b7
Update code using deprecated functions from sequoia-openpgp.
...
- Now that we've raised our minimum supported `sequoia-openpgp`
version, update code using deprecated functions.
2024-07-04 22:51:46 +02:00
Neal H. Walfield
b3fbee9565
Upgrade sequoia-openpgp.
...
- Upgrade `sequoia-openpgp` to 1.21.1.
- Versions prior to 1.21.1 have some security vulnerabilities.
2024-07-04 22:51:46 +02:00
Neal H. Walfield
0859a02845
Upgrade zerovec and zerovec-derive.
...
- The current versions of `zerovec` and `zerovec-derive` are yanked.
Upgrade to the latest version.
2024-07-04 22:51:46 +02:00
Neal H. Walfield
4e0af86dc2
Fix sq inspect to respect the reference time.
...
- `sq inspect` used the current time. Change it to respect the
reference time set using the `--time` argument.
2024-06-21 22:07:21 +02:00
Neal H. Walfield
77a5047c6b
Display a hint when parsing an invalid timestamp.
...
- Display a hint when parsing an invalid ISO8601 timestamp.
2024-06-21 22:07:21 +02:00
Justus Winter
846d819368
Port sq verify's examples to the example framework.
...
- Port `sq verify`'s examples to the example framework and improve
them.
- See #196 .
2024-06-20 18:00:47 +02:00
Justus Winter
279cf37665
Remove odd comment.
2024-06-20 17:14:55 +02:00
Justus Winter
b014176a3e
Port sq sign's examples to the example framework.
...
- Port `sq sign`'s examples to the example framework and improve
them.
- See #196 .
2024-06-20 16:52:28 +02:00
Justus Winter
c137359f15
Port sq encrypt's examples to the example framework.
...
- Port `sq encrypt`'s examples to the example framework and improve
them.
- See #196 .
2024-06-20 16:09:25 +02:00
Justus Winter
e78bcf248f
Port sq autocrypt's examples to the example framework.
...
- Port `sq autocrypt`'s examples to the example framework.
- See #196 .
2024-06-20 15:48:43 +02:00
Justus Winter
815fd5df3b
tests: Port the autocrypt test to the common test framework.
2024-06-20 13:57:44 +02:00
Neal H. Walfield
8752cc462f
Release v0.37.0.
2024-06-14 20:53:27 +02:00
Neal H. Walfield
a57c8ad8c7
Update deny.toml.
...
- Sync `deny.toml` with the version in `common-ci`.
2024-06-14 20:52:17 +02:00
Neal H. Walfield
9667c45089
Update Cargo.lock.
2024-06-14 20:49:59 +02:00
Neal H. Walfield
9ce23340f7
Upgrade sequoia-cert-store and sequoia-wot.
...
- Upgrade `sequoia-cert-store` to 0.6.0 and `sequoia-wot` to 0.12.0.
2024-06-14 19:38:58 +02:00
Neal H. Walfield
7431a00efc
Handle result.
2024-06-14 18:30:16 +02:00
Neal H. Walfield
87eb10afff
Don't overwrite after_help_long, append to it.
...
- For subcommands, we append the message "See 'sq --help' for a
description of the global options" to the `--help` output by setting
the command's `after_help_long` attribute.
- This overwrites any existing string. In particular, we currently
use this for showing examples.
- Append the message to the existing message, if any.
2024-06-14 18:12:43 +02:00
Neal H. Walfield
ae392296f5
Add a top-level --password-file argument to seed the password cache.
...
- `sq key password`, and `sq sign --symmetric` have local arguments
to seed the password cache.
- Many commands could benefit from similar functionality.
- Add a new top-level argument, `--password-file`, to seed the
password cache.
2024-06-13 11:39:09 +02:00
Neal H. Walfield
2ed7435b63
Rename sq key password's --clear argument to --clear-password.
...
- This makes the argument's intent clearer and more closely mirrors
the other arguments, like `--new-password-file`.
2024-06-13 10:56:10 +02:00
Neal H. Walfield
02cd47c6e3
Improve sq key's --help.
2024-06-13 10:48:12 +02:00
Neal H. Walfield
61e8b8b5ff
Improve sq key userid strip's --help.
2024-06-13 10:47:02 +02:00
Neal H. Walfield
21d3fdc554
Improve sq key subkey revoke's --help.
2024-06-13 10:47:02 +02:00
Neal H. Walfield
378dec8e10
Add examples for sq key subkey revoke.
2024-06-13 10:47:02 +02:00
Neal H. Walfield
1cb06754c0
Improve sq key subkey expire's --help.
2024-06-13 10:47:01 +02:00
Neal H. Walfield
6b84d2db79
Improve examples for sq key subkey expire.
2024-06-13 10:47:01 +02:00
Neal H. Walfield
d65cb0e078
Improve sq key subkey add's --help.
2024-06-13 10:47:01 +02:00
Neal H. Walfield
786f5ec0a4
Add examples for sq key subkey add.
2024-06-13 10:47:01 +02:00