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

Enable JSON-HTTP Gateway by Default on Port 3000 #6090

Merged
merged 7 commits into from Jun 3, 2020

Conversation

rauljordan
Copy link
Contributor

@rauljordan rauljordan commented Jun 2, 2020

What type of PR is this?

Feature

What does this PR do? Why is it needed?

It is annoying that users can't access their beacon nodes' API through simple curl http requests. This PR enables the grpc gateway by default for beacon nodes on port 3000, giving one less point of friction to the Prysm user experience.

This PR adds the ability to disable the gateway with --disable-grpc-gateway

Which issues(s) does this PR fix?

Part of #6076

@rauljordan rauljordan added Enhancement New feature or request Ready For Review A pull request ready for code review API Api related tasks labels Jun 2, 2020
@rauljordan rauljordan requested a review from a team as a code owner June 2, 2020 19:33
@rauljordan rauljordan self-assigned this Jun 2, 2020
Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

What if users don't want to have JSON-HTTP Gateway enabled (eg. dos prevention) Should we be providing an option to disable it?

@rauljordan
Copy link
Contributor Author

Added a --disable-grpc-gateway flag, PTAL @terencechain

@prylabs-bulldozer prylabs-bulldozer bot merged commit 80539d9 into master Jun 3, 2020
@delete-merged-branch delete-merged-branch bot deleted the default-gateway branch June 3, 2020 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks Enhancement New feature or request Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants