Revoke a key when you stop using it, or as soon as you think someone else has seen it. pkgplane gives you two ways:
| Disable | Delete | |
|---|---|---|
| The key stops working | At once | At once |
| You can undo it | Yes, enable it again | No |
| The key stays in your list | Yes, marked Disabled | No |
Disable a key you might need back, or one you want to keep a record of. Delete a key that leaked.
Disable or delete the key
- Open API keys.
- Find the key by its name, or by the first characters of the key in the Key column.
- Open its actions menu, select Disable or Delete, then confirm with Disable key or Delete key.
Check it no longer works
curl -i -H "Authorization: Bearer $PKGPLANE_API_KEY" https://pkgplane.richaisolutions.com/api/meThe API now answers 401 Unauthorized.
If the key leaked, also replace it: create a new key and update the secret wherever the old one was stored.