Creating a key
- Open the Gatelit dashboard and navigate to Settings → Service Keys.
- Click New key, give it a descriptive name (e.g.
data-pipeline-prod), and confirm. - Copy the key immediately — it is only shown once.
- Store it in your environment’s secret manager (e.g. as an environment variable or a secrets vault entry).
Using a service key
With GatelitClient
Pass the key ingetToken with scheme: "GatelitKey":
Direct HTTP request
If you’re calling the gateway without the SDK, set theAuthorization header manually:
Shell / cURL
Key rotation
You should rotate service keys periodically or immediately if a key is suspected to have been exposed.1
Create a new key
In the dashboard, go to Settings → Service Keys and create a new key. Give it a distinct name so you can track which services use it.
2
Deploy the new key
Update the environment variable or secret store entry in your service to use the new key value. Deploy your service.
3
Revoke the old key
Once your service is running with the new key and all in-flight requests using the old key have completed, return to the dashboard and revoke the old key.