10 unstable releases (4 breaking)

0.7.0 Oct 25, 2023
0.6.0 Apr 5, 2023
0.5.4 Oct 12, 2022
0.5.2 Mar 21, 2022
0.3.0 Mar 18, 2021

#622 in Development tools

Download history 84/week @ 2024-07-20 117/week @ 2024-07-27 132/week @ 2024-08-03 113/week @ 2024-08-10 74/week @ 2024-08-17 89/week @ 2024-08-24 105/week @ 2024-08-31 152/week @ 2024-09-07 93/week @ 2024-09-14 152/week @ 2024-09-21 170/week @ 2024-09-28 119/week @ 2024-10-05 127/week @ 2024-10-12 120/week @ 2024-10-19 112/week @ 2024-10-26 105/week @ 2024-11-02

477 downloads per month

Apache-2.0

57KB
1K SLoC

Parsec Tool

Crates.io Code documentation

This repository contains a tool to communicate with the Parsec service on the command-line.

Getting started

To compile and list the available commands:

$ cargo build
$ cargo run

Ping the service:

$ cargo run -- ping

Modifying Parsec service endpoint

For demos and to test the Parsec service, you might want to change the Parsec endpoint location. For that, set the PARSEC_SERVICE_ENDPOINT environment variable to correction endpoint.

To set a Unix Domain Socket Listener endpoint at /tmp/parsec.sock:

$ export PARSEC_SERVICE_ENDPOINT=unix:/tmp/parsec.sock

Modifying logging output

You can set the RUST_LOG environment variable to modify the logging outpout. See the documentation for more information.

Data format

Unless specified otherwise below, the data format expected by the commands is the same as describe in the Parsec Book. The --help option of commands might give more information about the expected format.

  • ECDSA signatures are formatted using the ASN.1 representation Ecdsa-Sig-Value described in RFC 3279.
  • Plaintext data is expected/shown as a UTF-8 string (input data of sign, output data of decrypt).
  • Ciphertext data is expected/shown as base 64 (output data of sign, input data of decrypt).
  • Exported public keys are encoded in PEM. By default PKCS#8 format is used for RSA RFC 3279 and ECC RFC 5480 public keys. With --pkcs1 parameter RSA keys exported in PKCS#1 format RFC 2313.

SPIFFE based authenticator

To be able to authenticate with the JWT-SVID authenticator, compile this crate with the spiffe-auth feature.

Demo

asciicast

tests/parsec-cli-tests.sh can be used for end to end Parsec tests using parsec-tool.

License

The software is provided under Apache-2.0. Contributions to this project are accepted under the same license.

Contributing

Please check the Contribution Guidelines to know more about the contribution process.

Copyright 2020 Contributors to the Parsec project.

Dependencies

~24–39MB
~738K SLoC