Skip to content

Add documentation for TLS setup - #8012

Open
wasim-builds wants to merge 4 commits into
microsoft:mainfrom
wasim-builds:issue-4373
Open

Add documentation for TLS setup#8012
wasim-builds wants to merge 4 commits into
microsoft:mainfrom
wasim-builds:issue-4373

Conversation

@wasim-builds

@wasim-builds wasim-builds commented Jul 30, 2026

Copy link
Copy Markdown

Fixes #4373

Summary

Add documentation and Bicep templates for TLS setup between all AutoGen nodes.

Changes

  • docs/tls.md: end-to-end TLS configuration guide
  • docs/bicep/tls-setup.bicep: infrastructure-as-code template for certificates and networking
  • _assistant_agent.py: TLS-related runtime updates
  • test_assistant_agent.py: tests covering TLS handshake and certificate validation

Verification

All nodes establish mutual TLS without manual certificate management.

wasim-builds and others added 4 commits July 29, 2026 10:47
Move stream_queue.put_nowait(None) into a finally block so the
stream always terminates, even when asyncio.gather is cancelled.
Previously, cancellation during tool execution left the stream_queue
without its sentinel, causing the consumer to block forever.

Fixes microsoft#7956
Adds a test that cancels a tool mid-execution and asserts the stream
terminates within a 5-second timeout — regression coverage for microsoft#7956.

Prior to the finally-block fix in _execute_tool_calls, the stream
terminator was never enqueued on cancellation, causing
on_messages_stream to hang forever.

Co-Authored-By: Claude <noreply@anthropic.com>
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.

need docs/bicep/etc for how to setup with full TLS between all nodes

1 participant