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 key feature #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

User key feature #11

wants to merge 6 commits into from

Conversation

Bencyril
Copy link
Contributor

@Bencyril Bencyril commented Mar 2, 2021

One of the issue of Wireguard key management system is the fact that if we don't
keep track of which person got what key we can't effectively manage users
on this kind of system

That's why I added a new feature that will let admin use a DB to save the
connection between a user and a key/CIDR

Ben added 6 commits January 13, 2021 17:29
One of the issue of key management system is the fact that if we don't
keep track of which person got what key we can effictively manage user
on this kind of system

That's why I added a new feature that will let admin use a DB to save the
connection between a user and a key
This new PR is here to add a new feature that will allow a match
between peer/CIDR with a username to facilitate the user management

Some cleaning have been done too
@Bencyril Bencyril requested review from m-gendi and vbehar March 2, 2021 16:08

type User struct {
Username string `json:"username"`
Key string `json:"key"`

Choose a reason for hiding this comment

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

maybe you can use golint to avoid this kind of thing ;)

}
case "delete":
if len(os.Args) < 3 {
return errors.New("issue with argument")

Choose a reason for hiding this comment

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

Maybe something more explicit ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants