1427 Commits

Author SHA1 Message Date
Neal H. Walfield
b25bbee713
Make sq key revoke's positional arguments named arguments.
- `sq key revoke`'s reason and message arguments are positional
    arguments.  Change them to be named arguments.

  - See #318.
2024-10-29 10:48:51 +01:00
Neal H. Walfield
67b022f9fa
Dry out --expiration.
- Use clap's flatten functionality to dry out the `--expiration`
    argument.
2024-10-29 09:47:09 +01:00
Neal H. Walfield
b208a8826e
Move the Expiration type to its own module. 2024-10-29 08:57:49 +01:00
Neal H. Walfield
8fc655d5ad
Make sq key expire's expiration argument a named argument.
- `sq key expire`'s expiration argument is a positional argument.
    Change it to a named argument.

  - See #318.
2024-10-29 08:57:47 +01:00
Neal H. Walfield
b0a414a9c3
Make sq key subkey expire's expiration argument a named argument.
- `sq key subkey expire`'s expiration argument is a positional
    argument.  Change it to a named argument.

  - See #318.
2024-10-28 18:58:07 +01:00
Neal H. Walfield
8c3717cddd
Improve error messages. 2024-10-28 11:47:42 +01:00
Neal H. Walfield
4ffea5a850
Improve message. 2024-10-28 11:41:30 +01:00
Neal H. Walfield
1308334de6
Fix how user IDs are displayed. 2024-10-28 11:41:03 +01:00
Neal H. Walfield
e8622a0bdd
When displaying a gossip path, show the path's trust amount.
- As of `sequoia-wot` 0.13.0, gossip paths are authenticated.

  - Show a path's authentication amount when displaying gossip paths.
2024-10-26 12:52:28 +02:00
Neal H. Walfield
20809a2d0e
Fix self signature check.
- Self signatures have a path length of one, not two.

  - But, don't filter them out otherwise the user has no idea whether
    the user ID is self signed or not.
2024-10-26 11:52:04 +02:00
Neal H. Walfield
c32be31f7e
Fix how paths for self signatures are displayed.
- When showing a path for a self signature, the path is dangling,
    consider:

    ```
    $ sq cert list E8F7E841DC8F412AFA1218BD36D48A1A12B8FC07  --gossip --show-paths
     - E8F7E841DC8F412AFA1218BD36D48A1A12B8FC07
       - created 2024-05-21 20:49:20 UTC
       - will expire on 2027-05-22 14:15:41 UTC

       - [   0/120 ] alice

         ◯─┬ E8F7E841DC8F412AFA1218BD36D48A1A12B8FC07
         │ └ "alice"
    ```

  - Instead, clearly indicate that the path is a self signature, like
    so:

    ```
    $ sq cert list E8F7E841DC8F412AFA1218BD36D48A1A12B8FC07  --gossip --show-paths
    - E8F7E841DC8F412AFA1218BD36D48A1A12B8FC07
      - created 2024-05-21 20:49:20 UTC
      - will expire on 2027-05-22 14:15:41 UTC

      - [   0/120 ] alice

        ◯─┬ E8F7E841DC8F412AFA1218BD36D48A1A12B8FC07
        │ └ "alice"
        │
        └── Self-signed user ID.
    ```
2024-10-26 10:44:13 +02:00
Neal H. Walfield
7401c26ff5
Rework gossip.
- Currently, when the user requests gossip, we show all the found
    paths as being untrusted, even though some can be authenticated.
    This is confusing.

  - When getting gossip paths, specify the trust roots.  As of
    `sequoia-wot` 0.13.0, this will also authenticate any returned
    paths.

  - Fixes #338.
2024-10-26 09:30:07 +02:00
Neal H. Walfield
5e5be69dab
Upgrade sequoia-wot. 2024-10-26 09:15:02 +02:00
Neal H. Walfield
4d178c8768
Remove sq pki path's --gossip argument.
- Remove `sq pki path`'s `--gossip` argument, which doesn't actually
    do anything.
2024-10-26 09:15:01 +02:00
Neal H. Walfield
c9bdd6e002
tests: Dry out certificate handling.
- Many commands output a certificate.  Add a helper function to
    parse the output (wherever it may be).
2024-10-25 16:37:25 +02:00
Justus Winter
89763a09ee
Use cert designators for the certifier in sq pki vouch authorize.
- Fixes #207.
2024-10-24 15:49:16 +02:00
Justus Winter
ca24cbfc7e
Use cert designators for the certifier in sq pki vouch certify.
- See #207.
2024-10-24 15:45:52 +02:00
Justus Winter
b7f3c1198c
Remove the pEp store integration.
- Fixes #310.
2024-10-24 15:17:33 +02:00
Justus Winter
9ec524c977
Add --output and --binary arguments to sq key subkey export.
- Fixes #387.
2024-10-24 15:04:44 +02:00
Justus Winter
9617b788ae
Add --output and --binary arguments to sq key export.
- See #387.
2024-10-24 15:04:12 +02:00
Justus Winter
9bd2afe478
Add an --output argument to sq cert export.
- See #387.
2024-10-24 14:47:08 +02:00
Justus Winter
db0d193527
Use cert designators for sq toolbox packet dump.
- See #207.
2024-10-24 14:41:22 +02:00
Justus Winter
ddf6436ebd
Use cert designators for sq toolbox strip-userid.
- See #207.
2024-10-24 14:41:21 +02:00
Justus Winter
cc2effd885
Add sq network keyserver publish --domain. 2024-10-24 14:41:21 +02:00
Justus Winter
f3555c5a14
Use cert designators for sq key approvals update.
- See #207.
2024-10-24 14:41:21 +02:00
Justus Winter
4bcc44b478
Use cert designators for sq key approvals list.
- See #207.
2024-10-24 14:41:21 +02:00
Justus Winter
a30799e093
Use cert designators for sq key subkey bind.
- See #207.
2024-10-24 14:41:21 +02:00
Justus Winter
33053757dc
Use cert designators for sq key subkey revoke.
- See #207.
2024-10-24 14:41:21 +02:00
Justus Winter
cb1bb1f944
Use cert designators for sq key subkey expire.
- See #207.
2024-10-24 14:40:39 +02:00
Justus Winter
7a0a844512
Use cert designators for sq key subkey password.
- See #207.
2024-10-24 14:40:27 +02:00
Justus Winter
625f1e8a17
Use cert designators for sq key subkey delete.
- See #207.
2024-10-24 14:40:27 +02:00
Justus Winter
c1c31d0283
Improve wrapping of examples. 2024-10-24 13:54:58 +02:00
Justus Winter
74e7f4dd33
Use cert designators for sq key subkey add.
- See #207.
2024-10-23 18:04:13 +02:00
Justus Winter
77d9edf039
Use cert designators for sq key userid revoke.
- See #207.
2024-10-23 17:53:32 +02:00
Justus Winter
31ca4e2943
Use cert designators for sq key userid add.
- See #207.
2024-10-23 17:47:12 +02:00
Justus Winter
37e2b65c6f
Use cert designators for sq key revoke.
- See #207.
2024-10-23 17:02:42 +02:00
Justus Winter
41c536de4a
Avoid heap allocation if we don't change the help text. 2024-10-23 16:19:43 +02:00
Justus Winter
5c392b7d0a
Use cert designators for sq key expire.
- See #207.
2024-10-23 16:15:24 +02:00
Justus Winter
eb784ff84c
Use cert designators for sq key password.
- See #207.
2024-10-23 16:08:42 +02:00
Justus Winter
d49949971c
Cleanup. 2024-10-23 16:08:42 +02:00
Justus Winter
f9b3e0a1b4
Move the CLI parser for sq key password to its own module. 2024-10-23 15:43:11 +02:00
Justus Winter
674aa9be8e
Improve wrapping of examples. 2024-10-23 15:35:00 +02:00
Justus Winter
e15852d2f7
Use cert designators for sq cert lint.
- See #207.
2024-10-23 15:28:26 +02:00
Justus Winter
0d0f841f8f
Consolidate import stat printing more. 2024-10-23 14:50:42 +02:00
Justus Winter
6e890c04eb
Fix and add hints for when no certs matched. 2024-10-23 14:44:48 +02:00
Justus Winter
0b4ca59853
Fix updating import statistics.
- Fixes #383.
2024-10-23 14:29:38 +02:00
Justus Winter
fd8466564c
Make sq key delete --file require --output.
- Previously, the certificate was imported.
2024-10-22 18:13:31 +02:00
Justus Winter
14cef16528
Use cert designators for sq key delete.
- See #207.
2024-10-22 18:12:48 +02:00
Justus Winter
5007be4cdf
Move the command line parser for sq key delete to its own module. 2024-10-22 18:01:08 +02:00
Justus Winter
8bd5d4d026
Use cert designators for sq key export.
- See #207.
2024-10-22 18:01:08 +02:00