Files
vault/command
Christopher Swenson 6e233e567b events: Add websockets and command (#19057)
Also updates the event receieved to include a timestamp.
Websockets support both JSON and protobuf binary formats.

This can be used by either `wscat` or the new
`vault events subscribe`:

e.g.,
```sh
$ wscat -H "X-Vault-Token: $(vault print token)" --connect ws://127.0.0.1:8200/v1/sys/events/subscribe/abc?json=true
{"event":{"id":"5c5c8c83-bf43-7da5-fe88-fc3cac814b2e", "note":"testing"}, "eventType":"abc", "timestamp":"2023-02-07T18:40:50.598408Z"}
...
```

and

```sh
$ vault events subscribe abc
{"event":{"id":"5c5c8c83-bf43-7da5-fe88-fc3cac814b2e", "note":"testing"}, "eventType":"abc", "timestamp":"2023-02-07T18:40:50.598408Z"}
...
```

Co-authored-by: Tom Proctor <tomhjp@users.noreply.github.com>
2023-02-09 13:18:58 -08:00
..
2023-02-01 13:34:53 -06:00
2017-10-24 09:28:06 -04:00
2022-02-18 08:50:05 -08:00
2019-02-14 11:54:47 -08:00
2022-12-07 13:29:51 -05:00
2023-01-23 15:51:22 -05:00
2022-02-15 10:43:49 -08:00
2017-10-24 09:30:47 -04:00
2023-02-01 13:34:53 -06:00
2020-03-17 09:46:44 -04:00
2017-10-24 09:30:48 -04:00
2017-10-24 09:39:34 -04:00
2022-09-22 09:12:41 -04:00
2022-12-21 10:01:57 -05:00
2018-11-06 17:21:24 -08:00
2017-10-24 09:30:48 -04:00
2022-02-18 08:50:05 -08:00
2017-10-24 09:39:34 -04:00
2018-02-12 18:12:16 -05:00
2017-10-24 09:30:47 -04:00
2022-04-19 14:28:08 -04:00
2022-12-07 13:29:51 -05:00