opea-project / GenAIExamples

Generative AI Examples is a collection of GenAI examples such as ChatQnA, Copilot, which illustrate the pipeline capabilities of the Open Platform for Enterprise AI (OPEA) project.
https://opea.dev
Apache License 2.0
249 stars 172 forks source link

[Bug]ChatQnA browser interface requires http link, creates a friction point for developers #988

Open arun-gupta opened 3 days ago

arun-gupta commented 3 days ago

Priority

Undecided

OS type

Ubuntu

Hardware type

Xeon-GNR

Installation method

Deploy method

Running nodes

Single Node

What's the version?

latest

Description

Started ChatQnA example in IBM Cloud and trying to access the UI interface. By default, typing the :5173 resolves to https://:5173. Chrome shows the following warning message

image

Developers may not feel very safe about this environment. Either we should secure the example or provide a warning message in the documentation.

Reproduce steps

Follow the steps here to deploy anywhere https://github.com/opea-project/GenAIExamples/tree/main/ChatQnA

Raw log

No response

mkbhanda commented 3 days ago

To support HTTPS we need to deploy a certificate to the UI service which opens up issues a self signed certificate (which will pop up a message like do you trust XYZ certificate) or get a valid certificate signed through a chain by a certificate authority etc.

For development purposes one typically sets up a port forward, so you can reach the UI service without complaints using local host http://localhost:5173/

at which point we should get something like

image