prysm-pulse/shared
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
..
abool Clean up unused functions (#8403) 2021-02-05 18:39:15 +00:00
aggregation Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
asyncutil Improves asyncutils/Debounce (#7189) 2020-09-08 14:49:28 +00:00
attestationutil Update specs comments (#8750) 2021-04-13 05:35:22 +00:00
backuputil Add Backup Webhooks to All Prysm Services With DBs (#8025) 2020-12-03 22:28:57 +00:00
benchutil Move state pkg to stateV0 pkg (#8620) 2021-03-17 19:49:49 +00:00
blockutil Remove custom block body root and block root methods (#8069) 2020-12-09 12:11:42 -06:00
bls Combine function parameters (#8758) 2021-04-13 19:56:28 +00:00
bytesutil Update spec comments (#8727) 2021-04-08 19:33:54 +00:00
cmd Increase default peer limit from 30 to 45 (#8530) 2021-03-01 18:35:27 +00:00
debug Fixes incorrect usages of gazelle:ignore (#8562) 2021-03-08 18:09:39 +00:00
depositutil Update specs comments (#8750) 2021-04-13 05:35:22 +00:00
event Shadowed Predeclared Indentifier analyzer (#7215) 2020-09-14 12:49:15 +02:00
featureconfig Make BLST The Permanent Default (#8710) 2021-04-07 10:18:19 -05:00
fileutil copy better (#8708) 2021-04-05 08:48:19 -05:00
grpcutils Introduce helper function for adding context metadata from gRPC headers (#8354) 2021-01-28 08:58:32 -06:00
hashutil Remove redundant MerkleRoot function (#8733) 2021-04-10 03:13:07 +00:00
htrutils Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
httputils Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
interop ProcessPreGenesisDeposits: Remove context.TODO() usage (#8705) 2021-04-05 15:07:56 +00:00
iputils Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
journald Add space at the start of comments (#8202) 2021-01-05 13:09:41 +00:00
keystore Remove unused code (#8517) 2021-02-25 18:13:13 +00:00
logutil Mask credentials for logging (#8429) 2021-02-15 21:54:19 +00:00
mathutil Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
maxprocs automaxprocs: Log error to DEBUG instead of panic (#6592) 2020-07-14 01:51:07 +00:00
mclockutil libfuzz based tests (#5095) 2020-05-05 07:22:26 +00:00
messagehandler Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
mock Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
mputil A bit of cleanup based on goconst tool (#8529) 2021-03-02 11:39:54 +00:00
p2putils Fixes import aliases (#8497) 2021-02-22 23:20:57 +00:00
pagination Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
params Fix overriding network config in tests (#8756) 2021-04-14 07:39:20 +00:00
petnames Accounts V2: Derived Keymanager Sign (#6667) 2020-07-21 21:15:47 +00:00
prereq Extract node configuration to separate file (#8744) 2021-04-13 07:04:34 +00:00
progressutil Add Back New Attester Protection DB Logic (#8242) 2021-01-11 23:59:17 +00:00
prometheus Reformat healthz message by adding a comma (#8472) 2021-02-18 16:31:16 +00:00
promptutil [Feature] - Slashing Interchange Support (#8024) 2021-01-22 17:12:22 -06:00
rand Remove Recursive Read Lock in Shared/Rand (#7776) 2020-11-11 05:59:44 +00:00
runutil Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
slashutil Fixes import aliases (#8497) 2021-02-22 23:20:57 +00:00
sliceutil Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
slotutil Fixes import aliases (#8497) 2021-02-22 23:20:57 +00:00
sszutil Update rules_go and fix proto conflicts (#8596) 2021-03-11 18:03:19 -06:00
testutil ProcessPreGenesisDeposits: Remove context.TODO() usage (#8705) 2021-04-05 15:07:56 +00:00
timeutils Replace Roughtime With Timeutils Across Prysm (#7301) 2020-09-22 19:49:58 +08:00
tos Compare strings using strings.EqualFold() (#8193) 2021-01-04 16:46:22 +00:00
traceutil libfuzz based tests (#5095) 2020-05-05 07:22:26 +00:00
tracing Rename getter functions to be idiomatic (#8320) 2021-01-25 21:27:30 +00:00
trieutil Update NextPowerOf2() and PrevPowerOf2() funcs (#8751) 2021-04-13 06:09:56 +00:00
version Add prysm version to prometheus (#8527) 2021-03-01 17:50:20 +00:00
BUILD.bazel Apply testutils assertions: final cleanup (#7003) 2020-08-25 15:23:06 +00:00
service_registry_test.go Apply testutils assertions: final cleanup (#7003) 2020-08-25 15:23:06 +00:00
service_registry.go Change log level from panicf to errorf so that all services can be shutdown (#7600) 2020-10-21 23:41:01 +00:00