Files
insight-updater/backend/pyproject.toml
T
B0rbor4d 8305352497 LDAP/AD-Auth fuer Dashboard: User-Bind gegen insight.local, Zugriff nur fuer Domänen-Admins
- ldap_auth Service: User bindet als user@domain (kein Servicekonto noetig),
  Gruppenpruefung ueber Matching-Rule-In-Chain (verschachtelte Gruppen)
- Login-Route: lokaler User zuerst, dann LDAP-Fallback; LDAP-User werden
  lokal gespiegelt (is_ldap, is_admin, Profildaten aus AD)
- Neue Config: ldap_domain, ldap_admin_group, ldap_timeout_seconds
- ldap3 Dependency, 7 Unit-Tests (ldap3 gemockt), ruff+mypy sauber
- Gruppen-DN verified am DC: CN=Domänen-Admins,CN=Users,DC=insight,DC=local
2026-09-28 22:06:05 +00:00

100 lines
2.2 KiB
TOML

[project]
name = "insight-updater-backend"
version = "0.1.0"
description = "Insight Updater Backend - FastAPI application for server update orchestration"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"fastapi[standard]>=0.109.0",
"uvicorn[standard]>=0.27.0",
"sqlalchemy[asyncio]>=2.0.25",
"alembic>=1.13.0",
"aiosqlite>=0.19.0",
"asyncpg>=0.29.0",
"python-jose[cryptography]>=3.3.0",
"bcrypt>=4.1.0",
"cryptography>=42.0.0",
"pydantic[email]>=2.5.0",
"pydantic-settings>=2.1.0",
"structlog>=24.1.0",
"python-json-logger>=2.0.7",
"python-multipart>=0.0.6",
"httpx>=0.26.0",
"tenacity>=8.2.0",
"ldap3>=2.9.1",
"pytz>=2024.1",
"python-dateutil>=2.8.2",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"httpx>=0.26.0",
"faker>=22.0.0",
"ruff>=0.2.0",
"mypy>=1.8.0",
"pre-commit>=3.6.0",
]
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["app*"]
[tool.uv]
dev-dependencies = [
"pytest>=8.0.0",
"pytest-asyncio>=0.23.0",
"pytest-cov>=4.1.0",
"httpx>=0.26.0",
"faker>=22.0.0",
"ruff>=0.2.0",
"mypy>=1.8.0",
"pre-commit>=3.6.0",
]
[tool.ruff]
target-version = "py311"
line-length = 100
select = ["E", "W", "F", "I", "N", "UP", "B", "C4", "T20"]
ignore = ["E501", "B008"]
per-file-ignores = { "tests/*" = ["S101", "S106"] }
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
no_implicit_optional = true
strict_optional = true
enable_error_code = ["unused-ignore"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
[tool.coverage.run]
source = ["app"]
omit = ["tests/*", "*/migrations/*"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise NotImplementedError",
"if __name__ == \"__main__\":",
]