Skip to main content

Service Account Reference

A service account is a machine identity: a CI pipeline, a script or another system that calls the platform API without a person signing in. It is granted roles exactly like a user.

Not for the clients of your APIs

Applications that call the APIs you expose are declared as OAuth clients of an Auth Gateway; service accounts do not apply to them.

Rationale: Why programs get their own identity.

Credential Types​

A service account can authenticate in three ways. They differ in what is stored where and in how the credential is presented; an account may have several at once.

A program presents one of the three credentials of its service account: a client secret or a signed JWT is exchanged for an access token, a personal access token is sent as is; the platform API then checks the roles of the account

CredentialUseShown
Client ID and Client SecretOAuth 2.0 client credentials grantThe secret, once, at creation
Personal Access TokensA bearer token sent as is in the Authorization headerOnce, at creation; with an expiration
JWT KeysA private key used to sign a JWT assertion exchanged for a tokenDownloaded once, at creation; with an expiration

Rationale: Choosing a service account credential.

Revocation and Account States​

Each credential can be revoked on its own, and the whole account can be suspended. Revocation is immediate: the next call with that credential is refused.

ActionEffect
Remove Client SecretThe client credentials grant stops working at once
Delete Token, Delete KeyThat credential stops working at once
DeactivateEvery credential of the app is refused; reversible
DeletePermanent. The name of the app must be typed to confirm