Skip to content

mluker/secure-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Secure Bot

This scenario demonstrates how to secure a Microsoft Teams channel bot's web app using Azure Private Link and Azure Private Endpoint. It also shows how to enable communication between Teams client channels and the bot via an IP exposed through an Azure Firewall instance.

Architecture

architecture

Deployed resources

deployed resources

References

The python bot code examples referenced in this doc do not work. The configs and code are not up to date, there are missing variables.

Code pulled from the following example

Networking

Debugging

Firewall

Notes

  • Had to add a firewall rule (application rule) to allow login.botframework.com

  • A valid certificate and custom domain is required to deploy the bot. The bot is deployed to an Azure App Service and the custom domain is used to secure the bot with a valid certificate.

    # get a cert from letsencrypt
    certbot certonly --manual --preferred-challenges=dns -d <bot.foo.net>
    
    # convert cert to format for azure app service
    openssl pkcs12 -inkey privkey.pem -in cert.pem -export -out bot.pfx

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published