当前位置: 首页 > news >正文

Azure web app has no access to openai private endpoint in virtual network

题意:"Azure Web 应用无法访问虚拟网络中的 OpenAI 私有端点。"

问题背景:

I am trying to host a web application similar to a private ChatGPT instance within a secluded virtual network, ensuring that there's no external internet access.

"我正在尝试在一个隔离的虚拟网络中托管一个类似于私人 ChatGPT 实例的 Web 应用程序,确保没有外部互联网访问。"

I have developed a web application that serves as the interface for the OpenAI API, where the API itself is utilized for ChatGPT functionality. To achieve privacy, I established a virtual network and set up private endpoints for both components. As a result, the Webapp resides at 10.0.0.5, while the OpenAI API is located at 10.0.0.6. Furthermore, I configured a virtual machine (VM) with a Bastion to gain access to my private web application. This setup has been functioning seamlessly thus far. The Chat feature within OpenAI Studio exclusively operates within the confines of my private network (via the Bastion VM), and I can only interact with my web application when connected to the VM. Any attempt to access the web app from the public internet results in a "403 Forbidden" error. Similarly, accessing OpenAI Studio from the public internet prompts the message "Public access is disabled. Please configure private endpoint," which is the intended behavior.

"我开发了一个作为 OpenAI API 界面的 Web 应用程序,API 本身用于 ChatGPT 功能。为了实现隐私,我建立了一个虚拟网络,并为两个组件设置了私有端点。因此,Web 应用位于 10.0.0.5,而 OpenAI API 位于 10.0.0.6。此外,我配置了一台带有 Bastion 的虚拟机 (VM),以便访问我的私有 Web 应用程序。目前,该设置一直运行良好。OpenAI Studio 内的聊天功能仅在我的私有网络(通过 Bastion VM)范围内运行,并且我只能在连接到虚拟机时与我的 Web 应用交互。任何从公共互联网访问该 Web 应用的尝试都会导致 '403 Forbidden' 错误。同样,从公共互联网访问 OpenAI Studio 会提示消息 'Public access is disabled. Please configure private endpoint',这正是预期的行为。"

However, I've encountered an issue: even with internet access restricted and proper access via the virtual network on my VM, attempting to use the question feature in my web application within the private network leads to the same "Public access is disabled. Please configure private endpoint" error. Strangely, the chat functionality in OpenAI Studio works flawlessly. There seems to be a specific obstacle affecting my web app's functionality.

"然而,我遇到了一个问题:即使限制了互联网访问,并且通过虚拟机的虚拟网络正常访问,在私有网络中尝试使用我 Web 应用程序中的提问功能时,仍然会出现相同的 'Public access is disabled. Please configure private endpoint' 错误。奇怪的是,OpenAI Studio 中的聊天功能运行得非常顺利。似乎有某个特定的障碍影响了我 Web 应用程序的功能。"

So i would like to ask if someone has an idea how to solve this.

"所以我想询问是否有人有解决这个问题的想法。"

//EDIT: This is what my private network looks like 

enter image description here

Now i made a few changes and seems like im a step further. Now if im requesting the OpenAI from my WebApp, it tells me "Access denied due to Virtual Network/Firewall rules."

"现在我做了一些更改,似乎有了进一步的进展。现在,当我从我的 Web 应用程序请求 OpenAI 时,它提示我 '由于虚拟网络/防火墙规则,访问被拒绝'。"

问题解决:

The fix was to create another subnet and activate the vnet integration in the web app and link it to the created subnet. 

"解决方法是创建另一个子网,并在 Web 应用程序中启用虚拟网络集成,并将其链接到创建的子网。"

enter image description here

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • AttackGen - AI 网络安全事件响应测试工具,附下载链接
  • 【系统架构师】-论文-2024-2009年系统架构师历年论文题目
  • JavaScript高阶面试题:(第三天)
  • 【HTML】元素的分类(块元素、行内元素、行内块元素)
  • WTL580-电子锁微波雷达应用解决方案,5.8GHz精准人体感知,触发高效交互新体验
  • SysML图例-电动牙刷
  • 多线程面试题-28问
  • keep-alive缓存不了iframe
  • 计算机网络408考研 2022
  • C++ | Leetcode C++题解之第401题二进制手表
  • ‘“node“‘ �����ڲ����ⲿ���Ҳ���ǿ����еij��� ���������ļ���
  • CSS基本布局理解(测试)——WEB开发系列38
  • 基于Qt的串口调试工具
  • 静态和动态类型语言
  • Django笔记一:搭建Django环境与URL路径访问
  • (三)从jvm层面了解线程的启动和停止
  • Android交互
  • express + mock 让前后台并行开发
  • Map集合、散列表、红黑树介绍
  • socket.io+express实现聊天室的思考(三)
  • SpringBoot 实战 (三) | 配置文件详解
  • Vue.js-Day01
  • Webpack入门之遇到的那些坑,系列示例Demo
  • -- 查询加强-- 使用如何where子句进行筛选,% _ like的使用
  • 力扣(LeetCode)56
  • 前端设计模式
  • 设计模式(12)迭代器模式(讲解+应用)
  • 延迟脚本的方式
  • 用mpvue开发微信小程序
  • 阿里云ACE认证之理解CDN技术
  • 东超科技获得千万级Pre-A轮融资,投资方为中科创星 ...
  • ​埃文科技受邀出席2024 “数据要素×”生态大会​
  • ​总结MySQL 的一些知识点:MySQL 选择数据库​
  • #数据结构 笔记一
  • #我与Java虚拟机的故事#连载06:收获颇多的经典之作
  • (1)STL算法之遍历容器
  • (3)nginx 配置(nginx.conf)
  • (CVPRW,2024)可学习的提示:遥感领域小样本语义分割
  • (安卓)跳转应用市场APP详情页的方式
  • (九十四)函数和二维数组
  • (详细版)Vary: Scaling up the Vision Vocabulary for Large Vision-Language Models
  • (一) storm的集群安装与配置
  • (一)Linux+Windows下安装ffmpeg
  • (译) 函数式 JS #1:简介
  • (转)IOS中获取各种文件的目录路径的方法
  • (转)linux自定义开机启动服务和chkconfig使用方法
  • (转)Mysql的优化设置
  • (转载)从 Java 代码到 Java 堆
  • .net core 6 集成和使用 mongodb
  • .net core 使用js,.net core 使用javascript,在.net core项目中怎么使用javascript
  • .Net Core 中间件与过滤器
  • .NET Core跨平台微服务学习资源
  • .net core使用RPC方式进行高效的HTTP服务访问
  • .NET 将混合了多个不同平台(Windows Mac Linux)的文件 目录的路径格式化成同一个平台下的路径
  • .Net 执行Linux下多行shell命令方法