Skip to content
Discussion options

You must be logged in to vote

This is a little bit complicated to explain.

You are correct that the router/firewall within wag doesnt watch the devices session etcd key. However that isnt actually the way that a device is logged out/deauthorized.

That is done by setting the devices Authorised time field to the zero value of time.Time{}.
Which then causes the state machine to deauthorise the device if it was authorized:

current.Authorised.IsZero() { // If we've explicitly deauthorised a device

The MarkDeviceSessionEnded function deletes an etcd key so that the event based nature of etcd will flow that down to the frontend. The key that it manages…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@krage3x
Comment options

Answer selected by krage3x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants