Denver Lift-Off 10: Rescue Node | Rocket Pool DAO Event 03 March 2024
Denver Lift-Off 2024 · March 2024 · 10:32
A Rescue Node maintainer explains the trust minimized public beacon node that lets Rocket Pool operators keep validating during maintenance. The talk covers why public beacon nodes risk stolen fee recipients, how the rescue proxy enforces smoothing pool or fee distributor addresses, HMAC credentials, the hub and spoke architecture and hosting setup. A Q&A recounts how a Nethermind consensus bug showed the risk of a client split.
Topics
From Denver Lift-Off 2024, hosted by Rocket Pool.
Transcript
thank you I actually wrote a much longer intruction um this is a 25 slide deck there's absolutely no way I'm going to get through all of it in time I'm just going to kind of Hit the highlights and if you have questions please find me and ask me I'll do a longer version of this talk at some point later on a community call or something like that um I'm going to talk about the rescue node it's the trust min public Beacon node that you use when you're doing maintenance to like Brun and stuff like that uh it acts as a fallback I'm going to talk about why we built it and how we solved the problems that prompted us to build it in the first place um didn't work okay so what is the rest node uh really quickly poos sort of created it
before the merge um that's a picture of popos in the bottom right hand corner and it allows node operators to to just sort of uh uh continue validating even when their own node isn't really working properly all right so how does it work your normal node has an architecture that looks roughly like this you have an execution client you have a consensus client uh and a validator client they all talk to each other and that's how you do your validation duties they talk to other nodes through a p a peer-to-peer protocol and then when you connect to the rescue node it looks more like this so your validator client is just completely isolated from your regular environment and um you know you can take down your execution client and you'll keep
validating all right so the trust challenge this is the main impetus for building the rescue node basically if you just set up a public Beacon node um people can steal your inclusion fees uh the way that they do that is really very simple so there's like really a very strong incentive not to use a public Beacon node unless it mitigated this attack so we built a rescue n to mitigate this specific attack I'm gon to skip a bunch of slides right now oh wait I want to go back okay um so this is the original prototype for the rescue node we just had an engine X instance running with this bit of code in it and literally the only thing this
code does is make sure that every validator that's connected is using the smoothing pool as a fee recipient um and that way like nobody could possibly set your your validators Fe recipient to anything else so um this only worked if you happen to be in the smoothing pool and we only ran I think it was te so it only worked with two of the validator clients there a teu and Lighthouse nimus didn't have split mode yet so it wasn't compatible um and uh I guess we we just wanted to make a better product so I I joined poos we designed what you now know is the rescue node uh based on this prototype skip some more slides all right very high level architecture uh
there's a website that you go to to that makes a request to an API the API serves you a credential um it will validate your node address against the actual nodes in our architecture there's five of those uh I'll talk a little bit more about those in a minute the credentials are really cool um they they're hmac credentials so we can actually give them to you and then not store them ourselves and then you can give them back to us later and we can cryptographically prove that we originally provided you with that credential um which helps us with our architecture we'll get into that in a minute as well um so that's the API the credentials like I was saying they actually encode real data so when you sign up for the rescue node you'll get back a node ID uh and that's like your
username and you'll notice that that never changes so you can keep using quota on the rescue node and you'll still have the same username but the password keeps changing and the reason the password keeps changing is that we have this message schema that we encode a bunch of useful information in um we serialize that it's protuff that gets base 64 encode uh there's an hmac um string in there that we can use to validate that we actually gave you this credential and this is how we make sure that you don't use the rescue node for more than two weeks at a time because we put a time stamp in there that tells us when you got the credential to begin with um yeah and then I guess once you get the credential you basically just connect to a node uh the way you do that
is by you know if you're using smart node you just drop your username and password in and uh we we check which client you're using and we connect you to the appropriate node of the five nodes that we're running so if you're running Nimbus you'll get connected to our Nimbus node all right I'm I'm gonna skip a bunch of these slides the UI is incredible it was made by Dan who just gave us talk um he he based the design off of a a previous UI that was made by Han Abu I just want to give them a quick shout out uh I'm going to skip the API slide I would love to talk more about this but uh I think the really interesting stuff like how we solve that trust problem is in uh the rescue proxy which is the component that I built so I know it the
best so it's also easier for me to talk about uh this validates your hmac credential so when your validator sends uh traffic to us instead of to your local node we validate your hmac credential to make sure that you are allowed to connect um once you connect we inspect two different requests that get sent as part of the validation workflow those are prepare Beacon proposer and register validator and there's like a whole lot of caching builds into this application to make sure that we don't bring down any of our critical infrastructure uh so the the enforcement this is a really cool bit this is that that engine X function that you saw earlier uh for the full service like we we want you to be able to use this even if you're not part of the smoothing pool
we have to check to see if you're in the smoothing pool if you're in the smoothing pool obviously you have to use that as your fee recipient if you're not we need to know what your fee distributor address is because you need to use that instead and for prepare Beacon proposer um like this is much more important because uh we need to prevent other people from stealing your me and uh prepare Beacon proposer for whatever reason when it was designed didn't require a signature from the validator register validator on the other hand does require a signature so it's like way harder for someone to steal me from you they can only really steal your inclusion fees so if you're using me boost a lot of the trust assumptions are reduced um which is kind of like a double-edged sword because I think you
know some people are philosophically against me boosts me in general and uh this sort of encourages you to use it but um yeah so that's that's how those two functions work and then at a very high level like these are all the services that we're running on each individual node they're in a hub and spoke architecture which means that if individual components in our architecture go down uh everything just sort of keeps working so like we've had outages where prism has gone down and our prism us users will be disconnected but everyone else would be fine if our API goes down like the the nodes keep running and people keep validating um and that's down to using the hmac credentials which was actually Po's idea originally um so he's had like two really brilliant ideas for the rescue
nde probably more than that all right um I'm going to skip the cache talk that's really interesting but I don't think we have time uh let's go on and talk about services and software uh we use ovh for hosting we I have five bare metals and one BPS it costs $58 a month and then we use a bunch of free services so like obviously this is all centralized stuff but because uh you know this is an emergency only uh use case we we are okay with using some centralized services like Cloud Player that gives us certain amount of protection against dos we use it for single single sign on as well for our access to the nodes and then we use
graphon cloud so I upload all of my metrics into a graphon cloud and then like the the stats. rescue no.com page that you can go to and see the public dashboard there that's all through that uh we're using net data to monitor the hardware use ha proxy it just gives us like a little bit of extra security and logging uh and it gives us the ability to reap traffic when we have to and then you know the regular prom stacks promethus scona and a bunch of Open Source Code uh libraries like SQL light and stuff like that all right and then this is an acknowledgement slide uh can't give this talk without taking people I'm not going to read them out individually you can see them all up here my name's also up here I'm not trying to think myself but because of the trust assumptions involved asking
nerde it would be weird for me to leave it off because I don't want to give people the illusion that I'm not a maintainer um because they do have to trust the maintainers to use the service and that is it Ken do we have time there is a question one question can you briefly explain how much you almost lost a quarter billion dollars yeah okay so um question I yeah I was asked if I can briefly explain how I almost blew up a quarter of a billion dollars I lost a lot of sleep that week uh there was another mine bug it was a consensus bug so it it basically rejected a valid block that caused the chain to split into two forks uh when the chain splits and there is a
super majority client so even though death uh wasn't the one that split the chain when the chain splits and there is a super majority client you can't move off the super majority client onto the minority chain so because the bug was in nethermind I didn't blow up a quarter of a billion dollar if the bug had been in G um and and people had switched onto the rescue node to continue a testing and then it turned out that the ne mind and Buu chain was the canonical chain they would have gotten slashed if they ever tried to switch back um and and yeah so I the solution there is is really simple like we just can't run gu on the on the rescue node and if we don't run gu this can't happen um but I think the reason that we didn't prepare
for it is that until there was a consensus bug we didn't know that people would react by hopping on the rescue node like right away so within minutes of the ne mind bug there were like thousands and I forget how many it is like 16,000 validators or something on the rescue node and um if the bug had gone the other way all of those validators would have gone slashed so uh yeah my bad and you know knock on wood that that never happens excellent we
Related talks
- Staking Nerd Talk - Episode 1
- Fusaka, Rocket Pool and Lido, Hardware Requirements and Clients News - Staking Nerd Talk - Episode 3
- Keynote: Ethereum in 30 minutes
- Rocket Pool, Fusaka, PeerDAS, BPOs, Hardware Requirements, Hoodi and Ethrex - Staking Nerd Talk - 4
- Lido Poolside: Decentralization, June 2026
- Economics of Compounding, Pro Operator and Resilience - Staking Nerd Talk - Episode 2
- What's new in Eth2 - 15 July 2022 with Ben Edgington and superphiz
- What's new in Eth2 - 3 June 2022 with Ben Edgington and superphiz
- SOTS #45: Ethereum Client Diversity & How To Solve For It
