Set up public HTTPS endpoint for RSKj #337

Merged
raucao merged 10 commits from feature/rskj_public_endpoint into master 2021-12-02 17:26:01 +00:00
Owner

Adds an nginx recipe with reverse proxy config and LE/certbot for rsk-testnet.kosmos.org.

refs #325

Adds an nginx recipe with reverse proxy config and LE/certbot for `rsk-testnet.kosmos.org`. refs #325
raucao added 1 commit 2021-08-09 17:04:06 +00:00
raucao added 1 commit 2021-08-09 17:13:17 +00:00
Author
Owner

I added the WIP tag, because even though I think this should work just fine, converging the VM currently fails, claiming that the certbot resource method isn't available:

10.1.1.136   NoMethodError
10.1.1.136   -------------
10.1.1.136   undefined method `nginx_certbot_site' for cookbook: kosmos_rsk

However, the kosmos-nginx recipe is included as usual, and the cookbook is also added as a dependency in metadata.rb. I must have missed something, but at the moment I'm just blind as to what it could be.

I added the WIP tag, because even though I think this should work just fine, converging the VM currently fails, claiming that the certbot resource method isn't available: ```plain 10.1.1.136 NoMethodError 10.1.1.136 ------------- 10.1.1.136 undefined method `nginx_certbot_site' for cookbook: kosmos_rsk ``` However, the `kosmos-nginx` recipe is included as usual, and the cookbook is also added as a dependency in `metadata.rb`. I must have missed something, but at the moment I'm just blind as to what it could be.
raucao requested review from greg 2021-08-14 08:19:35 +00:00
Author
Owner

@greg Any chance you could have a quick look at this sometime soon?

@greg Any chance you could have a quick look at this sometime soon?
raucao added 3 commits 2021-11-28 16:06:09 +00:00
raucao added 1 commit 2021-11-28 16:08:52 +00:00
Author
Owner

I have merged the RSK mainnet PR, and updated this branch for the new rsk-testnet-2 node. So you can now run it as is against that one to reproduce the bug.

I have merged the RSK mainnet PR, and updated this branch for the new `rsk-testnet-2` node. So you can now run it as is against that one to reproduce the bug.
raucao added 1 commit 2021-11-29 19:18:50 +00:00
Author
Owner

Success! Our custom resource fix also works for this PR.

With jq and curl installed, you can get the block height from the testnet node like this e.g.:

res=$(curl -s https://rsk-testnet.kosmos.org -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq -r '.result'); echo $((res))
Success! Our custom resource fix also works for this PR. With `jq` and `curl` installed, you can get the block height from the testnet node like this e.g.: ``` res=$(curl -s https://rsk-testnet.kosmos.org -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq -r '.result'); echo $((res)) ```
raucao added 1 commit 2021-11-29 19:34:05 +00:00
Author
Owner

... now also for mainnet:

res=$(curl -s https://rsk.kosmos.org -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq -r '.result'); echo $((res))

/cc @bumi

... now also for mainnet: ``` res=$(curl -s https://rsk.kosmos.org -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | jq -r '.result'); echo $((res)) ``` /cc @bumi
raucao added 1 commit 2021-11-29 19:55:20 +00:00
raucao changed title from WIP: Set up public HTTPS endpoint for RSKj to Set up public HTTPS endpoint for RSKj 2021-11-29 19:55:29 +00:00
raucao requested review from bumi 2021-11-29 19:55:39 +00:00
raucao added the
kredits-1
label 2021-11-30 18:29:39 +00:00
greg added 1 commit 2021-12-02 17:07:48 +00:00
greg approved these changes 2021-12-02 17:17:54 +00:00
greg left a comment
Owner

The port (4444) could be stored as in an attribute rather than just in the recipe, LGTM apart from that!

The port (4444) could be stored as in an attribute rather than just in the recipe, LGTM apart from that!
raucao merged commit a75237e0fb into master 2021-12-02 17:26:01 +00:00
raucao deleted branch feature/rskj_public_endpoint 2021-12-02 17:26:07 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 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: kosmos/chef#337
No description provided.