Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status page: display peers IPs only to admins #521

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

0xCA
Copy link
Contributor

@0xCA 0xCA commented Jan 6, 2024

No description provided.

Comment on lines +984 to +987
if isAdmin(c) {
pVm.Endpoint = devices[i].Peers[j].Endpoint.String()
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually don't want to dive into the user privilege topic. As this is a read-only operation, I'd like to keep it simple, and available to any user who can access the status page.

Copy link
Contributor Author

@0xCA 0xCA Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a privacy concern in this case. The example scenario is a manager that should be able to manage configs, but shouldn't be able to see where the clients are connecting from. (it's even possible to track their movements by their IP)
IP is mostly a debug tool, useful for the WG server admin.
So I don't think displaying the IP to everyone with gui access is a right thing.

@ngoduykhanh ngoduykhanh merged commit 7856ce9 into ngoduykhanh:master Jan 10, 2024
1 check passed
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.

None yet

2 participants