Bindu
Bindu copied to clipboard
feat: Implement mTLS support for agent-to-agent communication
Description
This PR implements mutual TLS (mTLS) to secure agent-to-agent communication, resolving #146.
Changes
- Created a new
bindu/securitymodule for certificate generation. - Updated
settings.pyto includeSecuritySettingsfor configuring mTLS and certificate paths. - Modified
server_runner.pyandbindufy.pyto enable SSL on the uvicorn server when configured. - Updated
AsyncHTTPClientto supportssl_contextfor authenticated client requests. - Added
verify_mtls.pyto generate certificates and verify the setup.
How to test
- Run
python verify_mtls.pyto generate test certificates. - Set
SECURITY__MTLS_ENABLED=Trueand start the agent. - Verify that endpoints require valid client certificates (or allow them if configured as optional).
please first discuss in the discord. and complete the feature.