GA
gameraccoon/one-time-share
A small web service that allows to store self-destructible messages (for sharing secrets such as newly generated passwords)
One Time Share (1ts.dev)
A simple web service written in golang that handles sharing self-destructing messages.
This service is useful when you want to share content-sensitive information in a conversation with someone, and you don't want this information to persist there.
Example:
[me]: Hey Dave, can you unlock my computer so I can remote login into it? My pin: [URL]
[Dave]: Sure!
If Dave's computer gets hacked the next day, the person who gains access won't be able to see your pin from this conversation.
The service address: 1ts.dev
Setting up your own server
- Clone the repository
- Edit
app-config.jsonto set paths to your TLS certificate and key, or setforceUnprotectedHttptotruein case you enable HTTPS through a reverse proxy like nginx - Configure
app-config.jsonwith your desired port and limits. go buildto build the executable orgo runto run it directly- Optionally, use tools/run_daemon.sh to start the service in the background, or configure it to run as you would any other service.
Refer to build.yaml for insights on how to build the project.
Things to consider when setting up your own server
- Make sure your server runs under HTTPS and is not accessible via HTTP
- Using HTTP is as good as broadcasting your private data to everyone in your network
- Whether you plan to deploy this web service or develop your own for your business, this service can be an easy point of entry for hackers to access other systems. You should ensure that no important information (such as access tokens or permanent passwords) is shared and the service is secured no less than other sensitive parts of your network.
- If someone hacks into my server, the maximum they can get is some data without context. But it's a very different situation if they can understand who the data is shared by and intended for (or potentially even more context about this information if the hackers already have access to some other systems).
On this page
Languages
Go60.8%HTML38.7%Shell0.5%
Contributors
MIT License
Created June 30, 2024
Updated February 16, 2025