-
Notifications
You must be signed in to change notification settings - Fork 297
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
[BUG] Security plugin APIs error out within the BWC test suite with 400 no handler found for uri
#3053
Comments
PR to let BWC tests run in Github actions - |
When BWC tests fail they put log output into the console, I'm seeing the following line that seems troublesome, this would imply that the security plugin features won't be available, doing more digging
After looking at the configuration settings, (Thanks for paired debugging with me @parasjain1) these test don't actually start up the security plugin at all, the following configuration line needs to be switched from false -> true. security/bwc-test/build.gradle Line 128 in 8063e1b
However, after attempting to startup the node, copying configuration from SecureRestClientBuilder.java, there are still many errors coming in from the cluster:
These errors are happening because the cluster startup check is hardcoded to http, need to make this parameterized
|
I've uploaded the stopping point I have on unblocking these scenarios - main...peternied:security:bwc-ssl @scrawfor99 This might be a good starting point. |
I've created an issue that track the fundamental problem #3056 and resolution. Once that has been addressed we will circle back on this issue to make sure nothing else is coming up. |
[Triage] This is the same topic as #3056, going to close this issue in favor of the actionable item breakdown. |
What is the bug?
When working on #2802 I'm running into the following issue while creating a test role within BWC suite -
2> org.opensearch.client.ResponseException: method [PUT], host [http://127.0.0.1:34017/], URI [_plugins/_security/api/roles/test-dls-fls-role], status line [HTTP/1.1 400 Bad Request]
{"error":"no handler found for uri [_opendistro/_security/api/roles/test-dls-fls-role] and method [PUT]"}
The role is being created as part of a separate test in the same suite. Further, it looks like none of the security plugin APIs are accessible and error out with no handler found for uri. Bulk and Search APIs are working.
How am I running the test suite ?
current=3.0.0.0
previous=2.10.0.0
./gradlew bwcTestSuite -Dtests.security.manager=false -Dbwc.version.previous=$previous -Dbwc.version.next=$current -i
Log file -
security-bwc (1).log
Here's the code on my working branch. It's in an intermediate state with pending changes -
https://github.com/parasjain1/opensearch-security/blob/parasjaz-custom-serialization-bwc/bwc-test/src/test/java/org/opensearch/security/bwc/SecurityBackwardsCompatibilityIT.java#L97
Need help to understand what could be causing it? Have also tried the _opendistro prefix and without the prefix _security/_api/, which also results in the same error.
The text was updated successfully, but these errors were encountered: