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

Grant

The fields of a Grant, and the cloudconfig right that lets an admin delegate placing one workstation.

A Grant opens one object to specific subjects, and this page lists its fields. Roles and grants explains ownership and what a Grant is for, and Roles and RoleBindings lists the built-in roles and how a role reaches you. Workstation and Secret sharing shows how to create one with rl workstation share and rl secret share.

Grant spec

apiVersion: core.ringleader.dev/v1
kind: Grant
metadata:
  name: my-box-to-alice
  namespace: dev
spec:
  target:
    kind: Workstation       # Workstation | Secret | WorkstationPool | CloudIdentity
    matchName: my-box       # exact name, or "*" for every object of the kind
  subjects:
    - user:alice@acme.com   # beneficiaries
  rights:
    - ssh                   # ssh or cloudconfig (Workstation) | access (Secret) | lease (WorkstationPool) | use (CloudIdentity)
FieldTypeDescription
target.kindstringRequired. Workstation, Secret, WorkstationPool or CloudIdentity.
target.matchNamestringExact object name, or * for every object of the kind. (Exactly one of matchName/matchLabels.)
target.matchLabelsmapSelect potentially many targets by label.
subjects[]stringBeneficiaries (user:…, sa:…, workload:…, node:…; system:authenticated is admin-only).
rights[]stringssh or cloudconfig for a Workstation, access for a Secret, lease for a WorkstationPool, use for a CloudIdentity.
enabledboolMaster switch. Absent means enabled; false pauses the Grant, so it gives nobody anything until you turn it back on. rl share disable and rl share enable flip it.

Every Grant carries a scope that Ringleader sets from the rights you held when you created it. Grant scope says what the owner and admin scopes reach.

A cloudconfig Grant lets its beneficiary set any placement or network key on one cloud workstation. Placement delegation says how to write one and what bounds it. A use Grant lets its beneficiary build workstations through a CloudIdentity that sets requireUse, which Restricted cloud identities covers.

Next steps