backend.globaleaks.handlers.admin.operation

Module Contents

Classes

AdminOperationHandler This interface exposes the enable to configure and verify the platform hostname

Functions

check_hostname(session, tid, hostname) Ensure the hostname does not collide across tenants or include an origin that it shouldn’t.
reset_submissions(session, tid) Transaction to reset the submissions of the specified tenant
toggle_escrow(session, tid, user_session, user_id) Transaction to toggle key escrow access for user an user given its id
reset_smtp_settings(session, tid)
reset_templates(session, tid)
backend.globaleaks.handlers.admin.operation.check_hostname(session, tid, hostname)[source]

Ensure the hostname does not collide across tenants or include an origin that it shouldn’t.

Parameters:
  • session – An ORM session
  • tid – A tenant id
  • hostname – The hostname to be evaluated
backend.globaleaks.handlers.admin.operation.reset_submissions(session, tid)[source]

Transaction to reset the submissions of the specified tenant

Parameters:
  • session – An ORM session
  • tid – A tenant ID
backend.globaleaks.handlers.admin.operation.toggle_escrow(session, tid, user_session, user_id)[source]

Transaction to toggle key escrow access for user an user given its id

Parameters:
  • session – An ORM session
  • tid – A tenant ID
  • user_session – The current user session
  • user_id – The user for which togling the key escrow access
backend.globaleaks.handlers.admin.operation.reset_smtp_settings(session, tid)[source]
backend.globaleaks.handlers.admin.operation.reset_templates(session, tid)[source]
class backend.globaleaks.handlers.admin.operation.AdminOperationHandler[source]

Bases: globaleaks.handlers.operation.OperationHandler

This interface exposes the enable to configure and verify the platform hostname

check_roles = admin[source]
invalidate_cache = True[source]
reset_smtp_settings(self, req_args, *args, **kwargs)[source]
disable_2fa(self, req_args, *args, **kwargs)[source]
reset_user_password(self, req_args, *args, **kwargs)[source]
reset_onion_private_key(self, req_args, *args, **kargs)[source]
reset_submissions(self, req_args, *args, **kwargs)[source]
set_hostname(self, req_args, *args, **kwargs)[source]
test_mail(self, req_args, *args, **kwargs)[source]
toggle_escrow(self, req_args, *args, **kwargs)[source]
reset_templates(self, req_args)[source]
operation_descriptors(self)[source]