Skip to content

v0.20220312.0

Compare
Choose a tag to compare
@jemc jemc released this 12 Mar 21:30
· 29 commits to main since this release
807a670
Add capability-based security to protect all `TCP` actions.

Now we have the following hierarchy:

- `Env.Root`
  - `TCP.Connect.Auth`
    - `TCP.Connect.Ticket`
  - `TCP.Listen.Auth`
    - `TCP.Listen.Ticket`

Additionally we have `TCP.Accept.Ticket` which can only come from
an actual pending connection trying to connect to a TCP listener.

Attenuating through the hierarchy to create a connect ticket looks like this:
```savi
TCP.auth(env.root).connect.to(host, port)
```

Attentuating through the hierarchy to create a listen ticket looks like this:
```savi
TCP.auth(env.root).listen.on(host, port)
```