aranya-client

Crates.ioaranya-client
lib.rsaranya-client
version0.2.0
sourcesrc
created_at2024-10-16 21:47:27.00261
updated_at2024-11-12 19:34:15.638922
descriptionClient library for using Aranya
homepage
repositoryhttps://github.com/aranya-project/aranya
max_upload_size
id1412385
size56,977
(aranya-project-bot)

documentation

README

Rust Client

Crates.io Docs.rs License

Overview

Aranya's Rust Client is the library that your application will interface with. By integrating the library into an application, IDAM/RBAC and secure data transmission can be easily added without needing to develop complex security architectures, protocols, and cryptography.

The Rust Client library is used as an interface to actions that are performed by the daemon, which interacts directly with the Aranya Core library.

The client provides the following functionality:

  • Add and remove sync peers. The daemon will periodically attempt to sync Aranya state with any peers (as long as it is able to communicate with the peer over the network) in its configured sync peer list.
  • Add and remove users from the team as determined by the implemented policy
  • Assign and revoke user roles as determined by the implemented policy
  • Create, delete, assign and revoke labels used for attribute based controls and segmentation of data communicated between peers within Aranya Fast Channels as determined by the implemented policy.
  • Create and delete Fast Channels channels as determined by the implemented policy
  • Send and receive encrypted data using Aranya Fast Channels. Fast Channels supports bidirectional encrypted data exchange over TCP transport. Note: The functionality noted 'as determined by the implemented policy' are defined in the default policy. As such, these may differ depending on the policy implemented in your application.

Examples

An instance of the daemon must be running before the client can perform actions. Instructions for running an instance of the daemon binary can be found in the daemon's README.

For a full demonstration of the client's capabilities, see the walkthrough. This also includes explanations for the steps performed by the daemon and Aranya based on the client's actions.

Additionally, the test module includes tests that have multiple users joining a team, syncing, and sending encrypted messages using Aranya Fast Channels. Instructions for running these tests are below.

Testing

To run the client tests from this directory, use:

$ cargo test
Commit count: 39

cargo fmt