Skip to content

Handle MFA session connect/disconnect in the session manager #1882

@wojcik91

Description

@wojcik91
  • create session with state 'new' once MFA process is completed
  • update session to connected once stats are received
  • disconnect inactive MFA sessions once they become inactive
  • remove new sessions if no stats are received
  • emit dedicated MFA client connected/disconnected events in the session manager
  • remove existing periodic disconnect task
  • move preshared_key from Device to Session

Results:

  • run_periodic_peer_disconnect loop is removed
  • clients can connect to the dev instance with MFA
  • once disconnected the session is marked as disconnected and peer is removed from the gateway
  • MFA success/failure events can be seen in the audit log
  • connect/disconnect events can be seen in the audit log
  • there is no duplicate VPN client connected/disconnected event in the audit log

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Ready to release

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions