Adam
Adam

Reputation: 665

Solr "core" permissions

Using Solr Basic auth plugin

How do you set permissions based on the "core"? Only want certain users to be able to access a certain core.

I thought that was the "collection" value, but that isn't it.

Upvotes: 1

Views: 387

Answers (1)

MatsLindh
MatsLindh

Reputation: 52792

From my own experience trying to solve this exact issue a year ago - I'm unable to find the reference where I read this, but:

You can't limit access to a specific core through security.json - if you need to limit which users can access which sets of data, you'll have to use SolrCloud and the collections parameter.

You might be able to limit access by having a reverse proxy in front, but be aware that certain GET parameters could be used to switch the request handler back in the "old days" - but that might have been removed now (and not sure if you could switch cores in the same way).

You also have to use the path parameter to limit operations (i.e. to only allow a user to access /select or /replication etc.).

Upvotes: 3

Related Questions