-
Notifications
You must be signed in to change notification settings - Fork 37
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
ivpn light: why is private key being sent to the server? #842
Comments
Thanks for the report, the private key is actually not used in our backend since it is not required for the account deployment. The Wireguard private key is only used in the client config settings that is available in the client browser session. |
Thanks. |
looks like private key is still being sent to server, these js cookies are being sent to the server
please reopen this issue or I can open new one. |
If you check the api request implementation, although there is a reference, the private key is never sent to our backend :
Regarding storing the private key in a cookie with an expire time in the client browser, it is required to be able to generate the config files when a payment is completed since it is not stored in our backend to fetch it:
The whole logic can be verified at https://www.ivpn.net/light/ . |
you should use local stoarge for storing this. cookies are implicitly sent to the server with every request to https://ivpn.net, I can see it being sent as Cookie: header in the network tab |
The main issue with using localstorage is that it is persistent until the client deletes it or the app force a deletion ( which may create issues when trying to download the config for a second time) for temporal accounts. I will have a meeting with the team to review the current logic, until then i will keep the issue opened. |
just trying to understand the api
ivpn.net/src/themes/ivpn-v3/assets/js/api/api.js
Lines 414 to 420 in 406e03c
The text was updated successfully, but these errors were encountered: