Files
dependabot[bot] 87d330d211 build(deps): bump h2 from 0.3.13 to 0.3.17 in /ch_11
Bumps [h2](https://github.com/hyperium/h2) from 0.3.13 to 0.3.17.
- [Release notes](https://github.com/hyperium/h2/releases)
- [Changelog](https://github.com/hyperium/h2/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/h2/compare/v0.3.13...v0.3.17)

---
updated-dependencies:
- dependency-name: h2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-13 16:56:29 +00:00
..
2022-06-21 08:51:39 +00:00
2022-06-21 08:51:39 +00:00
2022-06-21 08:51:39 +00:00
2021-05-17 09:05:16 +00:00
2021-05-17 09:05:16 +00:00
2021-05-18 23:31:30 +00:00
2022-06-09 09:06:00 +00:00
2021-05-19 13:25:58 +00:00

Setup

$ docker run --name bhr_ch11_postgres -d -e POSTGRES_PASSWORD=black_hat_rust -e POSTGRES_USER=ch11 -p 5432:5432 postgres:13
$ cp env.example .env

In shell 1

$ cargo run -p server

In shell 2

$ cargo run -p agent

In shell 3

$ cargo run -p client -- agents
+--------------------------------------+--------------------------------+--------------------------------+----------------------------------------------+----------------------------------------------+
| Agent ID                             | Created At                     | Last Seen At                   | Identity Public Key                          | Public Prekey                                |
+--------------------------------------+--------------------------------+--------------------------------+----------------------------------------------+----------------------------------------------+
| eeeb0586-d55c-4086-b9cd-55aae794bab2 | 2021-05-19 10:37:22.135356 UTC | 2021-05-19 13:25:10.890342 UTC | ttL7sPbyuyEmZ12E7JrD47BcMe2WLnnHP0DJufmVIAY= | G7l4VXnB1/aXKrAa9soyDkbUKr1xa+ldX+EjaINj5wY= |
+--------------------------------------+--------------------------------+--------------------------------+----------------------------------------------+----------------------------------------------+
$ cargo run -p client -- exec -a eeeb0586-d55c-4086-b9cd-55aae794bab2 ls
Cargo.lock
Cargo.toml
Dockerfile
Makefile
README.md
agent
client
common
env.example
server
target

Warning

Don't commit your private keys as in this example ;)