Bug 1446217
Summary: | User can not see .operations.* index even though he belongs to a group with cluster-admin role | |||
---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Nicolas Nosenzo <nnosenzo> | |
Component: | Logging | Assignee: | Jeff Cantrill <jcantril> | |
Status: | CLOSED ERRATA | QA Contact: | Xia Zhao <xiazhao> | |
Severity: | medium | Docs Contact: | ||
Priority: | high | |||
Version: | 3.4.0 | CC: | anli, aos-bugs, erich, juzhao, mkhan, pportant, rromerom, smunilla, wsun | |
Target Milestone: | --- | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: |
Cause: Improper way of determining a users role as a cluster admin
Consequence:
Fix: Modify the method of determining a user's role.
Result:
|
Story Points: | --- | |
Clone Of: | ||||
: | 1455691 (view as bug list) | Environment: | ||
Last Closed: | 2017-08-10 05:21:25 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | 1439451 | |||
Bug Blocks: | 1455691 |
Description
Nicolas Nosenzo
2017-04-27 13:22:14 UTC
*** Bug 1444816 has been marked as a duplicate of this bug. *** As described in https://bugzilla.redhat.com/show_bug.cgi?id=1444816 - it also affects .all and .operations.* index patterns - it is also reproducible with cluster-reader role - it does not affect the access to other namespaces I think this is related to https://github.com/fabric8io/openshift-elasticsearch-plugin/issues/72 where their is a belief we are determining operations users improperly. Resolved by: https://github.com/openshift/origin-aggregated-logging/pull/403 Tested by: 1. verifying a user (testing-admin) can not see ops index 2. Add new group: oadm groups new testing 3. Add user to group: oadm groups add-users testing testing-admin 4. verifying user still can not see ops index 5. Apply policy to group: oadm policy add-role-to-group cluster-admin testing 6. Verify user can see ops index Commit pushed to master at https://github.com/openshift/origin-aggregated-logging https://github.com/openshift/origin-aggregated-logging/commit/7b8f90c10ba27bd174773587138ebff4d2b16299 bug 1446217. Bump plugin to use SAR to evaluate ops user The verification work was blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1458652 It's fixed. Test steps like this (made some minor changes to comment #6): 1. # oadm groups new testing NAME USERS testing 2. # oadm groups add-users testing testing-admin 3. # oadm policy add-cluster-role-to-group cluster-admin testing 4. # oc describe clusterPolicyBindings :default | grep 'RoleBinding\[cluster-admin\]' -A 5 RoleBinding[cluster-admin]: Role: cluster-admin Users: <none> Groups: system:masters, testing ServiceAccounts: <none> Subjects: <none> 5. Login kibana with user "testing-admin", can see .operations* index and log entries inside from logging UI. Test env: # openshift version openshift v3.6.131 kubernetes v1.6.1+5115d708d7 etcd 3.2.1 ansible version: openshift-ansible-playbooks-3.6.131-1.git.0.d87dfaa.el7.noarch Images tested with: openshift3/logging-elasticsearch c601094a6111 openshift3/logging-kibana c91b7ad68dc7 openshift3/logging-fluentd 82367a1102e0 openshift3/logging-curator b609245a72f9 openshift3/logging-auth-proxy 39164e25543c Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:1716 |