You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bloodhound.apache.org by Anze Staric <an...@gmail.com> on 2013/06/18 14:02:37 UTC

Dashboard permissions

While working on integration od FineGrainedPermissions into bhsearch,
I have discovered that Dashboard does not always use permissions the
way it should.

My test setup is the following:
user anonymous has *_VIEW on global, but no product specific
permissions. There are two products DEMO and MNP.

With this setup, anonymous can access global Dashboard, where it sees
all the tickets and all the products. He cannot access product
specific dashboards (no PRODUCT_VIEW permission). Links to
products/tickets in the global dashboard also redirect to login.

If I add PRODUCT_VIEW permission for both products, anonymous can
access the dashboards, but ticket and timeline widgets crash (no
TICKET_VIEW permissions).

FineGrainedPermissions are also not taken into the account.

Should we do something abou this now or should we leave it for 0.7?


Anze

Re: Dashboard permissions

Posted by Anze Staric <an...@gmail.com>.
As far as I can tell, ticket data for global dashboard is provided by
ProductQuery, which executes sql queries using db_direct_query. This
returns results from all products, and aplies no additional security
filters.

I do not see a quick fix that would solve this as applying any
security filtering after the query was executed would mess up the
paging functionality (empty pages, if no tickets on that specific page
are viewable).

On Tue, Jun 18, 2013 at 2:22 PM, Matevž Bradač <ma...@digiverse.si> wrote:
>
> On 18. Jun, 2013, at 14:02, Anze Staric wrote:
>
>> While working on integration od FineGrainedPermissions into bhsearch,
>> I have discovered that Dashboard does not always use permissions the
>> way it should.
>>
>> My test setup is the following:
>> user anonymous has *_VIEW on global, but no product specific
>> permissions. There are two products DEMO and MNP.
>>
>> With this setup, anonymous can access global Dashboard, where it sees
>> all the tickets and all the products. He cannot access product
>> specific dashboards (no PRODUCT_VIEW permission). Links to
>> products/tickets in the global dashboard also redirect to login.
>>
>> If I add PRODUCT_VIEW permission for both products, anonymous can
>> access the dashboards, but ticket and timeline widgets crash (no
>> TICKET_VIEW permissions).
>>
>> FineGrainedPermissions are also not taken into the account.
>>
>> Should we do something abou this now or should we leave it for 0.7?
>
> If it's a quick fix (i.e. no major side-effects) I think it should
> be fixed for the 0.6 release.
>
> --
> matevz
>
>>
>>
>> Anze
>

Re: Dashboard permissions

Posted by Matevž Bradač <ma...@digiverse.si>.
On 18. Jun, 2013, at 14:02, Anze Staric wrote:

> While working on integration od FineGrainedPermissions into bhsearch,
> I have discovered that Dashboard does not always use permissions the
> way it should.
> 
> My test setup is the following:
> user anonymous has *_VIEW on global, but no product specific
> permissions. There are two products DEMO and MNP.
> 
> With this setup, anonymous can access global Dashboard, where it sees
> all the tickets and all the products. He cannot access product
> specific dashboards (no PRODUCT_VIEW permission). Links to
> products/tickets in the global dashboard also redirect to login.
> 
> If I add PRODUCT_VIEW permission for both products, anonymous can
> access the dashboards, but ticket and timeline widgets crash (no
> TICKET_VIEW permissions).
> 
> FineGrainedPermissions are also not taken into the account.
> 
> Should we do something abou this now or should we leave it for 0.7?

If it's a quick fix (i.e. no major side-effects) I think it should
be fixed for the 0.6 release.

--
matevz

> 
> 
> Anze


Re: Dashboard permissions

Posted by Ryan Ollos <ry...@wandisco.com>.
On Tue, Jun 18, 2013 at 5:02 AM, Anze Staric <an...@gmail.com> wrote:

> While working on integration od FineGrainedPermissions into bhsearch,
> I have discovered that Dashboard does not always use permissions the
> way it should.
>
> My test setup is the following:
> user anonymous has *_VIEW on global, but no product specific
> permissions. There are two products DEMO and MNP.
>
> With this setup, anonymous can access global Dashboard, where it sees
> all the tickets and all the products. He cannot access product
> specific dashboards (no PRODUCT_VIEW permission). Links to
> products/tickets in the global dashboard also redirect to login.
>
> If I add PRODUCT_VIEW permission for both products, anonymous can
> access the dashboards, but ticket and timeline widgets crash (no
> TICKET_VIEW permissions).
>
> FineGrainedPermissions are also not taken into the account.
>
> Should we do something abou this now or should we leave it for 0.7?


We should at least have a ticket for this, and we discussed earlier this
week that we would mention it in Known Issues for the Release Notes. Could
you create a ticket? I would do that, but I don't have time to verify at
the moment, and I'd just end up copying your email to a ticket; which could
be entirely adequate anyway, but maybe you'll have more to add.