Skip to content

Handle uncontrolled data path for MultimodalQnA v1.0 release #845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 19, 2024

Conversation

tileintel
Copy link
Collaborator

@tileintel tileintel commented Sep 19, 2024

Description

Fix code scanning alert for uncontrolled data used in path expression for MultimodalQnA for v1.0 release

Issues

#833

Type of change

List the type of change like below. Please delete options that are not relevant.

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)
  • Others (enhancement, documentation, validation, etc.)

Dependencies

N/A

Tests

N/A

@tileintel
Copy link
Collaborator Author

@chensuyue Can you please check if this PR is able to fix the alert from code scanning?

@tileintel tileintel changed the title Handle uncontrolled data path for MultimodalQnA Handle uncontrolled data path for MultimodalQnA v1.0 release Sep 19, 2024
@chensuyue chensuyue added this to the v1.0 milestone Sep 19, 2024
@chensuyue chensuyue merged commit 872e93e into opea-project:main Sep 19, 2024
14 checks passed
polszewska pushed a commit to polszewska/GenAIExamples that referenced this pull request Sep 20, 2024
wangkl2 pushed a commit to wangkl2/GenAIExamples that referenced this pull request Dec 11, 2024
* Fix typos in BaseStatistics method names

Signed-off-by: Eero Tamminen <[email protected]>

* Add HttpService "inprogress" (pending) request count metrics

Signed-off-by: Eero Tamminen <[email protected]>

* Add E2E Prometheus metrics to ServiceOrchestrator

Signed-off-by: Eero Tamminen <[email protected]>

* Fix: support metrics with multiple ServiceOrchestrator instances

Unlike apps, CI tests create multiple of them.

Signed-off-by: Eero Tamminen <[email protected]>

* Fix: require named MicroService -> HTTPService instances

Creating multiple MicroService()s creates multiple HTTPService()s
which creates multiple Prometheus fastapi instrumentor instances.

While latter handled that fine for ChatQnA and normal HTTP metrics,
that was not the case for its "inprogress" metrics in CI.

Therefore MicroService constructor name argument is now mandatory, so
that it can be used to make "inprogress" metrics for HTTPService
instances unique.

PS. instrumentor requires HTTPService instance specific Starlette
instance, so it cannot be made singleton.

Signed-off-by: Eero Tamminen <[email protected]>

* Fix: update test_token_generator()

Signed-off-by: Eero Tamminen <[email protected]>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Signed-off-by: Eero Tamminen <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.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.

3 participants