sebsauvage / ZeroBin

A minimalist, opensource online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES.
http://sebsauvage.net/wiki/doku.php?id=php:zerobin
952 stars 213 forks source link

[information] Patch for read-only mode (zerobin archive, disallow new pastes) #119

Open zertrin opened 6 months ago

zertrin commented 6 months ago

This is not an issue per se, just wanted to share with the community how I turned my old zerobin instance into read-only mode.

Why?

Due to 1 I decided to not migrate the existing zerobin data to PrivateBin, as it would forever lock me on an old version (1.2.1) of it. I have thus setup a new, empty PrivateBin instance for myself, on a separate URL.

Because I still wanted existing pastes from my old zerobin instance to continue to be available at their existing URLs, I have decided to patch zerobin into a "read-only" mode instead.

How?

TL;DR: see this commit: https://github.com/zertrin/ZeroBin/commit/a3059fdcf08417a47a3b76e2d5e197635cf6d244 (which is just on top of the latest master commit here, so it should apply cleanly)

Changes:

image

rugk commented 6 months ago

Thanks, that sounds like a good idea. I have linked this in the PrivateBin wiki at https://github.com/PrivateBin/PrivateBin/wiki/Configuration#zerobincompatibility.