Bindu icon indicating copy to clipboard operation
Bindu copied to clipboard

feat: Implement mTLS support for agent-to-agent communication

Open dhruvpal102005 opened this issue 9 months ago • 1 comments

Description

This PR implements mutual TLS (mTLS) to secure agent-to-agent communication, resolving #146.

Changes

  • Created a new bindu/security module for certificate generation.
  • Updated settings.py to include SecuritySettings for configuring mTLS and certificate paths.
  • Modified server_runner.py and bindufy.py to enable SSL on the uvicorn server when configured.
  • Updated AsyncHTTPClient to support ssl_context for authenticated client requests.
  • Added verify_mtls.py to generate certificates and verify the setup.

How to test

  1. Run python verify_mtls.py to generate test certificates.
  2. Set SECURITY__MTLS_ENABLED=True and start the agent.
  3. Verify that endpoints require valid client certificates (or allow them if configured as optional).

dhruvpal102005 avatar Feb 14 '26 11:02 dhruvpal102005

please first discuss in the discord. and complete the feature.

raahulrahl avatar Feb 16 '26 07:02 raahulrahl