Documentation

S3Storage.php

PrivateBin

a zero-knowledge paste bin

Tags
link
https://github.com/PrivateBin/PrivateBin
copyright

2022 Felix J. Ogris (https://ogris.de/)

license

https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License

an S3 compatible data backend for PrivateBin with CEPH/RadosGW in mind see https://docs.ceph.com/en/latest/radosgw/s3/php/

Installation:

  1. Make sure you have composer.lock and composer.json in the document root of your PasteBin
  2. If not, grab a copy from https://github.com/PrivateBin/PrivateBin
  3. As non-root user, install the AWS SDK for PHP: composer require aws/aws-sdk-php (On FreeBSD, install devel/php-composer2 prior, e.g.: make -C /usr/ports/devel/php-composer2 install clean)
  4. In cfg/conf.php, comment out all [model] and [model_options] settings
  5. Still in cfg/conf.php, add a new [model] section: [model] class = S3Storage
  6. Add a new [model_options] as well, e.g. for a Rados gateway as part of your CEPH cluster: [model_options] region = "" version = "2006-03-01" endpoint = "https://s3.my-ceph.invalid" use_path_style_endpoint = true bucket = "my-bucket" prefix = "privatebin" (place all PrivateBin data beneath this prefix) accesskey = "my-rados-user" secretkey = "my-rados-pass"

Table of Contents

Classes

S3Storage
AbstractData

        
On this page

Search results