Skip to content

feat: use pydantic-settings for server host/port configuration#45

Open
fbordallo wants to merge 1 commit intomasterfrom
feature/pydantic-settings-config
Open

feat: use pydantic-settings for server host/port configuration#45
fbordallo wants to merge 1 commit intomasterfrom
feature/pydantic-settings-config

Conversation

@fbordallo
Copy link

@fbordallo fbordallo commented Mar 3, 2026

Summary

  • Replaces hardcoded 0.0.0.0 host with a safer 127.0.0.1 default
  • Introduces POLICY_SERVER_HOST and POLICY_SERVER_PORT env vars for runtime configuration
  • Adds pydantic-settings==2.13.1 dependency and a new src/config.py with a Settings class using the POLICY_SERVER_ prefix

Fixes #44

Replaces hardcoded 0.0.0.0 host with 127.0.0.1 default and introduces
POLICY_SERVER_HOST and POLICY_SERVER_PORT env vars via a pydantic-settings
Settings class in src/config.py.
@fbordallo fbordallo requested a review from SkPhilipp March 3, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Server should only allow local connections by default

2 participants