Skip to content
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 code for large amount of users creation and few recommendations #1

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

ifuensan
Copy link

Changes

  1. Extend code for User/Password creation: Implemented functionality to create a large number of users and their corresponding passwords.

  2. Recommendations in Install and Run sections:

  • Python Virtual Environment: Recommended setting up a Python Virtual Environment for the project installation to manage dependencies effectively.
  • Using nohup or tmux: Suggested using nohup or tmux to run long processes without interruption.

Copy link
Owner

@pinheadmz pinheadmz left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this! I have to apologize, I had a bulk-user function implemented already (I needed it for BTCFOSS in January) but I didn't push it to the repository. That's now on master branch in a2e5e98

I started reviewing this PR and left a some nits in the English before I realized we'd duplicated work. Take a look at the --n option I wrote and let me know if this satisfies your use case as well

README.md Outdated Show resolved Hide resolved
- Optionally add `-signet`, etc for different network
- Start proxy server: `python src/server.py main`
- Optionally replace `main` with `signet`, etc.
- Use `nohup` or `tmux` to ensure that the server process is not killed when exiting the terminal or session.
Copy link
Owner

Choose a reason for hiding this comment

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

should go before "start proxy server" and indicate its optional.

README.md Outdated Show resolved Hide resolved
@@ -34,6 +36,15 @@ Password for newuser1: lYDk7mbTiN60
~/rpc-auth-proxy$ python src/users.py newuser2 -p hunter2
Password for newuser2: hunter2
```
### Large amount of Users ###
Another utility that you can use for adding large amount of users it's `src/bulk_users.py`. Hashed passwords are saved by
default in a JSON file at `~/.rpc-auth-proxy-passwords.json`, but another file is saved too with the pair of username and clear password.
Copy link
Owner

Choose a reason for hiding this comment

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

whats the other files name and path?

README.md Outdated Show resolved Hide resolved
ifuensan and others added 3 commits August 7, 2024 23:30
Co-authored-by: Matthew Zipkin <[email protected]>
Co-authored-by: Matthew Zipkin <[email protected]>
Co-authored-by: Matthew Zipkin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants