-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
rpc-secret password isn't retained #125
Comments
I have to look into this. Webui cannot really read the aria2.conf as it lives in the server and is not accessible from the browser for security reasons. -----Original Message----- I put the password into connection settings: |
Understood. In my particular situation I am using a single server that runs both the Webui and aria2. I also opened an issue with aria2: aria2/aria2#329 It just doesn't seem quite right to have something called "rpc-secret" and then have it stored in plain text in every application that uses aria2 (including the aria2 conf). |
Oh nice. I will follow the issue as it comes along -----Original Message----- Understood. In my particular situation I am using a single server that runs both the Webui and aria2. I also opened an issue with aria2: aria2/aria2#329 |
I'm thinking about how normal web server handles password validation: hashed store, hash validation, cookie for session persistence, etc. |
Yeah, giving it a hash rather then plain text password makes more sense. Then webui can just hash the password in place and send it off to aria2 without leaking it. |
Nvm, aria2 isn't normal web server and doesn't come with cookie and such, and the webui can do little to enhance that. @gbcox |
@gbcox Hi, I ran the aria2 in my local machine and met the same issue as you. You mentioned that:
Could u please give me help on how to edit the configuration.js file to add the token and make it work.
when starting aria2 rpc, I have set the rpc-secret=my_token_here |
@alexya try #473 (comment), |
I put the password into connection settings:
enter the secret token. I press save.
Everything works fine... but after a period of time, the password disappears, the connection drops and I have to re-enter and then save it.
I was able to manually edit the configuration.js file which got things working, as far as I can tell however the connection settings dialog doesn't write to the configuration.js file.
Also, did you think of just getting the password from the aria2.conf file?
If there is anymore information you need, let me know. Thanks!
The text was updated successfully, but these errors were encountered: