-
Notifications
You must be signed in to change notification settings - Fork 105
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
Add pre-shared key option to genconfig #35
base: master
Are you sure you want to change the base?
Conversation
This change does not add the pre-shared keys to the database but from a security perspective this should not be done anyway. If private keys exist the configuration is not overwritten so re-running `genconfig` does not overwrite existing configuration. TODO: add an option to generate new configuration (keys should be regularly rotated) --- * pre-shared keys are recommended to help towards quantum resistance - https://www.wireguard.com/known-limitations/#post-quantum-secrecy * this commit is based on: - k4yt3x#10 (with the missing json import added)
add pre-shared key generation
* updates version number
* adds --psk / -p options to `wg-meshconf genconfig` to make the new functionality optional & disabled by default to not breaks existing user configuration. * the new pre-shared key functionality does not store the generated keys as storing them in a spreadsheet alongside the private keys defeats the purpose. When using the new --psk option the keys are re-generated (as keys should be rotated periodically)
make new pre-shared key functionality optional
* fixes from the python 'black' formatting module
run black formatting module against the codebase
* as per the contributing guidelines
alphabetical imports
* upstream changes from: - master...k4yt3x:wg-meshconf:master
merge upstream
It seems a problem if configs already deployed to remote peers with old PresharedKeys. |
Revert "merge upstream"
Hi @ww7 , more recently I've started using & contributing documentation to netbird There is an option for post-quantum cryptography with pre-shared keys rotated every 2 minutes with rosenpass.eu Also useful is mutual TLS to remove the need for a VPN. I use mTLS with Knot DNS (it works perfectly) |
This PR is based on an old previous PR & adds a
--psk
option togenconfig
for pre-shared keys:fixes missing
json
importincludes python
black
code formattingbumps the
wg-meshconf
version to2.5.2
lower cased some help message to be uniform with the default
--help
option fromargparse
updates
README
with:wg-meshconf
as an isolated app withpipx
--psk
functionality (disabled by default to not interfere with existing user configuration)The pre-shared keys are not stored in the
database
as they should be being rotated periodically ( they are re-generated every timegenconfig
is run with--psk
).From a security perspective storing the pre-shared keys along side the private keys defeats their purpose.