GithubHelp home page GithubHelp logo

graysonchao / go-flashpaper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rawdigits/go-flashpaper

0.0 1.0 0.0 9 KB

Flashpaper is a simple go-based service for creating one time use links to text data or individual files.

License: MIT License

Go 100.00%

go-flashpaper's Introduction

go-flashpaper

Go-flashpaper is a simple go-based service for creating one time use links to text data or individual files.

What even is this?

It is a web service that allows you to upload text snippets or files and generates one time use links to share these things with other people. As soon as the sharing link is accessed, the data is deleted from the web service's memory and the link expires. This means that old links are useless, even if shared somewhere insecure. This can be used to share sensitive data with friends or colleagues. Flashpaper has a maximum data retention period of 24 hours. It has no build dependencies outside of the go standard library.

Installation

  1. Get a server. Preferably one you run yourself. Preferably patched. Install go (the language).
  2. Disable swap on the server so you don't write secrets to disk.
  3. Clone this here repo: git clone [email protected]:rawdigits/go-flashpaper.git
  4. Build go-flashpaper: cd go-flashpaper; go build
  5. Get ahold of a TLS certificate. go-flashpaper requires TLS, because we are not savages.
  6. Save the certificate and private key in the same directory as go-flashpaper. Name them server.crt and server.key, respectively
  7. Run go-flashpaper: ./go-flashpaper
  8. Connect to the web service via https://yourserver.example.com:8443 (note: 8443 is the default port, so no one has an excuse to run this as root)
  9. Share secret things.

FAQ

Q: How do I configure it?

A: You don't. Everything is hardcoded because configuration is the devil. The service needs the files server.crt and server.key in its working directory to start. The port it runs on is 8443.

Q: Should I run this on (cloud provider x)?

A: That is up to you and your individual risk appetite. This comes with no warranty or promise of security, but it is probably way better than using gtalk to share your root password.

Q: Should I put this on the public internet?

A: Probably not. It is susceptible to Denial of Service by simply uploading a lot of data. Put it behind some kind of auth or something.

Q: Why do you limit uploads to 10mb?

A: Because everything is kept in memory and we ain't made of money.

Q: Why doesn't it have (feature x)?

A: Because. Also it never will.

What are some examples of using this?

Example 1

Alice: Hi Bob, I just set your new linux account with a random password. The password is available here: https://seekret.example.com:8443/de818e28daa568cb433b39da292b589bdcbc1bc771d52cffe453b0e01e93865b Please log in and change your password immediately.

Bob: Thanks, I logged in with that password and changed my password!

Example 2

Alice: Hi Bob, I just set your new linux account with a random password. The password is available here: https://seekret.example.com:8443/de818e28daa568cb433b39da292b589bdcbc1bc771d52cffe453b0e01e93865b Please log in and change your password immediately.

Bob: Hmmm, that link didn't work.

Alice: It hasn't been 24 hours, so someone may have intercepted it. I'll delete that account and create a new one. Then I'll send you another link by carrier pigeon.

Bob: Perfect, thanks!

Example 3

Alice: Hi Bob, I have that document on our new security infrastructure plans. Go here to download it: https://seekret.example.com/de818e28daa568cb433b39da292b589bdcbc1bc771d52cffe453b0e01e93865b

Bob: Yay!

Have a nice day!

go-flashpaper's People

Contributors

rawdigits avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.