Skip to content

Commit

Permalink
Merge branch 'main' into drop_redis
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Schlyter <[email protected]>
  • Loading branch information
jschlyter authored Jan 9, 2025
2 parents bbf56d2 + 713b598 commit b2ae317
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion evrec/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, settings: Settings):
self.logger.warning("Not publishing verified messages")
key_cache = key_cache_from_settings(self.settings.key_cache) if self.settings.key_cache else None
key_resolver = key_resolver_from_client_database(
client_database=str(self.settings.clients_database), key_cache=key_cache
client_database=self.settings.clients_database, key_cache=key_cache
)
self.clients_keyset = EvrecJWKSet(key_resolver=key_resolver)
self.message_validator = MessageValidator()
Expand Down
4 changes: 2 additions & 2 deletions evrec/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Annotated

from pydantic import AnyHttpUrl, BaseModel, DirectoryPath, Field, UrlConstraints
from pydantic import BaseModel, Field, UrlConstraints
from pydantic_core import Url
from pydantic_settings import BaseSettings, PydanticBaseSettingsSource, SettingsConfigDict, TomlConfigSettingsSource

Expand All @@ -21,7 +21,7 @@ class MqttSettings(BaseModel):

class Settings(BaseSettings):
mqtt: MqttSettings = Field(default=MqttSettings())
clients_database: DirectoryPath | AnyHttpUrl = Field(default="clients")
clients_database: str = Field(default="clients")
schema_validation: bool = False
key_cache: KeyCacheSettings | None = None

Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ evrec_server = "evrec.server:main"

[tool.poetry.dependencies]
python = "^3.12"
dnstapir = {git = "https://github.com/dnstapir/python-dnstapir.git", rev = "v1.2.2", extras = ["keymanager", "opentelemetry"]}
dnstapir = {git = "https://github.com/dnstapir/python-dnstapir.git", rev = "v1.2.3", extras = ["keymanager", "opentelemetry"]}
pydantic-settings = "^2.7.0"
aiomqtt = "^2.2.0"
jwcrypto = "^1.5.6"
Expand Down

0 comments on commit b2ae317

Please sign in to comment.