-
Notifications
You must be signed in to change notification settings - Fork 746
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
Remove VC response signing and fix HTTP error handling #5529
Conversation
remove expect move convert_rejection to utils remove signer from vc api
I've reverted some of my deletions and refactored a few things Removing VC response signingI've removed VC response signing which makes VC response error handling much simpler. Everything is now wrapped in a VC Auth headerI've reverted the changes that removed VC auth header logic.
In lighthouse/validator_client/src/http_api/api_secret.rs Lines 45 to 47 in afccdf8
This little snippet already randomly generates an auth token. I've removed the following logic
I've also ensured that we're still backwards compatible, by loading the api token from disk if it already exists |
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.
Looking good! I think we can get this in for v5.2.0 pretty soon
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.
Looks great, let's do it!
Marking as Let's merge |
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at bf2f0b0 |
* and_then to then remove expect move convert_rejection to utils remove signer from vc api * remove key * remove auth header * revert * Merge branch 'unstable' of https://github.com/sigp/lighthouse into vc-api-fix * merge unstable * revert * Merge branch 'unstable' of https://github.com/sigp/lighthouse into vc-api-fix * Merge branch 'unstable' of https://github.com/sigp/lighthouse into vc-api-fix * refactor blocking json task * linting * revert logging * remove response signing checks in validtor http_api client * remove notion of public key, prefixes, and simplify token generation * fmt * Remove outdated comment on public key
Issue Addressed
#4597 and #5423
Proposed Changes
and_then
tothen
Closes #4597
Closes #5423