# Workstation identity and capabilities

> For the complete documentation index, see [llms.txt](https://docs-stg.ringleader.dev/llms.txt).


> A workstation can act for itself, with an identity of its own and capabilities that say what that identity may do.


A workstation can act for itself, as opposed to you acting on it. Its capabilities say what that identity may do, such as reading its own record, stopping itself or signing in as a service account. This page covers what a workstation's identity holds by default and how to let it sign in as a service account.

## Workstation identity

A workstation has an identity of its own only where whoever runs your Ringleader deployment has turned workstation identity on. It is off by default. Where it is off, the workstation can use none of its capabilities, whatever you declare.

By default, a workstation's own identity can read its own record and nothing more. The `self:power` and `sa:assume` capabilities stay off until an administrator grants them. [Enforced protections](https://docs-stg.ringleader.dev/security/model/enforced-protections/#rules-that-hold-by-default) lists this among the rules that hold by default, and [OWASP lists](https://docs-stg.ringleader.dev/security/model/owasp/) shows it against ASI03, Identity and Privilege Abuse.

## Workstation capabilities

You declare a workstation's capabilities in a WorkstationConfig. [Workstation capabilities](https://docs-stg.ringleader.dev/reference/resources/workstationconfig/#workstation-capabilities) has the table of capabilities with what each allows and its default. It also says how the layers combine: an administrator's layer grants, a member can only narrow, and what a workstation ends up holding never exceeds what its owner may do.

## Service account sign-in

A workstation that holds the `sa:assume` capability may assume a service account at all. Which one is decided by that account's own trust rules, which [Service accounts and CI sign-in](https://docs-stg.ringleader.dev/organizations-teams/policies-identities/service-accounts-ci/) describes.

The trust rule's provider has the `ringleader-workstation` profile. The audience is the deployment's own and is always carried, so a rule needs none. A rule must pin `sub`. Pin `workstation_uid` alongside it, because a workstation name is reclaimable by any member of its namespace once the workstation is deleted.

## Workstation claims

A statement Ringleader signs for a workstation carries two claims, `ringleader_namespace` and `ringleader_principal`, whatever the subject. [Signed statement claims](https://docs-stg.ringleader.dev/security/credentials/credential-providers/#signed-statement-claims) lists them.

## Let a workstation sign in as a service account

Give the workstation the capability, then trust it.

1. In an administrator's WorkstationConfig layer, declare `sa:assume` under `capabilities`, as [Workstation capabilities](https://docs-stg.ringleader.dev/reference/resources/workstationconfig/#workstation-capabilities) describes.
2. Register an `IdentityProvider` with the `ringleader-workstation` profile.
3. Add a trust rule to the service account, with the pins that [Service account sign-in](#service-account-sign-in) names. [Trust a CI provider](https://docs-stg.ringleader.dev/organizations-teams/policies-identities/service-accounts-ci/#trust-a-ci-provider) shows the command.
4. In the workstation, sign in as [Sign in from CI](https://docs-stg.ringleader.dev/organizations-teams/policies-identities/service-accounts-ci/#sign-in-from-ci) describes.

## Next steps

- [Workstation capabilities](https://docs-stg.ringleader.dev/reference/resources/workstationconfig/#workstation-capabilities): the table of capabilities and how layers combine.
- [Service accounts and CI sign-in](https://docs-stg.ringleader.dev/organizations-teams/policies-identities/service-accounts-ci/): the service account the workstation signs in as.
- [Enforced protections](https://docs-stg.ringleader.dev/security/model/enforced-protections/): what a workstation enforces with nothing configured.

