Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

wg genkey each run if not provided #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hh
Copy link

@hh hh commented May 10, 2023

This reduces the burden of needing to install wireguard tools to use tunnel.

Copy link
Member

@deansheather deansheather left a comment

Choose a reason for hiding this comment

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

Instead of generating a key implicitly on each start we should offer a new subcommand to generate a key. The key generation function should not be uniuri since it doesn't generate random bytes and instead only generates random printable characters which is substantially less secure. Use tunnelsdk.GeneratePrivateKey() instead.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants