[Zerobin / PrivateBin] Minimalist online pastebin

PrivateBin for YunoHost

Integration level
Install PrivateBin with YunoHost

Overview

PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data.

Shipped version: 1.1.1

Screenshots

Configuration

Documentation

YunoHost specific features

Multi-users support

Supported architectures

  • x86-64b -
  • ARMv8-A -
  • Jessie x86-64b -

Limitations

Additionnal informations

Links


Changelog

Testing branch

Master branch (Official release)

  • 02 Jun 2019 #30
    • Global upgrade of the package.
    • Add change_url script
  • 10 oct 2018 - #28
    • Php fix: Get rid of the ini file and merge its content into the pool file.
  • 26 Dec 2017 - #21
    • Package refactored to adjust to latest standards
    • Updated to version 1.1.1
    • Fix is_public for upgrade

Developers infos

Please do your pull request to the testing branch.

To try the testing branch, please proceed like that.

sudo yunohost app install https://github.com/YunoHost-Apps/zerobin_ynh/tree/testing --debug
or
sudo yunohost app upgrade zerobin -u https://github.com/YunoHost-Apps/zerobin_ynh/tree/testing --debug


PrivateBin pour YunoHost

Integration level
Install PrivateBin with YunoHost

Résumé

PrivateBin est un pastebin en ligne minimaliste et open source où le serveur n’a aucune connaissance des données collées.

Version embarquée: 1.1.1

Captures d’écran

Configuration

Documentation

Fonctionnalités spécifiques à YunoHost

Support multi-utilisateurs

Architectures supportées.

  • x86-64b -
  • ARMv8-A -
  • Jessie x86-64b -

Limitations

Informations additionnelles

Liens


Changelog

Branche testing

Branche master (Release officielle)

  • 02 Jun 2019 #30
    • Global upgrade of the package.
    • Add change_url script
  • 10 oct 2018 - #28
    • Php fix: Get rid of the ini file and merge its content into the pool file.
  • 31 Oct 2017 - #21
    • Package refactored to adjust to latest standards
    • Updated to version 1.1.1
    • Fix is_public for upgrade

Informations à l’intention des développeurs

Merci de faire vos pull request sur la branche testing.

Pour tester la branche testing, merci de procéder ainsi.

sudo yunohost app install https://github.com/YunoHost-Apps/zerobin_ynh/tree/testing --debug
ou
sudo yunohost app upgrade zerobin -u https://github.com/YunoHost-Apps/zerobin_ynh/tree/testing --debug
1 Like

Hi,

there’s a new testing.

Upgrade of ZeroBin/PrivateBin

#21

  • Package refactored to adjust to latest standards
  • Updated to version 1.1.1
  • Fix is_public for upgrade
1 Like

New testing release

  • 10 oct 2018 #28
    • Php fix: Get rid of the ini file and merge its content into the pool file.
sudo yunohost app install https://github.com/YunoHost-Apps/zerobin_ynh/tree/testing --debug
or
sudo yunohost app upgrade zerobin -u https://github.com/YunoHost-Apps/zerobin_ynh/tree/testing --debug

New stable release

  • 10 oct 2018 #28
    • Php fix: Get rid of the ini file and merge its content into the pool file.
1 Like

New testing release

  • 23 May 2019 #30
    • Global upgrade of the package.
    • Add change_url script
sudo yunohost app install https://github.com/YunoHost-Apps/zerobin_ynh/tree/testing --debug
or
sudo yunohost app upgrade zerobin -u https://github.com/YunoHost-Apps/zerobin_ynh/tree/testing --debug
2 Likes

New stable release

  • 02 Jun 2019 #30
    • Global upgrade of the package.
    • Add change_url script
1 Like

Hi there!

I have a question!

If I install PrivateBin answering with is_public=no, I can paste things, but you need an account on my instance to read it.
If I install PrivateBin answering with is_public=yes, anyone can paste things, account or not.

Is there a way to get an intermediate status: only people with an account on my instance can post, but the content is accessible to anyone who has the URL?
I’m thinking about authorizing pics and stuff, but I’m worried that would create a very weakpoint as one could crash the server by posting gazillions of pics.

Thanks!

So far the packages does not allow that, but that’s probably possible as we do such thing with many others apps.
First I would encourage you to open an issue on the repo for this app, that way, it could be done in a future update. (Even though that app is currently waiting for a new packager)

Unfortunately, authorizing only to read paste isn’t that easy.
I don’t know that app (as I don’t use it myself), but the thing is you have to identify what are the pages that have to be private and the format of the url for a paste.

(Actually having a look on the official demo…)
As far as I can see, there’s no other pages than the root of the app and the pastes.
And all pastes start with a ‘?’
I think you should try with the app public and add

sudo yunohost app setting zerobin protected_regex -v "domain.tld/path/$"

Which should protect only the root of the app.
And if it doesn’t work, try the opposite.
Keep the app private and add

sudo yunohost app setting zerobin unprotected_regex -v "domain.tld/path/\?.*$"

After any modification, you have to update your config with

sudo yunohost app ssowatconf

Also, in case you have ‘-’ in your domain name, replace them by a ‘.’ for the regex.

Sorry for my late reply (year end and procrastination…). I tried both.

Curiously, I couldn’t get the second option to work, but the first one (public but blocking root) seems to work just fine. So cherry-picking in your answer, here’s the working procedure:

sudo yunohost app setting zerobin protected_regex -v "domain.tld/path/$"
sudo yunohost app ssowatconf

Thanks very much!

I’ve made a pull request to update this package to 1.3.4 version :

How to launch test package ?

1 Like

Your PR has been merged in testing already.
But we gave up the official status in the meantime, so no one did the PR from testing to master :wink:

And as the app is no longer High quality (it was because of its official status) there’s no more automatic tests either.

Anyway, it was tested on your PR.

But globally, to test a package you can either rely to the ci-apps-dev or install your own local version of package check.

Should I to install the package check on a yunohost or on my local system ?
Or on my small VPS (4Go / 2 x Xeon Processor 2,1 Ghz, 20 GB free space disk) with yunohost ?

Better to have a dev environment, on which you can install package check.
My preference goes to VirtualBox https://yunohost.org/#/packaging_apps_virtualbox

J’ai installé une VM dans Virtualbox avec yunohost vierge avec un snapshot.
Comme je voudrais à terme pouvoir contribuer - tester des futurs paquets avec le process, je voudrais tester l’utilisation de package_check.
Par contre, ce n’est jamais clair sur le lieu de lancement des commandes et par qui ?
Je fais tout avec admin pour l’instant tant que je n’ai pas d’erreur…

J’ai cloné le dépot package_check et lancé le build :

git clone https://github.com/YunoHost/package_check
package_check/sub_scripts/lxc_build.sh

Tout s’est bien passé.
Ensuite j’ai créé un dossier et cloné mon dépot testing dedans et lancé le package_check :

mkdir zerobin 
git clone https://github.com/webafrancois/zerobin_ynh/tree/testing
~/package_check/package_check.sh zerobin_ynh

Et après de nombreux tests automatique, j’obtiens :

Package linter:                  SUCCESS
Installation:                    SUCCESS
Deleting:                        SUCCESS
Installation in a sub path:      SUCCESS
Deleting from a sub path:        SUCCESS
Installation on the root:        SUCCESS
Deleting from root:              SUCCESS
Upgrade:                         SUCCESS
Installation in private mode:    SUCCESS
Installation in public mode:     SUCCESS
Multi-instance installations:    SUCCESS
Malformed path:                  SUCCESS
Port already used:               Not evaluated.
Backup:                          SUCCESS
Restore:                         SUCCESS
Change URL:                      SUCCESS
Actions and config-panel:        Not evaluated.
grep: /home/admin/package_check/levels.json: Aucun fichier ou dossier de ce type
Level of this application: 7 ()
	   Level 1: 1
	   Level 2: 1
	   Level 3: 1
	   Level 4: 1
	   Level 5: 1
	   Level 6: 1
	   Level 7: 1
	   Level 8: 0
	   Level 9: 0
	   Level 10: 0
You can find the complete log of these tests in /home/admin/package_check/Complete.log
Global working time for all tests: 15 minutes, 39 seconds.
Disable iptables rules.
Disable the network bridge.

Est-ce suffisant pour tester d’autres paquets ?

That’s because you can do it wherever you want, with any user you want.

The only limitation is that package check won’t accept to be used with another user that the one you used the first time.

The result you got looks perfect.
You can test any other package now.

Est-ce qu’il y a des préconisations sur la rédaction des pages de doc sur :

https://yunohost.org/#/app_zerobin_fr
ou
https://yunohost.org/#/app_zerobin_en

Un modèle comme pour le my_webapp_ynh ?

J’ai l’impression qu’il manque beaucoup de pages de doc pour les applis, non ?

Certaines se ressemblent :
https://yunohost.org/#/app_dokuwiki_en/preview
https://yunohost.org/#/app_wordpress
mais pas toutes :
https://yunohost.org/#/app_minidlna

There’s globally not too many specific docs…

For this documentation, there’s isn’t any template so far.

C’est fait pour Zerobin. Je ne me lance pas pour l’anglais, pas assez compétent pour écrire quelque chose de correct.

J’en attaque d’autres…

1 Like

Plus je plonge dans la doc et plus j’en découvre.

En fait, il y a bien une page modèle :

https://yunohost.org/#/app_writing_guide

et même un bon guide pratique https://yunohost.org/#/doc_writing_guide

2 Likes