User story #3695
closedUser story #3000: Build a REST API to manage all actions in Rudder (CRUD on Nodes, Groups, Directives and Rules)
API Authentication
Description
The API will be likely used by script, so we decided to split authentication for API from the one for Rudder user.
In place, we are going to use a dedicated admin page in Rudder, where we will be able to create new API authentication principals.
A principal is composed of:
- an ID (used for example as the actor in event logs)
- a token (a big random alpha-numeric secret, used for authentication)
- a description (to explain the intent for that principal, like "archiving script will use that token)
Principal can be added, what generate a token for them. They can be deleted, to. A token can be regenerated and revoked (principal marked as "can not authenticate").
From an API point of view, authentication is given ONLY with the authentication token (which must be uniq among all principals) in a header, so that the API call will look like:
curl -H "X-API-Token: the_token" https://rudder/api/...
Authentication token will be stored in some persistent media (likely to be our LDAP server).
Updated by François ARMAND over 11 years ago
- Subject changed from Authentication to API Authentication
- Status changed from 8 to In progress
The authentication part is in place, remains little things like building an UI to create token and actually storing them in LDAP.
Updated by François ARMAND over 11 years ago
- Assignee changed from François ARMAND to Vincent MEMBRÉ
Updated by François ARMAND over 11 years ago
- Status changed from In progress to 12
- Assignee changed from Vincent MEMBRÉ to François ARMAND
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from 12 to Pending release
- % Done changed from 0 to 100
Applied in changeset 4f037f2290eb8cc005dea614d373a60031ff5915.
Updated by Nicolas PERRON over 11 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE over 9 years ago
- Tracker changed from Enhancement to User story