-
Notifications
You must be signed in to change notification settings - Fork 3
move proxy router cmd args to env variables #323
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
base: dev
Are you sure you want to change the base?
Changes from all commits
6b59509
0bba614
912b5f1
4c42588
e48ff86
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,18 +51,18 @@ const runProxyRouter = (config) => { | |
| `--contract-address=${config.cloneFactoryAddress}`, | ||
| `--eth-node-address=${config.wsApiUrl}`, | ||
|
|
||
| "--miner-share-timeout=10m", | ||
| // "--miner-vetting-duration=5m", | ||
|
|
||
| "--hashrate-error-threshold=0.05", | ||
| "--hashrate-cycle-duration=5m", | ||
|
|
||
| "--hashrate-share-timeout=120m", | ||
|
|
||
| "--log-level-app=info", | ||
| "--log-level-scheduler=info", | ||
| "--log-level-proxy=info", | ||
| "--log-level-connection=info", | ||
| `--miner-share-timeout=${process.env.MINER_SHARE_TIMEOUT}`, | ||
|
|
||
| `--hashrate-error-threshold=${process.env.HASHRATE_ERROR_THRESHOLD}`, | ||
| `--hashrate-cycle-duration=${process.env.HASHRATE_CYCLE_DURATION}`, | ||
| `--hashrate-share-timeout=${process.env.HASHRATE_SHARE_TIMEOUT}`, | ||
| `--hashrate-validation-start-timeout=${process.env.HASHRATE_VALIDATION_START_TIMEOUT}`, | ||
| `--hashrate-validation-grace-duration=${process.env.HASHRATE_VALIDATION_GRACE_DURATION}`, | ||
|
|
||
| `--log-level-app=${process.env.LOG_LEVEL_APP}`, | ||
| `--log-level-scheduler=${process.env.LOG_LEVEL_SCHEDULER}`, | ||
| `--log-level-proxy=${process.env.LOG_LEVEL_PROXY}`, | ||
| `--log-level-connection=${process.env.LOG_LEVEL_CONNECTION}`, | ||
| `--log-folder-path=${app.getPath("logs")}/`, | ||
|
|
||
| `--wallet-private-key=${config.privateKey}`, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The private key is being passed as a command line argument. This is a security risk because command line arguments can be viewed by any user on the system using commands like 'ps'. It's also possible that the command line arguments could be logged somewhere, exposing the private key. Instead of passing sensitive data like private keys as command line arguments, consider using a more secure method. For example, you could read the private key from a file that has strict permissions, or use environment variables if you ensure they are not logged or exposed in other ways. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The private key is being passed as a command line argument. This is a security risk because command line arguments can be viewed by any user on the system using commands like Instead of passing sensitive data like private keys as command line arguments, consider using a more secure method. For example, you could read the private key from a file with appropriate permissions, or use an environment variable. If you use an environment variable, make sure it's not logged or exposed in other ways. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The private key is being passed as a command line argument. This is a security risk because command line arguments can be viewed by any user on the system using commands like 'ps'. It's also possible that the command line arguments could be logged somewhere, exposing the private key.
Instead of passing sensitive data like private keys as command line arguments, consider using a more secure method. For example, you could read the private key from a file with appropriate permissions, or use environment variables if the environment is secure and isolated.