Skip to content

Commit

Permalink
fix(pusher): self signed certificate (#3087)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl authored Jan 22, 2025
1 parent dde17bf commit f648e6c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions keep/api/core/dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@
from fastapi.datastructures import FormData
from pusher import Pusher

from keep.api.core.config import config

logger = logging.getLogger(__name__)


# Just a fake random tenant id
SINGLE_TENANT_UUID = "keep"
SINGLE_TENANT_EMAIL = "admin@keephq"

PUSHER_ROOT_CA = config("PUSHER_ROOT_CA", default=None)

if PUSHER_ROOT_CA:
logger.warning("Patching PUSHER root certificate")
from pusher import requests as pusher_requests

pusher_requests.CERT_PATH = PUSHER_ROOT_CA


async def extract_generic_body(request: Request) -> dict | bytes | FormData:
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "keep"
version = "0.34.9"
version = "0.34.10"
description = "Alerting. for developers, by developers."
authors = ["Keep Alerting LTD"]
packages = [{include = "keep"}]
Expand Down

0 comments on commit f648e6c

Please sign in to comment.