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

Custom meta data fields for peers #605

Open
trbtm opened this issue Feb 7, 2025 · 3 comments
Open

Custom meta data fields for peers #605

trbtm opened this issue Feb 7, 2025 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@trbtm
Copy link

trbtm commented Feb 7, 2025

Is your feature request related to a problem? Please describe.
I would like to add custom properties to peers, e.g. an email, a location, etc. you name it.

Describe the solution you'd like
I think there are two ways to go about this:

  1. Every peer just gets another multiline text field named e.g. comments, meta etc. and then the user can decide what to do with it.
  2. The user / admin can dynamically define additional fields for all peers e.g. in Settings -> Peer Settings and then input text fields are displayed in the Peer Settings (of an individual peer). The data could be stored in a JSON object to allow for flexibility compared to database fields.

I am willing to work on a MR, but I want to know ahead of time if you would even consider it and which solution you find favorable.

@trbtm trbtm added the enhancement New feature or request label Feb 7, 2025
@donaldzou
Copy link
Owner

Hi! This is a great idea and I was actually thinking the same thing.. My idea was to implement this directly into each configurations datatable. And for each additional fields, we name it with a prefix like wg0.userinfo.email, wg0.userinfo.phonenumber so we don't mix up with other default fields. What do you think?

@trbtm
Copy link
Author

trbtm commented Feb 7, 2025

Sounds good to me. It will take some time until I am done with that MR.

@DaanSelen
Copy link
Collaborator

If I understand correct (for the assignment of the issue) @trbtm is going to submit a PR for this feature?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants