Bug 1326574 - Logging is not restricted to current owner of a project
Summary: Logging is not restricted to current owner of a project
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: chunchen
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-13 06:48 UTC by chunchen
Modified: 2016-09-30 02:16 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-18 12:40:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description chunchen 2016-04-13 06:48:13 UTC
Description of problem:
Logging is not restricted to current owner of a project, it dose not prevent users from being able to see the logs of previously created namespaces that have been deleted by creating a project of the same name.

Version-Release number of selected component (if applicable):
openshift3/logging-deployment    3.2.0   3c4f9330894b
openshift3/logging-elasticsearch 3.2.0   f4c2de05eadf
openshift3/logging-fluentd       3.2.0   af009c973eaa
openshift3/logging-kibana        3.2.0   23bf82ad03f8
openshift3/logging-auth-proxy    3.2.0   363e6ee61a08

How reproducible:
always

Steps to Reproduce:
1. Start OpenShift server

2. User A creates a project and populates logs

3. User A deletes the project

4. User B creates a new project with the same name

5. Check the logs in the project of User B

Actual results:
Can see the logs of previously populated from the project in User A

Expected results:
Should not see the logs of previously populated from the project in User A

Additional info:

Comment 1 Jeff Cantrill 2016-04-14 13:21:26 UTC
Duplicate of: https://bugzilla.redhat.com/show_bug.cgi?id=1316216

*** This bug has been marked as a duplicate of bug 1316216 ***

Comment 2 Luke Meyer 2016-04-14 13:30:13 UTC
That's disappointing. I thought we ported all that to 3.2. Eric, do you have some time to look into this?

Comment 3 Luke Meyer 2016-04-14 13:30:49 UTC
Not a dupe, BTW, the version is different.

Comment 4 ewolinet 2016-04-14 13:47:05 UTC
Yeah, I'll look into this today

Comment 7 Xia Zhao 2016-04-18 09:27:58 UTC
It's fixed. Tested with below 3.2.0 images, logging messages is restricted to the current owner of project, at the same time cluster-admin user is still capable to see logs for deleted namespaces in .all index:

openshift3/logging-elasticsearch    d8c4c2e5ebda
openshift3/logging-deployment    3c4f9330894b
openshift3/logging-fluentd    af009c973eaa
openshift3/logging-kibana    23bf82ad03f8
openshift3/logging-auth-proxy    363e6ee61a08

Comment 8 Luke Meyer 2016-04-18 12:40:29 UTC
Thanks! Never shipped, so closing.


Note You need to log in before you can comment on or make changes to this bug.