Set up a team
Give a team its own namespace, admit its people, give them roles and limit what their workstations may name, as an organization administrator.
Give a team its own namespace, admit its people, give them roles and limit what their workstations may name, as an organization administrator. You want this once Ringleader has set up your organization and you are ready to bring a team onto it.
Prerequisites
- Ringleader has created your organization, its domain claim (the OrgDomain) and your administrator access. Organizations and domains says what Ringleader creates.
- You are signed in as an organization administrator, as Sign in to your organization shows.
- The examples use the organization
acmecorp, the domainacme.com, a namespace namedacmecorp-team-aand a person namedbob@acme.com. Replace them with yours.
Create a namespace
Create one namespace for the team, named as Namespace names says. Create it in your organization:
rl namespace create acmecorp-team-a --org acmecorpAdmit people
Anyone whose email address is at your verified domain joins your organization on their first sign-in, with no action from you. Organization membership says how people join.
Ask each person to sign in, as Sign in to your organization shows. For
bob@acme.com, the sign-in matchesacme.comand onboards him intoacmecorp.List your organization’s members:
rl user getThe list includes
bob@acme.com.
Give someone a role
Put a person into the team’s namespace with a role binding. The namespace-member role lets
them change their own workstations and nobody else’s.
Roles and grants
lists the roles.
Save this as
bob-team-a.yaml:apiVersion: core.ringleader.dev/v1 kind: RoleBinding metadata: { name: bob-team-a, namespace: acmecorp-team-a } spec: subjects: ["user:bob@acme.com"] roleRef: { kind: GlobalRole, name: namespace-member }Apply the file:
rl apply -f bob-team-a.yaml
Write a policy
Limit what your organization’s workstations may name with an OrgPolicy. This one allows git
repositories under github.com/acme and nothing else. Namespaces can narrow it and can’t widen
it. Namespace and organization policies
says how policies combine.
Save this as
acme-baseline.yaml:apiVersion: core.ringleader.dev/v1 kind: OrgPolicy metadata: name: acme-baseline spec: org: acmecorp priority: 200 rules: gitSources: default: deny allow: - github.com/acmeApply the file:
rl apply -f acme-baseline.yamlList your organization’s policies:
rl orgpolicy getThe list names
acme-baseline. An apply that names a repository the policy denies is then refused, with a message that names the field and the value.
Troubleshoot
- If
rl namespace createrefuses the name or asks for--org, see Namespace names and Create a namespace. - If a person lands in a personal namespace instead of your organization, see Gates on auto-join and Placement happens once.
Next steps
- Cloud accounts connects your cloud to the organization.
- Workstation and Secret sharing shares a workstation or a Secret with the team.
- Storage buckets sets where the team’s uploads and session files are kept.