Security model
This page explains, for people who use Mayadyn, what Mayadyn stores, how workspaces are kept apart, and how you stay in control of your cloud.
What Mayadyn stores about your cloud
Section titled “What Mayadyn stores about your cloud”| Connection type | Stored | Not stored |
|---|---|---|
| Keyless OCI | Tenancy OCID, compartment OCID, default region. | Any key or secret. |
| Keyless GCP | Project ID, Workload Identity provider name, service account email, default region. | Any key or secret. |
| OCI API key | The key fields you entered (tenancy, user, fingerprint, private key, optional passphrase and compartment), encrypted. | — |
| GCP service account key | The key file’s fields Mayadyn uses (project, client email, private key and its id), encrypted. | Any token endpoint from the file: Mayadyn always uses Google’s. |
Keyless connections accept only their documented fields, so a key cannot be stored with them by mistake.
Stored keys are encrypted and write-only
Section titled “Stored keys are encrypted and write-only”- Each workspace has its own data key. Credentials are encrypted with it, and bound to their workspace and connection: a copy moved elsewhere does not decrypt.
- Credentials are write-only. No screen, API call, CLI command or agent tool returns them, not even to admins. To change them, replace them.
- They are decrypted only at the moment Mayadyn opens a connection to act in your cloud, and every such use is recorded in the audit log.
App secrets
Section titled “App secrets”App environment variables, registry credentials and git tokens are encrypted under the workspace’s key, never shown again, and delivered only to that app’s own host. A git token is sent only to the git host you saved it for. Anyone who can deploy can run code that reads the environment, and anyone who can read the app can read its logs: do not log secrets.
Your account
Section titled “Your account”- Passwords are stored as hashes.
- Two-step sign-in secrets are encrypted.
- API tokens and email confirmation links are stored only as hashes. A token is shown once, at creation.
- Workspace single sign-on client secrets are encrypted and never shown again.
Keyless connections: how trust works
Section titled “Keyless connections: how trust works”A keyless connection holds no secret. Instead, your cloud trusts Mayadyn
for that one connection, identified by its subject
mayadyn:<workspace id>:<connection id>.
- GCP: Mayadyn is an OpenID issuer (
https://id.mayadyn.com). It signs a short-lived token for the connection’s subject only when it opens that connection. Your Workload Identity provider accepts only that subject, so Google itself enforces that no other workspace can use your trust. - OCI: your policy admits Mayadyn’s platform identity into one
compartment. Because the policy trusts Mayadyn as a whole, Mayadyn checks
before acting (at least every 5 minutes) that the compartment’s
mayadyn-connectiontag names this exact connection. Mayadyn has no permission to change tags, so only people in your tenancy can set it.
Details: Connect OCI, Connect GCP.
Isolation between workspaces
Section titled “Isolation between workspaces”- Every workspace’s data is separated in Mayadyn’s database itself, not only
in application code. A request always runs inside one workspace and cannot
read another’s rows, even by a known id: ids from another workspace return
not_found. - API tokens belong to one workspace (and optionally one project).
- Invitations grant nothing until accepted, so nobody can be placed in a workspace, or have their cloud keys entered there, without consent.
- Each app runs on its own machine. Apps of one workspace share the workspace’s HTTPS certificate, so one of your apps could serve as another of your apps; apps of different workspaces share nothing.
- A workspace single sign-on session reaches only that workspace.
Revoke Mayadyn’s access to your cloud
Section titled “Revoke Mayadyn’s access to your cloud”You can cut Mayadyn off at any time, from your cloud, without Mayadyn’s help.
| Connection | To revoke |
|---|---|
| Keyless OCI | Delete the policy, or remove the mayadyn-connection tag from the compartment. Effective within 5 minutes. |
| Keyless GCP | Delete the Workload Identity provider, or remove the roles/iam.workloadIdentityUser binding for the subject. |
| OCI API key | Delete the API key from the OCI user (or the user). |
| GCP service account key | Delete the key in IAM → Service accounts → Keys. |
Then, in Mayadyn, delete the connection (after its machines and apps) so the stored configuration or key is removed too. Deleting a connection in Mayadyn alone does not remove your cloud’s trust in Mayadyn; do both.
After revoking, the connection’s checks fail (connection_not_bound or
auth_failed) and Mayadyn can no longer act in that account. Machines and
apps already running in your cloud keep running; they are yours.
Audit of credential use
Section titled “Audit of credential use”Every time Mayadyn opens a connection, it writes a “Used account
credentials” entry (connection.secret_used) with the purpose, in the same
step. Compare it with your cloud’s own audit logs to see exactly what
Mayadyn did and why. See Audit log.
What Mayadyn creates in your cloud
Section titled “What Mayadyn creates in your cloud”- Machines you ask for, labelled
managed-byandmayadyn-operation. - A network per region (OCI) or per project (GCP) named
mayadyn, with SSH open to the internet, and for app hosts ports 80 and 443. See Networking Mayadyn creates. - For each app, one host machine with only ports 80 and 443 open. A small Mayadyn agent on it pulls its instructions from Mayadyn; there is no inbound control port. The app’s container cannot reach the cloud’s metadata service.
Good practice
Section titled “Good practice”- Prefer keyless connections.
- Turn on two-step sign-in, and require it for your workspace.
- Give tokens the least scope they need, with an expiry. Avoid
adminfor agents. - On OCI, restrict who may update the connected compartment’s tags.
- Review the audit log, especially “Used account credentials”.