[{"data":1,"prerenderedAt":214},["ShallowReactive",2],{"blog-posts":3},[4,114,163],{"id":5,"title":6,"body":7,"date":105,"description":106,"extension":107,"meta":108,"navigation":109,"path":110,"seo":111,"stem":112,"__hash__":113},"blog\u002Fblog\u002Fencrypted-pre-registration.md","Encrypted Pre-registration",{"type":8,"value":9,"toc":101},"minimark",[10,14,17,30,33,36,57,60,63,83,86,98],[11,12,13],"p",{},"Even during early development, my chosen path is already proving harder than I initially anticipated.",[11,15,16],{},"A traditional pre-registration system for future customers should be straightforward:",[18,19,20,24,27],"ol",{},[21,22,23],"li",{},"Create an email collection form in the website.",[21,25,26],{},"Create an API to handle incoming requests.",[21,28,29],{},"Save email addresses in a database.",[11,31,32],{},"But Musta has a privacy promise to uphold even this early in development. That makes something as simple as email collection significantly harder.",[11,34,35],{},"These are the problems I encountered during planning:",[18,37,38,45,51],{},[21,39,40,44],{},[41,42,43],"strong",{},"Email addresses cannot be stored in plaintext."," The database should only contain encrypted values, never plain email addresses. Even if the database's remote backups are compromised, the stored email addresses should still be unreadable. Hashing is one way to achieve this goal but that solution is incompatible with the next problem.",[21,46,47,50],{},[41,48,49],{},"Invitations will be sent in the future."," Hashing any value is a one-way operation. Sending invitation emails in the future requires plain email addresses which means decrypting the previously encrypted values which, in turn, means storing the decryption key somewhere.",[21,52,53,56],{},[41,54,55],{},"Decryption keys must not be in the server",". Similar to the database, when the server gets compromised, the attacker should be able to extract no information. Storing the decryption key in the server, therefore, is not an option.",[11,58,59],{},"The goal is to design Musta so that even if the API and the database are both compromised, the attacker will be able to extract as little information as possible. This is an ambitious threat model but the project's privacy-first focus means these constraints are non-negotiables.",[11,61,62],{},"This means building three components:",[18,64,65,71,77],{},[21,66,67,70],{},[41,68,69],{},"An admin dashboard."," This will work similar to the main website except there's only one person using it: me. For now, this dashboard will only be used to decrypt encrypted email addresses and trigger sending of actual invitation email in the future. After the email has been sent, the encrypted email addresses will be removed from the database. On login, the admin account's private key will also be deterministically reconstructed and stored in-memory only.",[21,72,73,76],{},[41,74,75],{},"A small slice of the \"dumb server\"."," This will eventually grow to become the API for the main website as well. For now, the API will only handle a) saving encrypted email addresses, b) returning those encrypted values to the admin dashboard, and c) sending the invitation email in the future. Only during the last step will it see the actual email addresses.",[21,78,79,82],{},[41,80,81],{},"Updating the main website with my admin account's public key."," When someone requests to be invited, this would enable the main Musta website to encrypt the actual email address before sending the ciphertext to the API.",[11,84,85],{},"Even with all that, the current setup still has some vulnerabilities:",[87,88,89,92,95],"ul",{},[21,90,91],{},"Musta's website is served through Cloudflare Pages. Even if a bad actor gains control of the server, the frontend still sends encrypted data. However, if my GitHub account is compromised, they can theoretically change the site's code to skip encryption entirely and send the plaintext values to the server.",[21,93,94],{},"If an attacker takes over the server but patiently waits for actual email sending operation, they can theoretically see the plain email address.",[21,96,97],{},"My admin private key is never saved but if my own device is ever compromised, an attacker could potentially exfiltrate the private key from memory.",[11,99,100],{},"What I thought was a simple pre-registration form became a warm-up exercise in designing a system with privacy at its core. It has not been easy but now I understand more concretely why it is almost impossible to add this level of privacy as an afterthought.",{"title":102,"searchDepth":103,"depth":103,"links":104},"",2,[],"2026-10-20","Privacy from the very start, not as an afterthought","md",{},true,"\u002Fblog\u002Fencrypted-pre-registration",{"title":6,"description":106},"blog\u002Fencrypted-pre-registration","3HcRKMcRHU3b3LMkPWPoYj2O480ocVniO-4KUz3lo8A",{"id":115,"title":116,"body":117,"date":156,"description":157,"extension":107,"meta":158,"navigation":109,"path":159,"seo":160,"stem":161,"__hash__":162},"blog\u002Fblog\u002Fdiary-vs-social-network.md","Diary vs Social Network",{"type":8,"value":118,"toc":154},[119,128,136,139,142,145,148],[11,120,121,122,127],{},"In a ",[123,124,126],"a",{"href":125},"\u002Fblog\u002Fmusta-world","previous post",", I said that Musta is two things at the same time:",[18,129,130,133],{},[21,131,132],{},"an online diary \u002F journal, and",[21,134,135],{},"a way to share specific entries with specific people.",[11,137,138],{},"These two things pull directly against each other. The first thing is a private-first app, the second is a sharing-first app with strong privacy. Diary \u002F journal entries are written for a single person: the writer's future self. A social network update is always intended for someone else.",[11,140,141],{},"Musta's v1 was trying to be both: a journal app with social sharing features, and a social network with strong privacy defaults. I only realized the contradiction while writing the project's manifesto because those two things constantly fought each other even on things they should have agreed on at first glance: privacy.",[11,143,144],{},"A good journaling app is all about keeping the author's data under lock and key. Any online backup stored on a server should be unreadable to anyone, not even the server code. A social network with strong privacy still needs to see some part of the author's data: their entries (or at least their entries' metadata), their connections, and which of those connections can see which entries. Even if the contents are encrypted, some metadata should still remain readable. \"Privacy\" means the same but, depending on the app's identity, the amount of privacy differs.",[11,146,147],{},"My goal with Musta aligns more with the latter, a social network with a strong focus on privacy. I want to know how my cousins are doing, I want to see my nieces and nephews growing up, all without handing their data to big tech.",[11,149,150,153],{},[41,151,152],{},"Musta, therefore, is a private-by-default social network."," It can be used as an online diary (like I'm usually using it) but that is only secondary, a \"happy accident\" caused by the project's promise of keeping everyone's data safe.",{"title":102,"searchDepth":103,"depth":103,"links":155},[],"2026-10-15","What is Musta's actual direction and identity?",{},"\u002Fblog\u002Fdiary-vs-social-network",{"title":116,"description":157},"blog\u002Fdiary-vs-social-network","sp_Tlj7UUSFcsSY4JRUyPEMk5whHT8fVnobIpFNz0aY",{"id":164,"title":165,"body":166,"date":208,"description":209,"extension":107,"meta":210,"navigation":109,"path":125,"seo":211,"stem":212,"__hash__":213},"blog\u002Fblog\u002Fmusta-world.md","Musta World?",{"type":8,"value":167,"toc":206},[168,171,178,188,191,194,203],[11,169,170],{},"Musta is a project with two main goals:",[18,172,173,175],{},[21,174,132],{},[21,176,177],{},"a way to share specific entries with specific people I trust.",[11,179,180,181,187],{},"Pen-and-paper and a dozen different apps are available for the first goal. I've tried some of them but nothing really felt right. Which is why I created ",[123,182,186],{"href":183,"rel":184},"https:\u002F\u002Fgithub.com\u002Fmarvinisaac\u002Fpapel",[185],"nofollow","Papel",", one of the predecessors to Musta.",[11,189,190],{},"Social networking websites of the early 2000's used to be enough for the second goal, but the social media of today have stopped caring about many things. Privacy and real connections are just some examples.",[11,192,193],{},"That's why I'm building Musta. And I'm building it in public moving forward.",[11,195,196,197,202],{},"I've recently started creating ",[123,198,201],{"href":199,"rel":200},"https:\u002F\u002Fwww.youtube.com\u002F@AkoSiMarvin",[185],"YouTube"," videos and these blogs will eventually become videos where I talk about Musta.",[11,204,205],{},"This is the start of a very challenging journey full of lessons (hopefully 🤞).",{"title":102,"searchDepth":103,"depth":103,"links":207},[],"2026-10-13","Building in public... soon.",{},{"title":165,"description":209},"blog\u002Fmusta-world","DL0_dTsoycILzLV7HECljBtolLnhdmmSt7vE_qcX9Q0",1792909788502]