mittwald / kubernetes-secret-generator

Kubernetes controller for automatically generating and updating secrets
Apache License 2.0
329 stars 56 forks source link

Add support for wireguard keys #67

Closed telmich closed 2 years ago

telmich commented 2 years ago

Is your feature request related to a problem? Please describe.

If one wants to run Wireguard VPN servers, they need keys generated by wg genkey.

Describe the solution you'd like

A new annotation to support wireguard keys

Describe alternatives you've considered

Using a normal password and feeding it as a seed to wg genkey, however wg genkey does not support any parameters.

Additional context

This is very similar to ssh keys as the application is also pub/private key. For the format/verification see my last message on https://lists.zx2c4.com/pipermail/wireguard/2020-December/006221.html

hensur commented 2 years ago

I guess one could just use https://github.com/WireGuard/wgctrl-go/blob/bd2cb7843e1b98193f01eb288793e741a814a269/wgtypes/types.go#L89 to generate a public and private key, and optionally a pre-shared key as well.

mittwald-machine commented 2 years ago

There has not been any activity to this issue in the last 30 days. It will automatically be closed after 7 more days. Remove the stale label to prevent this.