shalak / paaster

Paaster is a secure and user-friendly pastebin application that prioritizes privacy and simplicity. With end-to-end encryption and paste history, Paaster ensures that your pasted code remains confidential and accessible.

Home Page:https://paaster.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

 

Paaster.io

Paaster is a secure and user-friendly pastebin application that prioritizes privacy and simplicity. With end-to-end encryption and paste history, Paaster ensures that your pasted code remains confidential and accessible.

Terms of service | Privacy policy

 

Preview

Desktop preview

Features

  • End-to-end encryption.
  • Memory efficient.
  • File drag & drop.
  • Shortcuts.
  • Paste history (with support for unix-like search).
  • Delete after view or X amount of time.
  • API documentation.
  • CLI Tool.
  • Access code protection (Require a passphrase to view paste.)
  • Rate limiting.
  • Share via QR code.
  • PWA support.
  • i18n support.
  • No dynamically loaded 3rd party dependencies, meaning malicious code must be present at build time.
  • Use of package-lock.json, poetry.lock & Socket.dev to fight against supply chain attacks & vulnerabilities.
  • Vercel support.

Security

What is E2EE?

End-to-end encryption (E2EE) is a zero-trust encryption methodology. When you paste code into Paaster, it is encrypted locally in your browser using a secret that is never shared with the server. Only people you share the link with can view the paste.

Can I trust a instance of paaster not hosted by me?

No. Anyone could modify the functionality of Paaster to expose your secret key to the server. We recommend using a instance you host or trust.

How are client secrets stored?

Client secrets are stored with IndexedDB when the paste is created, allowing for paste history. This method of storage makes Paaster vulnerable to malicious JavaScript, but it would require malicious code to be present when the Svelte application is built.

How are client secrets transported?

Paaster uses URI fragments to transport secrets, according to the Mozilla foundation URI fragments aren't meant to be sent to the server. Bitwarden also has a article covering this usage here.

How are server secrets stored?

Server secrets are stored with IndexedDB when the paste is created, allowing for modification or deletion of pastes later on. The server-sided secrets are generated using the Python secrets module and stored in the database using bcrypt hashing.

Cipher

Paaster uses XChaCha20-Poly1305 encryption, which is implemented using the libsodium-wrappers library.

Shortcuts

  • Ctrl+V - Paste code.
  • Ctrl+S - Download code as file.
  • Ctrl+A - Copy all code to clipboard.
  • Ctrl+X - Copy URL to clipboard.

Requesting features

  • Open a new issue to request a feature (one issue per feature.)

What we won't add

  • Paste editing.
    • Paaster isn't a text editor, it's a pastebin.
  • Paste button.
    • Paaster isn't a text editor, when code is inputted it will always be automatically uploaded.
  • Optional encryption.
    • Paaster will never have opt-in / opt-out encryption, encryption will always be present.

Setup

Production with Docker

  • During configuration, no provided URLs should be suffixed with a slash.
  • Configure docker-compose.yml (example here)
  • sudo docker compose build; sudo docker compose up -d.
  • Proxy exposed ports using Caddy/Nginx/Apache2 (or whatever reverse proxy you prefer.)

Vercel

Paaster's frontend is also configured to work with Vercel, which offers enhanced security through server separation and improved performance.

Using Rclone

Rclone is no longer supported for performance reasons & paaster is now only s3 compatible.

Luckily you can get cheap / free & easy to setup s3 compatible storage from idrive e2 (no free tier anymore) or backblaze b2 (10 GB free).

Production without docker

This setup is not recommended & requires more research / knowledge.

  • git clone https://github.com/WardPearce/paaster.
  • cd frontend
  • Create .env
    • VITE_NAME - The name displayed on the website.
    • VITE_API_URL - The URL of the API.
  • Install nodejs
    • npm install
    • npm run build
  • Serve files generated in dist with Nginx (or whatever reverse proxy you use.)
  • cd backend
  • Install Python 3.10+
    • curl -sSL https://install.python-poetry.org | python3 -
    • Configure run.py following the guide for uvicorn.
  • Pass environmental variables
    • paaster_proxy_urls.
    • paaster_s3.
    • paaster_mongo.
    • paaster_open_api.
    • paaster_max_iv_size.
    • paaster_max_paste_size.
  • Run poetry run server, to start server.
  • Proxy exposed ports using Caddy/Nginx/Apache2 (or whatever reverse proxy you prefer.)

Adding translations

  • Find the appropriate ISO 639-1 language code.
  • Fork the repo.
  • Navigate to frontend/src/i18n.
  • Copy en.json & rename with the appropriate ISO 639-1 language code. If the translation already exists, review it. As many of our existing translations where generated automatically.
  • Translate the contents of the JSON file.
  • Navigate to frontend/src/i18n/index.ts.
  • Add register("iso language code here", () => import("./iso language code here.json"));.
  • Create a PR request.

About

Paaster is a secure and user-friendly pastebin application that prioritizes privacy and simplicity. With end-to-end encryption and paste history, Paaster ensures that your pasted code remains confidential and accessible.

https://paaster.io

License:GNU Affero General Public License v3.0


Languages

Language:Svelte 43.0%Language:TypeScript 29.4%Language:Python 18.0%Language:CSS 7.0%Language:Dockerfile 1.4%Language:HTML 0.6%Language:Shell 0.4%Language:JavaScript 0.2%