Skip to content

fix: expand home paths for mtls auth#72

Merged
alDuncanson merged 1 commit into
mainfrom
fix/mtls-expand-home-paths
May 30, 2026
Merged

fix: expand home paths for mtls auth#72
alDuncanson merged 1 commit into
mainfrom
fix/mtls-expand-home-paths

Conversation

@alDuncanson
Copy link
Copy Markdown
Owner

@alDuncanson alDuncanson commented May 30, 2026

Summary

  • Expand ~ in mTLS client certificate, private key, and optional CA certificate paths before validating and loading them.
  • Keep existing file existence and private-key permission checks in place after expansion.
  • Add regression coverage for ~/... mTLS paths.

Resolves #62.

Verification

  • uv run pytest tests/auth/test_auth.py tests/config/test_servers.py
  • uv run ruff check src/a2a_handler/auth.py tests/auth/test_auth.py
  • uv run ruff format --check src/a2a_handler/auth.py tests/auth/test_auth.py

@alDuncanson alDuncanson linked an issue May 30, 2026 that may be closed by this pull request
@alDuncanson alDuncanson marked this pull request as ready for review May 30, 2026 03:17
@alDuncanson alDuncanson merged commit 5bd6dae into main May 30, 2026
5 checks passed
@alDuncanson alDuncanson deleted the fix/mtls-expand-home-paths branch May 30, 2026 03:20
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.

mtls auth config doesn't process ~/ in paths

1 participant