mirror of
https://github.com/GSA/notifications-api.git
synced 2026-08-24 00:06:16 -04:00
try using truststore
This commit is contained in:
@@ -1,35 +1,46 @@
|
||||
import logging as real_logging
|
||||
import os
|
||||
import secrets
|
||||
import string
|
||||
import time
|
||||
import uuid
|
||||
from contextlib import contextmanager
|
||||
from threading import Lock
|
||||
from time import monotonic
|
||||
import truststore
|
||||
|
||||
from celery import Celery, Task, current_task
|
||||
from flask import current_app, g, has_request_context, jsonify, make_response, request
|
||||
from flask.ctx import has_app_context
|
||||
from flask_migrate import Migrate
|
||||
from flask_socketio import SocketIO
|
||||
from flask_sqlalchemy import SQLAlchemy as _SQLAlchemy
|
||||
from sqlalchemy import event
|
||||
from werkzeug.exceptions import HTTPException as WerkzeugHTTPException
|
||||
from werkzeug.local import LocalProxy
|
||||
truststore.inject_into_ssl() # noqa
|
||||
|
||||
from app import config
|
||||
from app.clients import NotificationProviderClients
|
||||
from app.clients.cloudwatch.aws_cloudwatch import AwsCloudwatchClient
|
||||
from app.clients.document_download import DocumentDownloadClient
|
||||
from app.clients.email.aws_ses import AwsSesClient
|
||||
from app.clients.email.aws_ses_stub import AwsSesStubClient
|
||||
from app.clients.pinpoint.aws_pinpoint import AwsPinpointClient
|
||||
from app.clients.sms.aws_sns import AwsSnsClient
|
||||
from notifications_utils import logging, request_helper
|
||||
from notifications_utils.clients.encryption.encryption_client import Encryption
|
||||
from notifications_utils.clients.redis.redis_client import RedisClient
|
||||
from notifications_utils.clients.zendesk.zendesk_client import ZendeskClient
|
||||
import logging as real_logging # noqa
|
||||
import os # noqa
|
||||
import secrets # noqa
|
||||
import string # noqa
|
||||
import time # noqa
|
||||
import uuid # noqa
|
||||
from contextlib import contextmanager # noqa
|
||||
from threading import Lock # noqa
|
||||
from time import monotonic # noqa
|
||||
|
||||
from celery import Celery, Task, current_task # noqa
|
||||
from flask import ( # noqa
|
||||
current_app,
|
||||
g,
|
||||
has_request_context,
|
||||
jsonify,
|
||||
make_response,
|
||||
request,
|
||||
)
|
||||
from flask.ctx import has_app_context # noqa
|
||||
from flask_migrate import Migrate # noqa
|
||||
from flask_socketio import SocketIO # noqa
|
||||
from flask_sqlalchemy import SQLAlchemy as _SQLAlchemy # noqa
|
||||
from sqlalchemy import event # noqa
|
||||
from werkzeug.exceptions import HTTPException as WerkzeugHTTPException # noqa
|
||||
from werkzeug.local import LocalProxy # noqa
|
||||
|
||||
from app import config # noqa
|
||||
from app.clients import NotificationProviderClients # noqa
|
||||
from app.clients.cloudwatch.aws_cloudwatch import AwsCloudwatchClient # noqa
|
||||
from app.clients.document_download import DocumentDownloadClient # noqa
|
||||
from app.clients.email.aws_ses import AwsSesClient # noqa
|
||||
from app.clients.email.aws_ses_stub import AwsSesStubClient # noqa
|
||||
from app.clients.pinpoint.aws_pinpoint import AwsPinpointClient # noqa
|
||||
from app.clients.sms.aws_sns import AwsSnsClient # noqa
|
||||
from notifications_utils import logging, request_helper # noqa
|
||||
from notifications_utils.clients.encryption.encryption_client import Encryption # noqa
|
||||
from notifications_utils.clients.redis.redis_client import RedisClient # noqa
|
||||
from notifications_utils.clients.zendesk.zendesk_client import ZendeskClient # noqa
|
||||
|
||||
job_cache = {}
|
||||
job_cache_lock = Lock()
|
||||
|
||||
Reference in New Issue
Block a user