Every Opensolr index is protected with HTTP authentication. New indexes get a default username and password, and you can change both at any time.
01 · The defaults on a new index
| Field | Value |
|---|---|
| Username | opensolr |
| Password | Your account Automation REST API key, from your Opensolr dashboard. |
02 · Changing them
Open your index control panel
Click the index name in your index list.
Go to the Security tab
It is in the left-hand menu of the index control panel.
Set a username and password
The change applies immediately, to every request handler.
03 · What happens when you rotate the API key
New indexes take the new key
Any index created after the rotation uses the new API key as its default password.
Existing indexes keep the old one
Regenerating the API key does not change the password of indexes that already exist. If you want those updated, change them by hand in the Security tab.
Rotate with intent
A rotation is only useful if you also update the places that still hold the old value: your application configuration, your CMS, your scripts.