-
Notifications
You must be signed in to change notification settings - Fork 282
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
Updates the folder structure for build artifacts #1749
Updates the folder structure for build artifacts #1749
Conversation
Looks like the classpath isn't resolving correctly:
|
@DarshitChanpura [Edit 4/13] I change my mind! We should do this, but don't make the changes to the tools folder. |
Codecov Report
@@ Coverage Diff @@
## main #1749 +/- ##
============================================
+ Coverage 60.79% 60.82% +0.02%
Complexity 3186 3186
============================================
Files 253 253
Lines 17931 17931
Branches 3204 3204
============================================
+ Hits 10902 10906 +4
+ Misses 5453 5451 -2
+ Partials 1576 1574 -2
Continue to review full report at Codecov.
|
is it intentional that the log4j change is part of this PR? |
707eb1a
to
cc3b8c3
Compare
Nope...I have fixed that change now |
White-source check failed with this check: https://github.com/opensearch-project/security/pull/1749/checks?check_run_id=6027602013 |
I'd bump it in a separate one (did whitesource auto-create a PR for this?) and then rebase this one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DarshitChanpura do you have a before/after layout for the plugin so we can confirm its the expected layout?
There are many more places that need adjustment, from a search in this codebase (which is hard to parse), I see some of the following:
security/tools/install_demo_configuration.sh
Line 420 in 74618eb
echo $SUDO_CMD \""$OPENSEARCH_PLUGINS_DIR/opensearch-security/tools/securityadmin.sh"\" -cd \""$OPENSEARCH_PLUGINS_DIR/opensearch-security/securityconfig"\" -icl -key \""$OPENSEARCH_CONF_DIR/kirk-key.pem"\" -cert \""$OPENSEARCH_CONF_DIR/kirk.pem"\" -cacert \""$OPENSEARCH_CONF_DIR/root-ca.pem"\" -nhnv | $SUDO_CMD tee -a securityadmin_demo.sh > /dev/null |
security/src/test/java/org/opensearch/security/test/helper/cluster/ClusterHelper.java
Line 76 in 54a920b
System.setProperty("security.default_init.dir", new File("./securityconfig").getAbsolutePath()); |
Also, please create an issue in the documentation website to update all the callouts as well, search on that codebase https://github.com/opensearch-project/documentation-website/search?q=securityconfig
We have a folder structure mismatch when following different installation formats:
As you can see in the "after", all the config files moved to a new location under core's I'll update the changes according to scenario 1 and push again. |
The CVE was introduced with this PR (#1735), alongwith two other CVEs. We should create a PR to fix all 3 |
We can do that out of band of this PR, since this PR did not add any new dependencies. We don't need to block this change if we are following up separately. If this PR did add the items that were flagged by whitesource then it would be a case to prevent the PR from merging until it was resolved. |
cc3b8c3
to
7b7c6e5
Compare
…vant changes Signed-off-by: Darshit Chanpura <[email protected]>
7b7c6e5
to
2b789f8
Compare
I agree with @peternied, let's go ahead and merge... I just saw the auto-opened issue by whitesource #1765 |
@cliu123 can I get a second review on this? |
…vant changes (opensearch-project#1749) Signed-off-by: Darshit Chanpura <[email protected]>
Description
Updates the folder structure created during build to follow the suggested structure.
Issues Resolved
Check List
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.