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

fix: do not print private key in log #12

Merged
merged 5 commits into from
Jun 20, 2024
Merged

fix: do not print private key in log #12

merged 5 commits into from
Jun 20, 2024

Conversation

irrun
Copy link
Collaborator

@irrun irrun commented Jun 20, 2024

Description

add a description of your changes here...

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

PayAccountAddress string
SentryAccountMode account.Mode
// SentryPrivateKey private key of sentry wallet
SentryPrivateKey string
Copy link
Collaborator

@unclezoro unclezoro Jun 20, 2024

Choose a reason for hiding this comment

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

Please dont do such modification, it is a breaking change to external validators.

If they upgrade to the latest release, then they have to change the configures, if they dont, there is no error log to info them at all.

cmd/main.go Outdated
@@ -37,7 +37,8 @@ func main() {

openPrometheusAndPprof(cfg.Debug.ListenAddr)

log.Infow("bsc mev-sentry start", "configPath", *configPath, "config", cfg)
hidedCfg, _ := cfg.HidePrivateKey()
log.Infow("bsc mev-sentry start", "configPath", *configPath, "config", hidedCfg)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont think it is necessary to print the whole setting in the log. ( Do not see similar logic in other repo like BSC, opBNB)

@irrun irrun changed the title fix: hide private key fix: do not print private key in log Jun 20, 2024
@unclezoro unclezoro merged commit 4dd332a into main Jun 20, 2024
4 checks passed
irrun added a commit that referenced this pull request Jun 20, 2024
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