How it works
Cloud connections use OIDC federation. Your cloud trusts your organization’s Ryvn issuer and accepts tokens for one subject,access-identity:<id>, where <id> is the access identity ID.
1
Setup (once)
You run the setup script from the dashboard. It creates the trust in your cloud: a trust for Ryvn’s issuer and an
identity that only this subject can use. Running the script again updates the existing resources in place,
including the provisioning role’s permissions on Google Cloud and Azure.
2
Sign
For each provisioning run, Ryvn signs an OIDC token with the subject
access-identity:<id>. The token is valid for
at most 30 minutes.3
Verify
Your cloud checks the token’s issuer, audience and subject, then returns short-lived credentials for the identity the
script created.
4
Expire
The credentials expire on their own. You can revoke the connection at any time by deleting the identity.
What an environment’s setup script creates
The script names each resource with your Ryvn hub’s resource prefix, shown as<prefix> below, and the first 8
characters of the access identity ID. The setup script shows the exact names. It is safe to run again.
- AWS
- Google Cloud
- Azure
- IAM OIDC identity provider for your organization’s Ryvn issuer, with the audience
sts.amazonaws.com. The script creates it or reuses an existing one, so environments in the same account share it. - IAM role
<prefix>-provisioner-<first 8 of id>, one per environment. Its trust policy allowssts:AssumeRoleWithWebIdentityonly when the token’s subject isaccess-identity:<id>. The role holds the provisioning permissions.
Guarantees
- No static keys. Ryvn stores no access keys, service account keys or client secrets for the connection.
- Scoped to one environment. Your cloud accepts only the environment’s own subject,
access-identity:<id>. - Short-lived credentials. Each provisioning run gets new credentials that expire on their own.
- Revocable by you. Deleting the environment’s identity in your cloud stops Ryvn from getting new credentials.
Revoke a cloud connection
Ryvn also uses the cloud connection to deprovision the environment. To delete an environment, deprovision it first, then remove its identity.ryvn get teardown-script --access-identity-id <id> prints a script that removes the identity. It checks that your CLI
targets the environment’s saved account, project or subscription before it deletes anything. Get the script before you
delete the environment: it is no longer available afterwards.
To remove the identity by hand, sign in to the environment’s account, project or subscription and delete it:
- AWS
- Google Cloud
- Azure