Skip to content

fix(vpn): clean up temp config files on disconnect#87

Open
Sentinel-Bluebuilder wants to merge 1 commit into
sentinel-official:developmentfrom
Sentinel-Bluebuilder:fix/temp-file-cleanup
Open

fix(vpn): clean up temp config files on disconnect#87
Sentinel-Bluebuilder wants to merge 1 commit into
sentinel-official:developmentfrom
Sentinel-Bluebuilder:fix/temp-file-cleanup

Conversation

@Sentinel-Bluebuilder

Copy link
Copy Markdown

Rebased onto current development (replaces #74, auto-closed after retarget from maindevelopment due to base divergence). Single commit, same fix, cleanly rebased onto development HEAD 732bf85.

WireGuard and V2Ray config files were created in system temp directories
but never deleted. WireGuard configs contain the private key in
plaintext — a security risk. V2Ray configs contain node addresses and
UUIDs.

Now both classes track their config file path and clean up on
disconnect. WireGuard configs are overwritten with zeros before
deletion to scrub the private key. File permissions set to 0o600
(owner-only) on creation.

Fixes sentinel-official#40
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.

1 participant