Commit Graph

745 Commits

Author SHA1 Message Date
Justus Winter
dfaba32a7a
Release 0.38.0. 2024-09-03 17:23:42 +02:00
Justus Winter
749a8e770c
Require exact --name and --email matches.
- See #309.
2024-09-03 17:23:42 +02:00
Justus Winter
9861598940
Drop dependency itertools. 2024-09-03 17:23:41 +02:00
Justus Winter
1f6e079947
Link to the new user documentation. 2024-09-03 17:16:31 +02:00
Justus Winter
0bf2adac9e
Fix cleartext, message signing with --signer-cert. 2024-09-03 17:16:30 +02:00
Justus Winter
2bffbc9ade
Improve wording. 2024-09-02 14:47:55 +02:00
Justus Winter
5c68890fb2
Update sequoia-keystore. 2024-09-02 14:47:55 +02:00
Justus Winter
578f6cb690
Update sequoia-openpgp. 2024-09-02 14:47:55 +02:00
Justus Winter
2eb38021ae
Add a RSA2k cipher suite.
- Fixes #327.
2024-09-02 14:47:54 +02:00
Justus Winter
5131a72569
Drop serde_json dependency. 2024-09-02 14:47:54 +02:00
Justus Winter
cc707466d3
Remove output format and version command line options.
- See #310.

  - Fixes #289.
2024-09-02 14:47:42 +02:00
Justus Winter
9d72502512
Port remaining tests to the common test framework. 2024-09-02 13:23:28 +02:00
Justus Winter
ba58234c79
Use the hint framework. 2024-09-02 13:23:28 +02:00
Justus Winter
9c4dfdaf11
Avoid eprintln in favor of wprintln. 2024-09-02 13:23:28 +02:00
Justus Winter
9a1dee4563
Avoid println in favor of wprintln. 2024-09-02 13:23:28 +02:00
Justus Winter
887f42193e
If a backend has no devices, hence no keys, it should say no keys.
- Fixes #313.
2024-09-02 13:23:25 +02:00
Justus Winter
bbfdebfd73
Rename sq encrypt --symmetric to --with-password.
- This is an ugly gpgism.  All encrypted messages are symmetrically
    encrypted.  Not all password-encrypted messages encrypt the
    session key symmetrically.  Use language the user understands.

  - Fixes #331.
2024-09-02 11:47:56 +02:00
Justus Winter
13c7d5a83b
Implement sq encrypt --symmetric-password-file.
- Fixes #271.

  - Fixes #58.
2024-09-02 11:43:48 +02:00
Justus Winter
7a052b2d24
Implement decryption of messages using the password cache. 2024-09-02 11:41:04 +02:00
Justus Winter
fc273e89d4
Implement sq key subkey add --new-password-file.
- See #271.
2024-09-02 11:41:04 +02:00
Justus Winter
ca6a68ba8a
Parallelize the subkey password test. 2024-09-02 10:22:21 +02:00
Justus Winter
0cf495bd90
Implement sq key generate --new-password-file.
- See #271.
2024-09-02 10:16:33 +02:00
Justus Winter
230f849307
Deny sq network wkd publish --create on existing WKDs. 2024-08-30 16:54:07 +02:00
Justus Winter
d42f0103de
Make sq network wkd publish --create require --cert.
- We cannot create empty WKD hierarchies due to how sequoia_net::wkd
    works.  For now, require at least one certificate to be inserted at
    creation time.

  - Fixes #323.
2024-08-30 16:48:07 +02:00
Justus Winter
2818d45e6b
Improve sq network wkd publish --help.
- Fixes #325.
2024-08-30 16:34:58 +02:00
Justus Winter
555478622b
Hint at using sq network wkd publish --create.
- Fixes #324.
2024-08-30 16:27:47 +02:00
Justus Winter
dd5ee688fb
tests: Port remaining tests to the test framework. 2024-08-30 14:33:00 +02:00
Justus Winter
945757684c
Fix terminology. 2024-08-29 13:20:03 +02:00
Justus Winter
8f33b87216
Implement sq --batch for non-interactive use.
- Fixes #267.
2024-08-29 13:20:03 +02:00
Justus Winter
8bafdd847f
tests: Remove extra layer of modules. 2024-08-29 13:20:03 +02:00
Justus Winter
626b54c28f
Run cli tests with their own SEQUOIA_HOME. 2024-08-29 13:20:03 +02:00
Justus Winter
63d329a02a
Derive Default for cli:🔑:CipherSuite. 2024-08-29 13:20:03 +02:00
Justus Winter
4a315ea681
Silence warning. 2024-08-29 13:20:03 +02:00
Justus Winter
4702fe8e36
Improve sq key approvals update.
- Add user ID selectors, allow approving or disapproving by
    certifier fingerprint, and approving using the Web of Trust.

  - Fixes #262.
2024-08-28 09:19:38 +02:00
Justus Winter
017c7e6443
Refactor user ID filtering code. 2024-08-28 09:19:38 +02:00
Justus Winter
deffe76746
Implement sq key userid strip --name and --email.
- User ID is an OpenPGP concept, whereas users think in names and
    email addresses.

  - See #30.
2024-08-26 10:14:56 +02:00
Justus Winter
8c96a9e5d0
Implement sq key userid revoke --name and --email.
- User ID is an OpenPGP concept, whereas users think in names and
    email addresses.

  - See #30.
2024-08-26 10:14:56 +02:00
Neal H. Walfield
bf056997a9
Rename integration tests to match the subcommand being tested.
- Rename the files and the tests to reflect the subcommands actually
    being tested.
2024-08-22 11:30:26 +02:00
Neal H. Walfield
cee60e89df
Make sq cert export more consistent with other commands.
- Unlike other commands, `sq cert export`'s `--cert` argument only
    matches on the certificate's key handle (i.e., the primary key's
    key handle).  It also has a `--key` argument to match on the
    primary key's key handle or a subkey's key handle, which are
    the semantics of the `--cert` argument for other commands.

  - Change the semantics of `--cert` to that of `--key`, i.e., change
    `--cert` to also match on subkey key handles.  Remove the `--key`
    argument since it is now redundant.
2024-08-22 11:13:54 +02:00
Justus Winter
180bc310e7
Silently import Alice's key in the examples.
- We want the examples to be relevant and to the point, and reflect
    the work flows that we want our users to have.  Notably, we want
    them to have their secret key material in the key store, not
    laying around on their file system.
2024-08-16 18:32:01 +02:00
Justus Winter
05dc2f85c5
Update description of the assets used in the examples. 2024-08-16 17:49:55 +02:00
Justus Winter
3836dcdbae
Add missing NEWS item for sq key approvals list. 2024-08-16 17:35:07 +02:00
Justus Winter
31af0dd857
Implement sq key approvals list.
- Fixes #94.
2024-08-16 17:03:22 +02:00
Justus Winter
b52c18f558
Make --binary require --output in the trivial cases.
- --binary is a modifier for --output.  If we don't output anything,
    the modifier doesn't make sense, and should raise an error.

  - Unfortunately, many places where we have an output parameter are
    quite complex.  For example, the absence of an output parameter
    means don't output anything when we got a cert from the cert
    store, and means output to stdout when we got the cert from a
    file.

  - This change covers the trivial cases.
2024-08-16 16:46:16 +02:00
Justus Winter
5c91d0cad3
Fix value names. 2024-08-16 14:45:50 +02:00
Justus Winter
0ccd7141ae
Mark certifications from shadow CAs as non-exportable. 2024-08-16 14:45:50 +02:00
Neal H. Walfield
62f514d06b
Fix last commit.
- Correct the logic test.  Specifically, fail if the password is
    empty and `allow_none` is `false` (not `true`).
2024-08-16 12:34:35 +02:00
Neal H. Walfield
9836873d7a
Don't terminate the program if the user doesn't provide a password.
- When encrypting a message with a password, don't terminate the
    program if user doesn't provide a password.  Instead, show an
    error, and prompt the user for a password again.
2024-08-16 10:24:42 +02:00
Neal H. Walfield
9e38b2d9e2
Fix text. 2024-08-16 09:22:42 +02:00
Justus Winter
07d4bf7b96
Port some examples to the examples framework. 2024-08-15 20:14:03 +02:00