Filter permissions question

Is there an reason why only the owner of the filter can edit the filter?

 

From a security standpoint it adds an additional 3 steps per filter to edit in the event that an user accidentally share a filter with the Global ("Everyone") setting.  An admin cannot just edit the filter to change it to a compliant share setting, without changing the owner, then find the dashboard, edit the permission, then change the owner back to the original owner.  Filters are prone to being accidentally shared externally because the first share option is "Everyone" which is the Global setting.  We are able to setup monitoring via unauthenticated queries against the vulnerable manage filter endpoint https://site.atlassian.net/secure/ManageFilters.jspa?filterView=search

 

Using the API as a proof of concept on a filter that I own it's possible to do a 

GET /rest/api/2/filter/{id}/permission

If JSON.parse(response.body)[0]['type'] == 'Global'

DELETE /rest/api/2/filter/{id}/permission/JSON.parse(respones.body)[0]['id']

POST /rest/api/2/filter/{id}/permission request.body={type: 'group', groupname: 'jira-administrators'}.to_json

end

 

However when the owner of the filter is not an admin this does not work.  I'm trying to get over 100 filters corrected on a weekly basis since the users do not understand that sharing the filter with everyone results in the filters being exposed to the world.  

 

1 answer

Are you concerned that users will get access to data they should not see if filters are shared accidently?

If so, then maybe you should look are your permission schemes. The filters will respect these and even if the filter is available to someone they will need to have the correct permissions to allow them to view the data.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,387 views 20 13
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you