Migrate a cloud identity from impersonation
Move a CloudIdentity off the retired spec.impersonation block and onto a CloudAccount, so Ringleader can issue credentials for your cloud again.
Move a CloudIdentity off the retired spec.impersonation block and onto a CloudAccount, so Ringleader can issue credentials for your cloud again. Use this when a CloudIdentity still has a spec.impersonation block, because Ringleader cannot issue credentials through it.
Prerequisites
- Ringleader installed, with
rlsigned in to the organization that owns the namespace. - The organization administrator role, to create the CloudAccount. A namespace administrator can then edit the CloudIdentity.
- The two values that Ringleader gives you for onboarding, as Keyless cloud access describes.
- The examples use the CloudAccount
my-gcp-account, a CloudIdentity namedgcpand the namespacedev. Replace them with yours.
Find the identities to migrate
A CloudIdentity that needs this guide has a spec.impersonation block. Print each CloudIdentity in a namespace and look for the block:
- Run
rl cloudidentity get <name> -n <namespace> -o yaml, replacing the name and the namespace. - Look for
spec.impersonationin the output. A CloudIdentity without the block needs nothing from this guide.
Create the CloudAccount
Set up keyless access in your cloud and create a CloudAccount, with the Onboard guide for your cloud:
Follow the guide for your cloud, up to and including its Create the CloudAccount section:
Note the CloudAccount’s name.
Replace the block with a CloudAccount reference
Edit the CloudIdentity so that spec.cloudAccountRef names the CloudAccount, in place of spec.impersonation:
In the CloudIdentity’s file, delete the
spec.impersonationblock.Add
cloudAccountRefunderspec, naming the CloudAccount:spec: provider: gcp cloudAccountRef: my-gcp-accountApply the file with
rl apply -f.
The CloudAccount must belong to the same organization as the CloudIdentity’s namespace. Ringleader refuses the apply if it does not.
Check that Ringleader can sign in
Wait for the CloudIdentity to report that it works, here gcp in the namespace dev:
rl cloudidentity wait gcp -n dev --for Ready --timeout 2mThe command returns when the CloudIdentity reports status.valid: true.
Troubleshoot
If the apply is refused, check that the CloudAccount exists and belongs to the same organization as the CloudIdentity’s namespace. An account that belongs to another organization and an account that does not exist give the same message.
If the wait times out, or a workstation fails to create, see Fix a sign-in that your cloud refuses.
Next steps
- Cloud accounts and reachability explains what the CloudAccount records and how a workstation reaches it.
- CloudIdentity lists the fields of the CloudIdentity you edited.