Keycloak + nginx reverse proxy #63

Merged
telackey merged 10 commits from telackey/keycloak into main 2022-12-14 18:59:40 +00:00
Member

An ngnix reverse proxy in front of geth, ipld-eth-server, and lighthouse with authentication provided by keycloak.

geth

curl --location --request POST 'localhost:55557/eth/WANPca4KCRidSwKYN8a0zCyxlFHLtRXc1MHrYpumWzv9C57J5I' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_blockNumber",
    "params": []
}'

ipld-eth-server

curl --location --request POST 'localhost:55557/ipld/eth/WANPca4KCRidSwKYN8a0zCyxlFHLtRXc1MHrYpumWzv9C57J5I' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "eth_blockNumber",
    "params": []
}'

Lighthouse

curl --location --request GET 'http://localhost:55557/beacon/eth/v2/beacon/blocks/head' \
--header 'x-api-key: WANPca4KCRidSwKYN8a0zCyxlFHLtRXc1MHrYpumWzv9C57J5I'
An ngnix reverse proxy in front of geth, ipld-eth-server, and lighthouse with authentication provided by keycloak. geth ``` curl --location --request POST 'localhost:55557/eth/WANPca4KCRidSwKYN8a0zCyxlFHLtRXc1MHrYpumWzv9C57J5I' \ --header 'Content-Type: application/json' \ --data-raw '{ "jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": [] }' ``` ipld-eth-server ``` curl --location --request POST 'localhost:55557/ipld/eth/WANPca4KCRidSwKYN8a0zCyxlFHLtRXc1MHrYpumWzv9C57J5I' \ --header 'Content-Type: application/json' \ --data-raw '{ "jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": [] }' ``` Lighthouse ``` curl --location --request GET 'http://localhost:55557/beacon/eth/v2/beacon/blocks/head' \ --header 'x-api-key: WANPca4KCRidSwKYN8a0zCyxlFHLtRXc1MHrYpumWzv9C57J5I' ```
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/stack-orchestrator#63
No description provided.