API Key Read Only Access for Search

Hi

I have created a index and insert data into the database.
Now i want to generaet API key for my application to use but I don’t want to give it all read write access.

I only want read access but when I genreates a key with read only access and try to call this. Search with text - Pinecone Docs

It does not work and error with HTTP response headers: HTTPHeaderDict({'x-pinecone-auth-rejected-reason': 'Access control denied.

When i give the key read write access it work.
Why is that?

I use Python SDK to do this.

My expectaion is that if I have key with read only it should work with the search operation as it does not modify the data in any way. It should error when i try to modify the data.

Thank you

Hi @chalermdej,

Looks like this is a gap with our integrated inference indexes. Querying by text requires creating an embedding, which requires the inference::embed::create permission in our system. This permission is implicitly granted via the Data Plane read/write role, so unfortunately you’ll need to set that for the meantime while we get this sorted. Sorry for the inconvenience!

Silas

1 Like