Scoped API Keys: Restrict Keys per Endpoint and Index, Stop Sharing Your Master Key
Your master key is root-level and doubles as the initial index password, so handing it to a developer, a contractor or a CI pipeline gives away far more than the task requires. You can now issue additional keys that are scoped to exactly what the holder needs.
01 Create a scoped key
Additional keys are created from Account › API Keys. Each key is restricted to exactly the endpoints you tick and, optionally, to a chosen subset of your indexes. You can also set a date on which the key expires.
02 What you can hand out
- Search-only access to one index. Give a developer what they need to build against, and nothing more.
- Ingestion rights and nothing else. Give your CI pipeline Data Ingestion rights only.
- A key that expires. Hand a contractor a key that stops working on a date you choose.
Keys can be revoked or regenerated instantly, and your master key never has to leave your hands.