2024-06-20 14:57:18 +00:00
|
|
|
From f45cf9898f2e5a3a4c2b73a9ed84c4a037a85a1e Mon Sep 17 00:00:00 2001
|
|
|
|
From: Matt Leon <ml@mattleon.com>
|
|
|
|
Date: Sat, 1 Jun 2024 23:28:41 -0400
|
|
|
|
Subject: [PATCH] Symlink PAA root certificates to nix store
|
|
|
|
|
|
|
|
---
|
|
|
|
matter_server/server/const.py | 2 ++
|
|
|
|
matter_server/server/helpers/paa_certificates.py | 6 ++++++
|
|
|
|
2 files changed, 8 insertions(+)
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
diff --git a/matter_server/server/const.py b/matter_server/server/const.py
|
|
|
|
index 8cca3cf..43f02f5 100644
|
|
|
|
--- a/matter_server/server/const.py
|
|
|
|
+++ b/matter_server/server/const.py
|
|
|
|
@@ -14,6 +14,8 @@ DATA_MODEL_SCHEMA_VERSION = 6
|
|
|
|
# Keep default location inherited from early version of the Python
|
|
|
|
# bindings.
|
|
|
|
DEFAULT_PAA_ROOT_CERTS_DIR: Final[pathlib.Path] = (
|
|
|
|
+ pathlib.Path("@paacerts@"))
|
|
|
|
+(
|
|
|
|
pathlib.Path(__file__)
|
|
|
|
.parent.resolve()
|
|
|
|
.parent.resolve()
|
|
|
|
diff --git a/matter_server/server/helpers/paa_certificates.py b/matter_server/server/helpers/paa_certificates.py
|
2024-06-20 14:57:18 +00:00
|
|
|
index de60c78..185e54c 100644
|
2024-04-21 15:54:59 +00:00
|
|
|
--- a/matter_server/server/helpers/paa_certificates.py
|
|
|
|
+++ b/matter_server/server/helpers/paa_certificates.py
|
2024-06-20 14:57:18 +00:00
|
|
|
@@ -105,6 +105,8 @@ async def fetch_dcl_certificates(
|
|
|
|
base_url: str,
|
2024-04-21 15:54:59 +00:00
|
|
|
) -> int:
|
|
|
|
"""Fetch DCL PAA Certificates."""
|
|
|
|
+ return 0
|
|
|
|
+
|
|
|
|
fetch_count: int = 0
|
2024-06-20 14:57:18 +00:00
|
|
|
|
|
|
|
try:
|
|
|
|
@@ -151,6 +153,8 @@ async def fetch_dcl_certificates(
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
async def fetch_git_certificates(paa_root_cert_dir: Path) -> int:
|
|
|
|
"""Fetch Git PAA Certificates."""
|
|
|
|
+ return 0
|
|
|
|
+
|
|
|
|
fetch_count = 0
|
|
|
|
LOGGER.info("Fetching the latest PAA root certificates from Git.")
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
@@ -185,6 +189,8 @@ async def fetch_certificates(
|
2024-04-21 15:54:59 +00:00
|
|
|
fetch_production_certificates: bool = True,
|
|
|
|
) -> int:
|
|
|
|
"""Fetch PAA Certificates."""
|
|
|
|
+ return 0
|
|
|
|
+
|
|
|
|
loop = asyncio.get_running_loop()
|
2024-06-20 14:57:18 +00:00
|
|
|
paa_root_cert_dir_version = paa_root_cert_dir / ".version"
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
--
|
|
|
|
2.44.1
|
|
|
|
|