Skip to content

Conversation

@sarthakaggarwal97
Copy link
Contributor

Signed-off-by: Sarthak Aggarwal sarthagg@amazon.com
(cherry picked from commit d6da55c)

Description

Backport of #1219

Related Issues

Resolves #1075

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.

@sarthakaggarwal97
Copy link
Contributor Author

sarthakaggarwal97 commented Aug 21, 2024

@cwperks the PR is failing for the security test workflow with the exception

2> REPRODUCE WITH: ./gradlew ':integTest' --tests "org.opensearch.indexmanagement.RollupSecurityBehaviorIT.test failed rollup execution user missing index access" -Dtests.seed=E6CFC6A1437B6DA5 -Dtests.security.manager=false -Dtests.locale=th -Dtests.timezone=Chile/EasterIsland -Druntime.java=21
  2> org.opensearch.client.ResponseException: method [POST], host [https://127.0.0.1:37885/], URI [.opendistro-ism-config/_update/basic_stats_check_runner?wait_for_active_shards=1&refresh=true], status line [HTTP/1.1 403 Forbidden]
    {"error":{"root_cause":[{"type":"security_exception","reason":"no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"}],"type":"security_exception","reason":"no permissions for [] and User [name=admin, backend_roles=[admin], requestedTenant=null]"},"status":403}
        at __randomizedtesting.SeedInfo.seed([E6CFC6A1437B6DA5:1CC18BAA02958754]:0)
        at app//org.opensearch.client.RestClient.convertResponse(RestClient.java:431)
        at app//org.opensearch.client.RestClient.performRequest(RestClient.java:370)
        at app//org.opensearch.client.RestClient.performRequest(RestClient.java:345)
        at app//org.opensearch.indexmanagement.TestHelpersKt.makeRequest(TestHelpers.kt:110)
        at app//org.opensearch.indexmanagement.TestHelpersKt.makeRequest$default(TestHelpers.kt:95)
        at app//org.opensearch.indexmanagement.IndexManagementRestTestCase.updateRollupStartTime(IndexManagementRestTestCase.kt:222)
        at app//org.opensearch.indexmanagement.IndexManagementRestTestCase.updateRollupStartTime$default(IndexManagementRestTestCase.kt:199)
        at app//org.opensearch.indexmanagement.RollupSecurityBehaviorIT.test failed rollup execution user missing index access(RollupSecurityBehaviorIT.kt:175)

Can you please help here? What could be a possible fix?
Also, this issue wouldn't be specific to this PR as it is unrelated to security changes.

Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
(cherry picked from commit d6da55c)
Signed-off-by: Sarthak Aggarwal <sarthagg@amazon.com>
@vikasvb90 vikasvb90 merged commit 434d620 into opensearch-project:2.x Aug 23, 2024
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.

2 participants