From 649f97622b89295e61c32a477137139943d8d2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 27 May 2021 20:36:20 +0000 Subject: [PATCH] Remove more unused bits --- pinecrypt/server/api/session.py | 3 --- pinecrypt/server/api/tag.py | 2 -- pinecrypt/server/cli.py | 6 ------ 3 files changed, 11 deletions(-) diff --git a/pinecrypt/server/api/session.py b/pinecrypt/server/api/session.py index fe41912..ef3d632 100644 --- a/pinecrypt/server/api/session.py +++ b/pinecrypt/server/api/session.py @@ -173,9 +173,6 @@ class SessionResource(object): request_subnets=const.REQUEST_SUBNETS or None, machine_enrollment_subnets=const.MACHINE_ENROLLMENT_SUBNETS or None, admin_subnets=const.ADMIN_SUBNETS or None, - - ocsp_subnets=const.OCSP_SUBNETS or None, - crl_subnets=const.CRL_SUBNETS or None, ), features=dict( token=True, diff --git a/pinecrypt/server/api/tag.py b/pinecrypt/server/api/tag.py index 234337d..b958c85 100644 --- a/pinecrypt/server/api/tag.py +++ b/pinecrypt/server/api/tag.py @@ -2,8 +2,6 @@ from pinecrypt.server import db from pinecrypt.server.decorators import serialize, csrf_protection from .utils.firewall import login_required, authorize_admin -logger = logging.getLogger(__name__) - class TagResource(object): @serialize @login_required diff --git a/pinecrypt/server/cli.py b/pinecrypt/server/cli.py index b28fb04..26e377d 100644 --- a/pinecrypt/server/cli.py +++ b/pinecrypt/server/cli.py @@ -396,11 +396,6 @@ def pinecone_serve_backend(): # CN to Id api call app.add_route("/api/signed/{cn}", SignedCertificateDetailResource(), suffix="cn") - app.add_route("/api/request/{cn}", RequestDetailResource(), suffix="cn") - app.add_route("/api/signed/{cn}/script", ScriptResource(), suffix="cn") - app.add_route("/api/signed/{cn}/tag", TagResource(), suffix="cn") - app.add_route("/api/signed/{cn}/tag/{tag}", TagDetailResource(), suffix="cn") - # Certificate authority API calls app.add_route("/api/certificate", CertificateAuthorityResource()) @@ -658,7 +653,6 @@ def pinecone_serve_strongswan(client_subnet_slot): pinecone_serve.add_command(pinecone_serve_openvpn) pinecone_serve.add_command(pinecone_serve_strongswan) -pinecone_serve.add_command(pinecone_serve_syslog) pinecone_serve.add_command(pinecone_serve_backend) pinecone_serve.add_command(pinecone_serve_ocsp_responder) pinecone_serve.add_command(pinecone_serve_events)