microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.44k stars 2.15k forks source link

Add more headers and conversation-id to Defender for AI #858

Closed slreznit closed 2 weeks ago

slreznit commented 1 month ago

Motivation and Context

  1. Add headers that can be added by proxies and load balancers and hold the original client IP. Defender for AI will calculate the original IP using this information
  2. Add original user agent header to allow security admin / SOC to better investigate the security Alerts
  3. Add chat conversation id to allow creating session-based Alerts

Description

Contribution Checklist