-
Notifications
You must be signed in to change notification settings - Fork 208
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
WireGuard support #1209
WireGuard support #1209
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: b-m-f The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3af94d1
to
9ab80a6
Compare
libnetwork/types/network.go
Outdated
// Path to WireGuard configuration. | ||
// Will only be used when the network driver is WireGuard | ||
WireGuardConfigPath string `json:"wireguard_config_path"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is IMO not sustainable, we should not add driver specific options here. This is exposed via podman API.
I think we should add a generic options field as map[string]string where we could in future add more driver specific fields Without having to update the struct every single time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to what we're doing in containers.conf for runtimes?
https://github.com/containers/common/blob/main/pkg/config/config.go#L358-L359
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this with map[string]string
. Multiple values could still be separated by a comma and parsed before they are used
e25cc42
to
5213206
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash your commits into one and make sure to sign it, see: https://github.com/containers/common/blob/main/CONTRIBUTING.md#sign-your-prs
92b219a
to
c8a8181
Compare
All done. |
@b-m-f How is it going? Making any progress? |
Hi @rhatdan, the bulk of the work is done. I think I should be able to click the 2 tests and documentation are still missing and containers/netavark#472 has a lot of changes, so I would do the documentation once things are about to be merged :) |
- adds new type to PerNetwork Options. This way networks can have options passed into them through the cli easily in the future Signed-off-by: b-m-f <[email protected]>
c8a8181
to
fce343d
Compare
This PR is now ready for review. This feature is spread over 3 PRs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a small question why is this being implemented as Wiregaurd driver
would it make more more sense if it is just VPNDriver
and VPNDriver
implements Wiregaurd
and that is configurable ? In future the design can be extended for OpenVPN
.
Also a comment here: containers/netavark#472 (review) |
/hold |
@b-m-f Are you still working on this? |
Implemented with netavarks plugin feature and https://github.com/b-m-f/netavark-wireguard-plugin |
Draft PR to get containers/netavark#450 integrated into Podman