-
Notifications
You must be signed in to change notification settings - Fork 703
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
SOLR-17584: Remove code and documentation for "trusted" configsets #3272
SOLR-17584: Remove code and documentation for "trusted" configsets #3272
Conversation
solr/core/src/java/org/apache/solr/handler/configsets/CloneConfigSet.java
Outdated
Show resolved
Hide resolved
solr/core/src/java/org/apache/solr/handler/configsets/ConfigSetAPIBase.java
Show resolved
Hide resolved
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.
Two questions, how this looks very much in the right direction!
I triggered the various tests... Can you update the link in the description to have teh JIRA? that is how we link the PR to the JIRA. |
when posting a PR, please update the JIRA link. As to the rest of the PR template; remove it if you aren't going to fill it out (no judgement from me) |
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.
This looks great @abumarjikar! I knew the "trustedness" plumbing needing removing, but I had no idea there was so much.
I left a few comments inline, that I'm curious for feedback on from you and others. But otherwise this looks close to committing IMO!
...odules/scripting/src/java/org/apache/solr/scripting/update/ScriptUpdateProcessorFactory.java
Show resolved
Hide resolved
solr/modules/scripting/src/java/org/apache/solr/scripting/xslt/XSLTUpdateRequestHandler.java
Show resolved
Hide resolved
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.
Wow there's a lot to the notion of a "trusted" configSet. So glad to see you rid us of this maintenance burden!
solr/core/src/test/org/apache/solr/cloud/MockScriptUpdateProcessorFactory.java
Outdated
Show resolved
Hide resolved
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.
Are there any ref-guide updates to do? I would assume so.
At a minimum, an update to major-changes-in-solr-10.adoc with a new "Security" section to explain that there is no longer a distinction of trusted configSets. They are all trusted; Solr should be protected (with authentication, authorization, etc.) so that only trusted users publish them with administrative level permissions.
@dsmiley Changes made in major changes doc file. Please review. |
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.
Thanks! And of course a CHANGES.txt entry under 10.0 "Other" section is needed too.
# Conflicts: # solr/CHANGES.txt
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.
Looks good to me! I'm happy to merge tomorrow, or sooner if @gerlowskija +1s.
# Conflicts: # solr/CHANGES.txt
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.
LGTM - go for it @dsmiley !
Thanks for the PR @abumarjikar. (Not sure if this is your first PR, but if so, congrats!)
Thanks @dsmiley and @gerlowskija for approval. @gerlowskija Thanks for considering the PR and Yes, this is my first PR. One last thing for this PR, can i get the approval for workflows? I could see this is waiting for approval "4 workflows awaiting approval". I guess after this i can merge this PR. |
https://issues.apache.org/jira/browse/SOLR-17584
Description
This PR is targeting to remove use of trustedness check and references for configsets
Solution
The solution involved removing isConfigtrusted method and there references in other class wherever if check for trusted config flag
Tests
Please describe the tests you've developed or run to confirm this patch implements the feature or solves the problem.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.