prysm-pulse/beacon-chain/blockchain
Shay Zluf d77c298ec6
Support authorised access to web 3 providers (#8075)
* jwt access token impl

* use secret or jwt

* rename

* separate method for splitting auth

* usage update

* Update beacon-chain/flags/base.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Update beacon-chain/node/node.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* make things work

* removed unused code

* better, more flexible authorization

* move types and function to proper packages

* fix checking if endpoint is not set

* fix existing tests

* rename Endpoint field to Url

* Tests for HttpEndpoint

* better bearer auth

* tests for endpoint utils

* fix endpoint registration

* fix test build

* move endpoint parsing to powchain

* Revert "fix existing tests"

This reverts commit ceab192e6a78c106cf4e16a1bdf5399752a39890.

* fix field name in tests

* gzl

* add httputils dependency

* remove httputils dependency

* fix compilation issue in blockchain service test

* correct endpoint fallback function and tests

* gzl

* remove pointer from currHttpEndpoint

* allow whitespace in auth string

* endpoint equality

* correct one auth data Equals test case

* remove pointer receiver

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-04-15 11:02:02 +00:00
..
testing Implement ListForkChoiceHeads in the debug API (#8675) 2021-04-14 17:01:24 +00:00
blockchain_test.go Update TestMain(): do not call os.Exit() explicitly (#8046) 2020-12-04 16:10:07 +00:00
BUILD.bazel Embedded mainnet genesis state + load genesis.ssz from file (#8614) 2021-03-18 21:00:00 +00:00
chain_info_norace_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
chain_info_test.go Move chainheads to blockchain pkg (#8700) 2021-04-03 11:25:25 +00:00
chain_info.go Move chainheads to blockchain pkg (#8700) 2021-04-03 11:25:25 +00:00
checktags_test.go Fix data races in tests accessing beacon config concurrently (#8190) 2021-01-05 04:51:25 +00:00
head_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
head.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
info_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
info.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
init_sync_process_block.go Move skip-regen-historical-states to deprecated (#6512) 2020-07-08 00:15:45 +00:00
init_test.go Embedded mainnet genesis state + load genesis.ssz from file (#8614) 2021-03-18 21:00:00 +00:00
log_test.go Hide beacon operation field in log if it's 0 (#8330) 2021-02-18 19:08:27 +00:00
log.go Move timings of synced block to debug level (#8491) 2021-02-22 16:32:23 +00:00
metrics_test.go Harden beacon state interface for Altair (#8673) 2021-03-26 18:15:03 +00:00
metrics.go Use beacon state interfaces across (#8552) 2021-03-08 14:37:33 -08:00
process_attestation_helpers.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
process_attestation_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
process_attestation.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
process_block_helpers.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
process_block_test.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
process_block.go Update specs comments (#8759) 2021-04-13 22:26:39 +00:00
receive_attestation_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
receive_attestation.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
receive_block_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
receive_block.go Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
service_norace_test.go Embed Config Pattern For Blockchain Service and Update Dependency Names Accordingly (#8618) 2021-03-17 13:36:56 -05:00
service_test.go Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
service.go Weak subjectivity minor refactoring (#8715) 2021-04-06 14:32:49 +00:00
weak_subjectivity_checks_test.go Weak subjectivity minor refactoring (#8715) 2021-04-06 14:32:49 +00:00
weak_subjectivity_checks.go Weak subjectivity minor refactoring (#8715) 2021-04-06 14:32:49 +00:00