Skip to content

Finialize moving most important DB models to a common crate#1713

Merged
wojcik91 merged 20 commits intodevfrom
vpn_client_session_manager
Nov 20, 2025
Merged

Finialize moving most important DB models to a common crate#1713
wojcik91 merged 20 commits intodevfrom
vpn_client_session_manager

Conversation

@wojcik91
Copy link
Copy Markdown
Contributor

@wojcik91 wojcik91 commented Nov 18, 2025

This PR is meant to reorganize existing code in preparation for adding the VPN client session manager component, but also other components planned for the next release.

By putting most models into the defguard_common crate it brings us really close to being able to finally split the core crate into separate components for API, gRPC server etc.

The changes mostly come down to moving most important models (User, Device, WireguardNetwork etc) to defguard_common and removing foreign type implementations.

This should force us into a better structure for our code and avoid making the compilation time and inter-component dependencies worse.

@wojcik91 wojcik91 self-assigned this Nov 18, 2025
@wojcik91 wojcik91 force-pushed the vpn_client_session_manager branch from 3f4aae0 to 8b92676 Compare November 19, 2025 15:46
@wojcik91 wojcik91 marked this pull request as ready for review November 20, 2025 08:32
@wojcik91 wojcik91 changed the title VPN client session manager pt1 Finialize moving most important DB models to a common crate Nov 20, 2025
@wojcik91 wojcik91 merged commit 8c025f2 into dev Nov 20, 2025
3 checks passed
@wojcik91 wojcik91 deleted the vpn_client_session_manager branch November 20, 2025 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants