You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by th...@apache.org on 2021/12/02 19:31:07 UTC
[lucene-solr] branch branch_8_11 updated: SOLR-15828: AuthTool (in SolrCLI) should include the config-read, collection-admin-read, core-admin-read, and all permissions in the initial security.json (#438) (#2621)
This is an automated email from the ASF dual-hosted git repository.
thelabdude pushed a commit to branch branch_8_11
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8_11 by this push:
new 46d5edf SOLR-15828: AuthTool (in SolrCLI) should include the config-read, collection-admin-read, core-admin-read, and all permissions in the initial security.json (#438) (#2621)
46d5edf is described below
commit 46d5edf57c8894732a1ac6c5068bb85abb86fa4e
Author: Timothy Potter <th...@gmail.com>
AuthorDate: Thu Dec 2 12:30:52 2021 -0700
SOLR-15828: AuthTool (in SolrCLI) should include the config-read, collection-admin-read, core-admin-read, and all permissions in the initial security.json (#438) (#2621)
---
solr/CHANGES.txt | 3 +++
solr/core/src/java/org/apache/solr/util/SolrCLI.java | 6 +++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 2f0b1d3..029d79b 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -30,6 +30,9 @@ Bug Fixes
* SOLR-15825: Security UI 'hasPermission' check should check if the user has the "all" permission if the requested permission is not defined
to match how the backend works (Timothy Potter)
+* SOLR-15828: AuthTool (in SolrCLI) should include the config-read, collection-admin-read, core-admin-read, and all permissions in the initial security.json
+ to avoid warnings in the security UI (Timothy Potter)
+
================== 8.11.0 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
diff --git a/solr/core/src/java/org/apache/solr/util/SolrCLI.java b/solr/core/src/java/org/apache/solr/util/SolrCLI.java
index 3e54d3e..e8d2188 100755
--- a/solr/core/src/java/org/apache/solr/util/SolrCLI.java
+++ b/solr/core/src/java/org/apache/solr/util/SolrCLI.java
@@ -4422,8 +4422,12 @@ public class SolrCLI {
"\n {\"name\":\"security-edit\", \"role\":\"admin\"}," +
"\n {\"name\":\"security-read\", \"role\":\"admin\"}," +
"\n {\"name\":\"config-edit\", \"role\":\"admin\"}," +
+ "\n {\"name\":\"config-read\", \"role\":\"admin\"}," +
"\n {\"name\":\"collection-admin-edit\", \"role\":\"admin\"}," +
- "\n {\"name\":\"core-admin-edit\", \"role\":\"admin\"}" +
+ "\n {\"name\":\"collection-admin-read\", \"role\":\"admin\"}," +
+ "\n {\"name\":\"core-admin-edit\", \"role\":\"admin\"}," +
+ "\n {\"name\":\"core-admin-read\", \"role\":\"admin\"}," +
+ "\n {\"name\":\"all\", \"role\":\"admin\"}" +
"\n ]," +
"\n \"user-role\":{\"" + username + "\":\"admin\"}" +
"\n }" +