-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4969 from jtschladen/jschladen/reissue-serial
Fix "Working outside of application context" error, plus fix incorrect arg ordering for rotate by serial number
- Loading branch information
Showing
8 changed files
with
29 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,20 +6,21 @@ | |
.. moduleauthor:: Kevin Glisson <[email protected]> | ||
""" | ||
import click | ||
|
||
from flask import current_app | ||
from flask.cli import with_appcontext | ||
from sentry_sdk import capture_exception | ||
|
||
from lemur.certificates.service import get_expiring_deployed_certificates | ||
from lemur.constants import SUCCESS_METRIC_STATUS, FAILURE_METRIC_STATUS | ||
from lemur.extensions import metrics | ||
from lemur.notifications.messaging import send_authority_expiration_notifications | ||
from lemur.notifications.messaging import send_expiration_notifications, \ | ||
send_expiring_deployed_certificate_notifications | ||
from lemur.notifications.messaging import send_authority_expiration_notifications | ||
from lemur.notifications.messaging import send_security_expiration_summary | ||
|
||
|
||
@click.group(name="notify", help="Handles notification related tasks.") | ||
@with_appcontext | ||
def cli(): | ||
pass | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,12 @@ | |
.. moduleauthor:: Curtis Castrapel <[email protected]> | ||
""" | ||
|
||
import click | ||
import copy | ||
import sys | ||
|
||
import click | ||
from flask import current_app | ||
from flask.cli import with_appcontext | ||
|
||
from lemur.authorities.service import get as get_authority | ||
from lemur.constants import ACME_ADDITIONAL_ATTEMPTS | ||
|
@@ -19,6 +20,7 @@ | |
|
||
|
||
@click.group(name="pending_certs", help="Handles pending certificate related tasks.") | ||
@with_appcontext | ||
def cli(): | ||
pass | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,13 @@ | |
.. moduleauthor:: Kevin Glisson <[email protected]> | ||
""" | ||
import click | ||
from flask.cli import with_appcontext | ||
|
||
from lemur.policies import service as policy_service | ||
|
||
|
||
@click.group(name="policy", help="Handles all policy related tasks.") | ||
@with_appcontext | ||
def cli(): | ||
pass | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,14 @@ | |
.. moduleauthor:: Kevin Glisson <[email protected]> | ||
""" | ||
import click | ||
|
||
from flask.cli import with_appcontext | ||
from tabulate import tabulate | ||
|
||
from lemur.reporting.service import fqdns, expiring_certificates | ||
|
||
|
||
@click.group(name="report", help="Reporting related tasks.") | ||
@with_appcontext | ||
def cli(): | ||
pass | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,28 +5,28 @@ | |
:license: Apache, see LICENSE for more details. | ||
.. moduleauthor:: Kevin Glisson <[email protected]> | ||
""" | ||
from copy import deepcopy | ||
import click | ||
import sys | ||
import time | ||
from copy import deepcopy | ||
|
||
from tabulate import tabulate | ||
import click | ||
from flask import current_app | ||
from flask.cli import with_appcontext | ||
from sentry_sdk import capture_exception | ||
from tabulate import tabulate | ||
|
||
from lemur.certificates import service as certificate_service | ||
from lemur.constants import SUCCESS_METRIC_STATUS, FAILURE_METRIC_STATUS | ||
|
||
from lemur.destinations import service as dest_service | ||
from lemur.extensions import metrics | ||
from lemur.plugins.base import plugins | ||
from lemur.plugins.utils import get_plugin_option, set_plugin_option | ||
|
||
from lemur.destinations import service as dest_service | ||
from lemur.sources import service as source_service | ||
from lemur.users import service as user_service | ||
from lemur.certificates import service as certificate_service | ||
|
||
|
||
@click.group(name="source", help="Handles all source related tasks.") | ||
@with_appcontext | ||
def cli(): | ||
pass | ||
|
||
|