Getting Data In

Restrict REST access to a specific index

rmorlen
Splunk Employee
Splunk Employee

We have defined a role:

[role_rest_role]

importRoles = can_delete;user

rtSrchJobsQuota = 0

srchDiskQuota = 0

srchIndexesAllowed = indexA

srchIndexesDefault = indexA

srchJobsQuota = 0

We have created a local user that has this role. The problem is that doing a search using REST the user has access to index=main. Since this user "can_delete" we really want to restrict their access to a specific index.

Any ideas?

Tags (2)
0 Karma

Ayn
Legend

It inherits the user role - doesn't this role have access to index main? If so, you need to remove this inheritance.

rmorlen
Splunk Employee
Splunk Employee

Yes, this appears to have been the problem.

Thanks.

0 Karma

rmorlen
Splunk Employee
Splunk Employee

I suspected this. Trying this today. I will post a response on the results.

Thanks.

0 Karma
Get Updates on the Splunk Community!

Fueling your curiosity with new Splunk ILT and eLearning courses

At Splunk Education, we’re driven by curiosity—both ours and yours! That’s why we’re committed to delivering ...

Splunk AI Assistant for SPL 1.1.0 | Now Personalized to Your Environment for Greater ...

Splunk AI Assistant for SPL has transformed how users interact with Splunk, making it easier than ever to ...

Unleash Unified Security and Observability with Splunk Cloud Platform

     Now Available on Microsoft AzureOn Demand Now Step boldly into the AI revolution with enhanced security ...