Organization keys and tenant keys
Plerion has two kinds of API key, and each works on one part of the API.- Organization API keys authenticate requests to
/v1/organization/*. They resolve the organization from the key itself, so no request names an organization. - Tenant API keys authenticate requests to
/v1/tenant/*, the findings, assets, and alerts endpoints described in the API reference.
Access levels
The access level is chosen when the key is created and cannot be changed afterwards.- read. Read-only. The key can call the organization endpoints that only retrieve data.
- readWrite. Read and write. Required by anything that creates or changes data, including SCIM provisioning.
Steps to create an organization API key
Only Organization Admins can create organization API keys.1
Go to Admin > Security > Organization API keys
Open the organization API keys page in Plerion.
2
Click Create API key
Provide the following:
- Name, between 2 and 64 characters. It is fixed once the key is created, so name it after the tool that will use it, for example Okta SCIM.
- Access level, either read or readWrite.
3
Copy the key
Plerion shows the key once and stores only a hash of it. Copy it straight into your secret manager or the tool that needs it. If you lose it, revoke the key and create another.
Using an organization API key
Send the key as a bearer token in theAuthorization header, over HTTPS. Requests over plain HTTP, and requests without a key, fail.
Revoking a key
Revoke a key fromAdmin > Security > Organization API keys. Revocation takes effect immediately, and any tool still presenting the key starts receiving unauthorized responses.
Plerion also revokes keys automatically. When a user is deprovisioned, whether by an administrator or by your identity provider, every API key that user created is revoked along with their access.
This is why a key used for SCIM provisioning should be created by a break-glass admin. A break-glass admin cannot be deprovisioned by an identity provider, so the credential your identity provider depends on cannot be revoked by the identity provider’s own sync. See Break-glass admins.