Skip to content

Conversation

@zane-neo
Copy link
Collaborator

Description

Fix connector regex bypass issue

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: zane-neo <[email protected]>
@zane-neo zane-neo temporarily deployed to ml-commons-cicd-env October 22, 2025 04:56 — with GitHub Actions Inactive
@zane-neo zane-neo had a problem deploying to ml-commons-cicd-env October 22, 2025 04:56 — with GitHub Actions Failure
@zane-neo zane-neo temporarily deployed to ml-commons-cicd-env October 22, 2025 04:56 — with GitHub Actions Inactive
@zane-neo zane-neo temporarily deployed to ml-commons-cicd-env October 22, 2025 06:50 — with GitHub Actions Inactive
@zane-neo zane-neo temporarily deployed to ml-commons-cicd-env October 22, 2025 06:50 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 78.75000% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.13%. Comparing base (eec7179) to head (fe85a6e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...ommon/httpclient/MLValidatableAsyncHttpClient.java 67.44% 11 Missing and 3 partials ⚠️
...engine/algorithms/remote/AwsConnectorExecutor.java 91.66% 1 Missing ⚠️
...e/algorithms/remote/HttpJsonConnectorExecutor.java 90.90% 0 Missing and 1 partial ⚠️
...ine/algorithms/remote/RemoteConnectorExecutor.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #4336      +/-   ##
============================================
- Coverage     80.13%   80.13%   -0.01%     
- Complexity    10171    10175       +4     
============================================
  Files           854      855       +1     
  Lines         44219    44239      +20     
  Branches       5113     5113              
============================================
+ Hits          35437    35449      +12     
- Misses         6631     6641      +10     
+ Partials       2151     2149       -2     
Flag Coverage Δ
ml-commons 80.13% <78.75%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Duration connectionTimeout,
Duration readTimeout,
int maxConnections,
AtomicBoolean connectorPrivateIpEnabled
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use bool here? what's the reason to use atomicBoolean

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree that boolean is better, I tried to change all the occurrence of this connectorPrivateIpEnabled to boolean all the way back to where it's defined, but there's more UTs need to be changed. But changing to boolean is correct direction, let me try again this change.

@zane-neo zane-neo had a problem deploying to ml-commons-cicd-env October 24, 2025 00:49 — with GitHub Actions Failure
@zane-neo zane-neo had a problem deploying to ml-commons-cicd-env October 24, 2025 00:49 — with GitHub Actions Failure
@zane-neo zane-neo temporarily deployed to ml-commons-cicd-env October 24, 2025 00:49 — with GitHub Actions Inactive
@zane-neo zane-neo temporarily deployed to ml-commons-cicd-env October 24, 2025 03:12 — with GitHub Actions Inactive
@zane-neo zane-neo temporarily deployed to ml-commons-cicd-env October 24, 2025 03:12 — with GitHub Actions Inactive
@zane-neo zane-neo temporarily deployed to ml-commons-cicd-env October 24, 2025 03:12 — with GitHub Actions Inactive
@zane-neo zane-neo had a problem deploying to ml-commons-cicd-env October 24, 2025 04:18 — with GitHub Actions Failure
@zane-neo zane-neo merged commit c4ec014 into opensearch-project:main Oct 24, 2025
15 of 21 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 24, 2025
* Fixing regex bypass issue

Signed-off-by: zane-neo <[email protected]>

* fix failure ITs

Signed-off-by: zane-neo <[email protected]>

* Change connector private ip enabled to boolean type

Signed-off-by: zane-neo <[email protected]>

* fix dependency version conflict issue

Signed-off-by: zane-neo <[email protected]>

---------

Signed-off-by: zane-neo <[email protected]>
(cherry picked from commit c4ec014)
zane-neo added a commit that referenced this pull request Oct 24, 2025
* Fixing regex bypass issue



* fix failure ITs



* Change connector private ip enabled to boolean type



* fix dependency version conflict issue



---------


(cherry picked from commit c4ec014)

Signed-off-by: zane-neo <[email protected]>
Co-authored-by: zane-neo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants