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

allow skipping relay signature check #504

Merged
merged 1 commit into from
May 4, 2023
Merged

allow skipping relay signature check #504

merged 1 commit into from
May 4, 2023

Conversation

metachris
Copy link
Collaborator

📝 Summary

Allow skipping of relay signature check with environment variable SKIP_RELAY_SIGNATURE_CHECK=1.

This allows automated test deployments without needing to configure a specific relay private key.

See also #499


✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy

Copy link
Collaborator

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@@ -28,4 +30,6 @@ var (
ServerIdleTimeoutMs = cli.GetEnvInt("MEV_BOOST_SERVER_IDLE_TIMEOUT_MS", 0)

ServerMaxHeaderBytes = cli.GetEnvInt("MAX_HEADER_BYTES", 4000) // max header byte size for requests for dos prevention

SkipRelaySignatureCheck = os.Getenv("SKIP_RELAY_SIGNATURE_CHECK") == "1"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe can follow the cli.GetEnvBool convention to allow explicit defaults

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think there is an GetEnvBool method, and this way it's more explicit what's the expected value

@metachris metachris merged commit 9ad7f5a into main May 4, 2023
@metachris metachris deleted the skip-sig-check branch May 4, 2023 20:28
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.

3 participants