Architecture
The parts Fidant is made of, where each runs, and what each one stores.
The parts
What runs where
The web app runs in the sender's and the recipient's browsers and does the encryption. Amazon CloudFront, the content delivery network (CDN) of Amazon Web Services (AWS), delivers the web app's files from a location near each visitor. Our server, in Stockholm, passes setup messages between sender and recipient over a WebSocket and serves no pages. It runs at AWS, behind an AWS load balancer that decrypts the connection to our server and passes it on. Our relay, on a machine of its own in Stockholm, tells both ends their public address (STUN). If the sender allows it and the relay is available, the relay also carries encrypted traffic (TURN). It does this when the two ends haven't reached each other directly 3 seconds after the recipient answers.
What is stored
There are no accounts, no storage of the files people send and no database of people or transfers, apart from mail you send to limit@relay.fidant.se, which is kept until 30 days after it arrives, and Amazon S3 removes it after that. The web app's files are kept in storage at AWS that holds nothing else. The server holds what it knows about pages and transfers only in memory, apart from the lines it logs. The secret that the relay's secret comes from is kept in AWS's service for secrets, which hands it to the server each time it starts, and the server keeps it only in memory. We can read it in that service too, and so can the automated jobs that set up our AWS services, through what they set up. It gives access to our relay, not to any file. The relay keeps its current and previous secret in a small database file.
Open source
All of it is open source, so every statement on this page can be checked against the code.