Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forwarding Service in command node #3207

Closed
mrinalwadhwa opened this issue Aug 12, 2022 · 1 comment
Closed

Forwarding Service in command node #3207

mrinalwadhwa opened this issue Aug 12, 2022 · 1 comment

Comments

@mrinalwadhwa
Copy link
Member

Currently

This works:

> ockam node create blue
> ockam forwarder create --node blue ROUTE_TO_ELIXIR_NODE

but it route to an elixir node running the our elixir forwarding service.

There is a Rust implementation of the forwarding service here
https://github.com/build-trust/ockam/blob/develop/implementations/rust/ockam/ockam/src/forwarder.rs

The client code needed to talk to either services in RemoteForwarder.

Here's an example of using it.
https://github.com/build-trust/ockam/tree/develop/documentation/use-cases/end-to-end-encryption-with-rust#rust-example

Desired

We would like to make this example work locally with ockam command

Along with the rename in #3193

The commands that would work after this is implemented would look like this:

> ockam node create alice
> ockam node create middle
> ockam node create bob

> ockam forwarder create --at /node/middle --for /node/bob
forwarding_address

# this would get a reply from bob
> ockam message send "hello" --from alice --to /node/middle/service/forwarding_address

This would require middle node to be running the forwarding service in its default services which are started here https://github.com/build-trust/ockam/blob/develop/implementations/rust/ockam/ockam_api/src/nodes/service.rs#L187

@mrinalwadhwa
Copy link
Member Author

Closed in #3224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant