/plushcap/analysis/fly-io/creating-the-livebook-launcher-in-liveview

Launching Livebook Using LiveView

What's this blog post about?

Mark Ericksen discusses the creation of a LiveView launcher for Fly.io, which launches a Livebook instance. The challenge was to handle generated secrets like liveview_password that are stored temporarily in a LiveView process and could be lost if anything went wrong with the user's connection or server restart. To solve this issue, they encrypted the private data using Phoenix.Token.encrypt/4 and stored it in the browser's SessionStorage, ensuring users have control over their data. They used LiveView hooks to communicate between the server and client, enabling the server to retrieve and decrypt the data when needed.

Company
Fly.io

Date published
Nov. 18, 2021

Author(s)
Mark Ericksen

Word count
600

Hacker News points
4

Language
English


By Matt Makai. 2021-2024.