Cloud connections
A connection is one cloud account Mayadyn may act in: an Oracle Cloud (OCI) compartment or a Google Cloud (GCP) project, with a default region. The console lists them under Cloud accounts. Every machine and app belongs to exactly one connection.
You can connect several accounts, in different clouds and regions. AWS and Microsoft Azure are coming soon.
Keyless or key
Section titled “Keyless or key”| Keyless (recommended) | Stored key | |
|---|---|---|
| Console label | “Keyless” | “Stored key” |
| What Mayadyn stores | Configuration only: account, project and compartment ids. No secret. | An OCI API signing key or a GCP service account key, encrypted under your workspace’s key, never shown again. |
| How Mayadyn signs in | Your cloud trusts Mayadyn for this one connection (GCP Workload Identity Federation; an OCI policy plus a compartment tag). | With the stored key. |
| How you revoke access | Delete the trust in your cloud (the policy, tag, provider or binding). | Delete or rotate the key in your cloud; delete the connection. |
| Setup | Create the connection, then run the Trust steps in your cloud. | Create the key and permissions in your cloud first, then paste the key. |
Cloud-specific steps: Connect OCI, Connect GCP.
Add a connection
Section titled “Add a connection”You need the admin scope (Admin or Owner).
Console
- Open Cloud accounts and choose Connect account.
- Pick the provider: Oracle Cloud or Google Cloud.
- Enter a Name: lowercase letters, digits and dashes, up to 63
characters, e.g.
oci-jeddah. Names are unique in a workspace. - Pick the Default region. Machines and apps on this connection use it unless you pick another region.
- Pick the Sign-in method (Keyless or Stored key) and fill in the Credentials fields for that provider and method.
- Choose Connect account.
Mayadyn checks the connection at once. For a keyless connection, the Trust steps dialog opens next, since your cloud does not trust Mayadyn yet: run the steps, then choose Check.
CLI
Put the credentials in a JSON file (see the provider pages for the fields), then:
mayadyn connections add --provider oci --name oci-jeddah --region me-jeddah-1 --credentials creds.json# keyless: show the trust steps, run them in your cloud, then checkmayadyn connections setup oci-jeddahmayadyn connections verify oci-jeddah--credentials - reads the JSON from standard input. --project <slug or id> puts the connection in a project other than default.
A connection whose check fails is still saved, with status Needs fixing, so you can fix the account and check again.
Check (verify) a connection
Section titled “Check (verify) a connection”Checking calls your cloud with the connection’s credentials and records the
result. It needs the write scope.
- Console: Cloud accounts → Check on the connection. Last checked shows when it last ran.
- CLI:
mayadyn connections verify <name>.
A check confirms that Mayadyn can sign in and that the default region is available to the account (OCI: the tenancy is subscribed to it; GCP: the project can use it). On OCI it also lists instances in the compartment, to prove compute access there. A keyless OCI check also confirms the compartment’s tag names this connection.
Statuses
Section titled “Statuses”| Status | Console | Meaning | What to do |
|---|---|---|---|
active |
Working | The last check passed. | Nothing. |
error |
Needs fixing | The last check failed. The reason (code and message) is shown under the status. | Fix what the message says, then Check again. See Troubleshooting. |
pending |
Not checked | Not checked yet. | Check it. |
While a connection is Needs fixing, Mayadyn refuses to create machines or
apps on it (connection_unhealthy: “The cloud account needs fixing before
use.”).
The CLI’s connections list shows the same values under STATUS, with
AUTH (key or keyless) and ACCOUNT (the OCI tenancy OCID or GCP
project id).
Sync a connection
Section titled “Sync a connection”Sync refreshes the inventory from the cloud. It adds machines made outside
Mayadyn and removes entries for machines that no longer exist. Machines with
work in progress are left alone. Sync runs as an operation
and needs the write scope.
Sync reads the connection’s default region and every region where the inventory already has its machines.
- Console: Machines → Sync syncs every connection in the workspace.
- CLI:
mayadyn connections sync <name> [--wait].
See the trust steps again
Section titled “See the trust steps again”For a keyless connection, choose Trust steps on it in Cloud accounts,
or run mayadyn connections setup <name>. The steps show the issuer, the
trusted subject and, for GCP, the audience, with copy buttons.
The steps exist only for keyless connections. For a connection with a
stored key, setup is refused: replace its credentials with keyless ones
first.
Replace credentials (for example, key to keyless)
Section titled “Replace credentials (for example, key to keyless)”Replacing swaps a connection’s credentials in place. The connection keeps
its id, name, machines and apps; only the credentials change, and are then
checked. Needs the admin scope.
Console
- On the connection in Cloud accounts, choose Replace credentials.
- Pick the Sign-in method and fill in the new credentials.
- Choose Replace credentials.
If you switched to keyless and the check does not pass yet, the Trust steps dialog opens. Run them, then Check.
CLI
mayadyn connections credentials oci-jeddah --credentials keyless.jsonmayadyn connections setup oci-jeddah # keyless: run these stepsmayadyn connections verify oci-jeddahMoving from a stored key to keyless
Section titled “Moving from a stored key to keyless”- Replace the credentials with keyless ones for the same account (same OCI tenancy, same GCP project).
- Run the trust steps and check the connection until it is Working.
- Delete the old key in your cloud (the OCI API key or the GCP service account key). Mayadyn no longer holds it after the replacement.
Pointing a connection at another account
Section titled “Pointing a connection at another account”New credentials for a different account (another tenancy or project) are
refused while the connection still has machines or apps (conflict). Delete
its machines and apps first, or add a new connection for the other account.
Every replacement is recorded in the audit log.
Delete a connection
Section titled “Delete a connection”Deleting removes the connection and its stored credentials from Mayadyn. Machines in the cloud are not affected.
- Needs both the
destroyandadminscopes (Admin or Owner). - Refused while the inventory still holds machines on it (
conflict): “Delete its VMs first (or sync, if they were deleted in the cloud).” - Refused while the connection still has apps, deployed or not
(
conflict): delete the connection’s apps first.
Console: Cloud accounts → Delete on the connection, then confirm.
CLI: mayadyn connections delete <name>.
Deleting a keyless connection does not remove the trust from your cloud. To make sure Mayadyn can no longer act there, also remove the policy and tag (OCI) or the provider and binding (GCP); see Security model.
Networking Mayadyn creates
Section titled “Networking Mayadyn creates”Mayadyn hides networking. The first machine on a connection creates:
- OCI: in each region, a VCN named
mayadyn(10.77.0.0/16) with an internet gateway and a public subnet (10.77.0.0/24). Its default security list allows SSH. App hosts also get a network security group that opens ports 80 and 443. - GCP: a network named
mayadynand a firewall rulemayadyn-allow-sshthat allows TCP 22 from anywhere to machines Mayadyn creates. App hosts also get a rule per port (80, 443) from anywhere.
Later machines reuse them.