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

Support basic auth in beacon.Client #10467

Closed
kasey opened this issue Mar 31, 2022 · 0 comments · Fixed by #10632
Closed

Support basic auth in beacon.Client #10467

kasey opened this issue Mar 31, 2022 · 0 comments · Fixed by #10632
Assignees
Labels
Bug Something isn't working

Comments

@kasey
Copy link
Contributor

kasey commented Mar 31, 2022

🐞 Bug Report

Description

beacon.Client hostname handling extracts the hostname and port from the provided hostname argument, but it does not extract the username and password from basicauth, so requests to a beacon node endpoint using basic auth will fail.

Has this worked before in a previous version?

no

🔬 Minimal Reproduction

go run github.com/prysmaticlabs/prysm/cmd/prysmctl checkpoint latest --beacon-node-host='https://$USERNAME:$PASSWORD@eth2-beacon-mainnet.infura.io'

🔥 Error

INFO[0000] requesting http://eth2-beacon-mainnet.infura.io/eth/v1/beacon/weak_subjectivity
INFO[0000] falling back to generic checkpoint derivation, weak_subjectivity API not supported by server
INFO[0000] requesting http://eth2-beacon-mainnet.infura.io/eth/v1/node/version
FATA[0000] unable to proceed with fallback method without confirming node version: error requesting node version: code=401, url=https://eth2-beacon-mainnet.infura.io:443/eth/v1/node/version, body=response body:
project id required

🌍 Your Environment

Operating System:
n/a

What version of Prysm are you running? (Which release)

develop branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant