backend.globaleaks.handlers.admin.https

Module Contents

Classes

FileResource An interface for interacting with files stored on disk or in the db
PrivKeyFileRes An interface for interacting with files stored on disk or in the db
CertFileRes An interface for interacting with files stored on disk or in the db
ChainFileRes An interface for interacting with files stored on disk or in the db
CsrFileRes An interface for interacting with files stored on disk or in the db
FileHandler
ConfigHandler
CSRFileHandler
AcmeAccntKeyRes
AcmeHandler
AcmeChallengeHandler

Functions

load_tls_dict(session, tid) Transaction for loading the TLS configuration of a tenant
load_tls_dict_list(session)
db_create_acme_key(session, tid)
serialize_https_config_summary(session, tid)
try_to_enable_https(session, tid)
disable_https(session, tid)
reset_https_config(session, tid)
can_perform_acme_run(session, tid)
is_acme_configured(session, tid)
can_perform_acme_renewal(session, tid)
db_acme_cert_request(session, tid)
backend.globaleaks.handlers.admin.https.load_tls_dict(session, tid)[source]

Transaction for loading the TLS configuration of a tenant

Parameters:
  • session – An ORM session
  • tid – A tenant ID
Returns:

The serialized TLS configuration for the specified tenant

backend.globaleaks.handlers.admin.https.load_tls_dict_list(session)[source]
backend.globaleaks.handlers.admin.https.db_create_acme_key(session, tid)[source]
class backend.globaleaks.handlers.admin.https.FileResource[source]

Bases: object

An interface for interacting with files stored on disk or in the db

classmethod create_file(session, cls, tid, content)[source]
classmethod perform_file_action(cls, tid)[source]
static get_file(session, tid)[source]
static delete_file(session, tid)[source]
classmethod serialize(cls, session, tid)[source]
static db_serialize(session, tid)[source]
class backend.globaleaks.handlers.admin.https.PrivKeyFileRes[source]

Bases: backend.globaleaks.handlers.admin.https.FileResource

An interface for interacting with files stored on disk or in the db

validator[source]
classmethod create_file(session, cls, tid, raw_key)[source]
static save_tls_key(session, tid, prv_key)[source]
classmethod perform_file_action(cls, tid)[source]
static delete_file(session, tid)[source]
static db_serialize(session, tid)[source]
class backend.globaleaks.handlers.admin.https.CertFileRes[source]

Bases: backend.globaleaks.handlers.admin.https.FileResource

An interface for interacting with files stored on disk or in the db

validator[source]
classmethod create_file(session, cls, tid, raw_cert)[source]
static delete_file(session, tid)[source]
static get_file(session, tid)[source]
static db_serialize(session, tid)[source]
class backend.globaleaks.handlers.admin.https.ChainFileRes[source]

Bases: backend.globaleaks.handlers.admin.https.FileResource

An interface for interacting with files stored on disk or in the db

validator[source]
classmethod create_file(session, cls, tid, raw_chain)[source]
static delete_file(session, tid)[source]
static get_file(session, tid)[source]
static db_serialize(session, tid)[source]
class backend.globaleaks.handlers.admin.https.CsrFileRes[source]

Bases: backend.globaleaks.handlers.admin.https.FileResource

An interface for interacting with files stored on disk or in the db

classmethod create_file(session, cls, tid, raw_csr)[source]
static delete_file(session, tid)[source]
static get_file(session, tid)[source]
static db_serialize(session, tid)[source]
class backend.globaleaks.handlers.admin.https.FileHandler[source]

Bases: globaleaks.handlers.base.BaseHandler

check_roles = admin[source]
mapped_file_resources[source]
get_file_res_or_raise(self, name)[source]
delete(self, name)[source]
post(self, name)[source]
put(self, name)[source]
get(self, name)[source]
backend.globaleaks.handlers.admin.https.serialize_https_config_summary(session, tid)[source]
backend.globaleaks.handlers.admin.https.try_to_enable_https(session, tid)[source]
backend.globaleaks.handlers.admin.https.disable_https(session, tid)[source]
backend.globaleaks.handlers.admin.https.reset_https_config(session, tid)[source]
class backend.globaleaks.handlers.admin.https.ConfigHandler[source]

Bases: globaleaks.handlers.base.BaseHandler

check_roles = admin[source]
get(self)[source]
post(self)[source]
put(self)[source]

Disables HTTPS config and shutdown subprocesses.

delete(self)[source]
class backend.globaleaks.handlers.admin.https.CSRFileHandler[source]

Bases: backend.globaleaks.handlers.admin.https.FileHandler

check_roles = admin[source]
post(self, name)[source]
static perform_action(session, tid, csr_fields)[source]
class backend.globaleaks.handlers.admin.https.AcmeAccntKeyRes[source]
classmethod create_file(session, cls, tid)[source]
backend.globaleaks.handlers.admin.https.can_perform_acme_run(session, tid)[source]
backend.globaleaks.handlers.admin.https.is_acme_configured(session, tid)[source]
backend.globaleaks.handlers.admin.https.can_perform_acme_renewal(session, tid)[source]
backend.globaleaks.handlers.admin.https.db_acme_cert_request(session, tid)[source]
class backend.globaleaks.handlers.admin.https.AcmeHandler[source]

Bases: globaleaks.handlers.base.BaseHandler

check_roles = admin[source]
post(self)[source]
put(self)[source]
class backend.globaleaks.handlers.admin.https.AcmeChallengeHandler[source]

Bases: globaleaks.handlers.base.BaseHandler

check_roles = none[source]
get(self, token)[source]