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

User can manage his peers on his own #82

Merged
merged 3 commits into from
May 26, 2022
Merged

Conversation

alexander-beck
Copy link
Contributor

In your use-case we want to allow users to manage their peers on their own. They should not have the admin roles. There are two operations the users can perform:

  • Create new peers with their own public key
  • Disable orphan public keys

To enable these operations I introducted a new config flag: UserManagePeers.

If you are not interested in this feature, please close the pull request.

Best regards,
Alex

@h44z
Copy link
Owner

h44z commented Dec 16, 2021

Looks like a nice feature, I will add this to v2. Keeping this PR open for now.

@alexander-beck alexander-beck force-pushed the user_manage_peers branch 5 times, most recently from a492127 to 1d04839 Compare February 2, 2022 08:21
@h44z h44z merged commit 2f19488 into h44z:master May 26, 2022
@l4b4r4b4b4
Copy link

Hmmm I just tried to push my wg-portal to the latest release.

docker-compose down && docker-compose pull && docker-compose up -d

Logs state the following:

Attaching to wg-portal
wg-portal    | 2022-05-31T13:03:16.186715529Z INFO[2022-05-31 13:03:16] starting WireGuard Portal Server [v1.0.15-e4c641f]... 

But I can't see the feature for users to manage their peers on their own. Am I missing something or doing something wrong?

@h44z
Copy link
Owner

h44z commented May 31, 2022

Config flag enabled?

UserManagePeers bool: yaml:"userManagePeers" envconfig:"USER_MANAGE_PEERS"

@l4b4r4b4b4
Copy link

l4b4r4b4b4 commented May 31, 2022

nope. thx will try that 👍

Update
Works :)

arcadie-cracan pushed a commit to arcadie-cracan/wg-portal that referenced this pull request Jul 19, 2023
Co-authored-by: GitHubActionRunner <knm@knm.io>
arcadie-cracan pushed a commit to arcadie-cracan/wg-portal that referenced this pull request Jul 19, 2023
Co-authored-by: GitHubActionRunner <knm@knm.io>
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.

4 participants