For the complete documentation index, see llms.txt. A markdown version of this page is at /reference/resources/cloudidentity/index.md.

CloudIdentity

A CloudIdentity tells Ringleader how to sign in to your cloud and what shape a namespace's cloud workstations take.

A CloudIdentity tells Ringleader how to sign in to your cloud to create the cloud workstations of its namespace. It answers two separate questions: how Ringleader authenticates to your cloud, and what shape the workstations it governs take.

apiVersion: core.ringleader.dev/v1
kind: CloudIdentity

It is admin-managed: only a namespace admin can author or change one.

Cloud identities explains how Ringleader selects an identity and what each part of one does. This page lists its fields and its status.

Credential paths

Set spec.cloudAccountRef to select a CloudAccount for per-organization federation. Ringleader presents a short-lived signed assertion to your cloud. If the account or the setup in your cloud is missing, the workstation cannot start.

spec.credentialRef is retired

A CloudIdentity once supported a keyed path: spec.credentialRef named a Secret holding a long-lived cloud credential, a service-account JSON key on Google Cloud or an application client secret on Azure.

Both are gone. Ringleader now stores no cloud credential at rest on any path. Per-organization federation replaced them: Ringleader signs a short-lived assertion and your own cloud checks it.

If your file still has spec.credentialRef, rl apply rejects it and names spec.cloudAccountRef as its replacement:

apply cloudidentity/azure: validation failed: spec.credentialRef: is no longer a
CloudIdentity field: ringleader stores no cloud credential at rest (the GCP
service-account key and the Azure keyed client secret are both retired). Use
spec.cloudAccountRef to name a CloudAccount. The per-org OIDC federation mints a
short-lived assertion exchanged at your own cloud's trust, with no stored secret.

Replace it with a CloudAccount and a cloudAccountRef; see Keyless cloud access.

Per-organization federation

This is the path to prefer for new cloud accounts. Keyless cloud access explains how Ringleader signs in with no stored key.

Set spec.cloudAccountRef to name a cluster-scoped CloudAccount, which only an organization administrator can write and which holds which cloud identity to use. The CloudIdentity points at it by name:

apiVersion: core.ringleader.dev/v1
kind: CloudIdentity
metadata:
  name: gcp
  namespace: dev
spec:
  provider: gcp
  selector:
    matchLabels:
      cloud: gcp
  # Which cloud identity to sign in as lives on the CloudAccount.
  # The workstation's shape (project, zone, machineType) stays here.
  cloudAccountRef: acme-gcp
  defaultProviderConfig:
    gcp:
      project: acme-dev
      zone: us-east4-c
      machineType: c4-standard-4

Azure is the same shape: the account carries the Entra application and the tenant, the identity carries the placement:

apiVersion: core.ringleader.dev/v1
kind: CloudIdentity
metadata:
  name: azure
  namespace: dev
spec:
  provider: azure
  selector:
    matchLabels:
      cloud: azure
  cloudAccountRef: acme-azure
  defaultProviderConfig:
    azure:
      subscriptionId: 8d6e5f6e-5090-4221-9eae-cc956b238590
      resourceGroup: acme-workstations
      location: eastus
      subnetId: /subscriptions/…/virtualNetworks/acme-vnet/subnets/workstations
      publicIp: true

AWS is the same shape: the account carries the IAM role to assume, the identity carries the placement:

apiVersion: core.ringleader.dev/v1
kind: CloudIdentity
metadata:
  name: aws
  namespace: dev
spec:
  provider: aws
  selector:
    matchLabels:
      cloud: aws
  cloudAccountRef: acme-aws
  defaultProviderConfig:
    aws:
      region: us-east-1
      instanceType: m6i.xlarge
      subnetId: subnet-0abc123
      securityGroupIds: [sg-0abc123]
      assignPublicIp: true

The account must belong to the same organization as this CloudIdentity’s namespace. If the account lists allowedNamespaces, the list must include the namespace. Otherwise Ringleader refuses the CloudIdentity when you apply it. Namespaces that may use an account says how the list works, and Keyless cloud access says what to create in your cloud.

Spec fields

FieldTypeDescription
providerstringRequired. The backend the credentials target (gcp, azure, aws).
priorityintPrecedence when several match (default 0); higher wins.
selector.matchLabelsmapWhich workstations this identity builds. Empty matches all.
requireUseboolUse this identity only for workstations whose owner holds the use right on it. Default false. See Restricted cloud identities.
cloudAccountRefstringThe cluster-scoped CloudAccount that specifies which cloud identity this uses. Selects per-organization federation.
serviceAccount.accountIdstringDeclares a runtime identity that the workstations run as (see Cloud runtime identities). On GCP it is the service account ID. On Azure it is the name of the user-assigned managed identity. On AWS it names both the IAM role and its instance profile. The name is 1 to 64 characters, each a letter, a digit or one of _+=,.@-. An AWS runtime identity also needs spec.aws.workstationIdentityPath on the CloudAccount, and a workstation that uses it fails to build without one.
serviceAccount.displayNamestringA human label for the runtime identity. On GCP it is the service account’s displayName. On Azure it is advisory. On AWS it is the IAM role’s description, at most 1,000 characters, set only when Ringleader creates the role.
serviceAccount.rolesarrayThe role grants for the runtime identity, as an exact set of {role, resource} pairs. On GCP, role is roles/… or a custom role ID, granted at project scope. On Azure, role is a built-in role name, a GUID or a role definition ID. Its resource is an ARM scope ID, and an empty one means the identity’s resource group. On AWS, role is the ARN of a managed policy in the aws partition. It is either one AWS manages (arn:aws:iam::aws:policy/…) or one in your account (arn:aws:iam::<account ID>:policy/…). Leave resource out on AWS: Ringleader refuses an AWS entry that sets it.
serviceAccount.autoCreateboolDoes Ringleader create the runtime identity? Default true. Set false when your own infrastructure-as-code pre-creates it: Ringleader then only adopts it, and an absent one fails the workstation loudly rather than being conjured without the grants it exists to carry.
serviceAccount.autoDeleteboolDoes Ringleader delete the runtime identity when the last workstation using it goes away? Default true. Set false so tearing down a workstation cannot destroy an identity your own tooling declares, and with it any grants attached elsewhere. It is independent of autoCreate, so auto-create plus never-delete is a legitimate combination.
defaultProviderConfigobjectPer-provider providerConfig defaults (workstation overrides these).
overrideProviderConfigobjectPer-provider providerConfig forced by policy (wins over the workstation).
subnetstringPlaces every workstation this CloudIdentity selects in this subnet. It also claims the subnet for this namespace, so no other namespace in the organization can place a workstation in it. See Subnet claims.
providerConfigKeys.allow[]stringKeys of this identity’s own provider that a namespace member may set on the workstations it selects, beyond the ones a member may always set. See Placement delegation.
providerConfigKeys.deny[]stringKeys of this identity’s own provider that nobody may set on the workstations it selects, a holder of the cloudconfig right included. It wins over allow.

Everything a CloudIdentity declares is validated when you apply it, not when a workstation later tries to boot. This object is a template for other people’s workstations, so a typo in it would otherwise surface as an opaque cloud error on someone else’s workstation.

Status fields

FieldTypeDescription
validboolWhether the identity is well-formed and usable.
messagestringOn success, the provider; on failure, why the identity is not usable (plus advisory warnings).
lastVerifiedstringRFC3339 timestamp of the last verification (re-checked on a periodic cadence, and immediately after you edit the spec).

Next steps