Connections
What a connection is, what it writes, and how it is undone.
A connection links a domain or subdomain to a Sypnia resource and owns the records that make it work:
npx @sypnia/domains connect laespiga.co run:laespiga
npx @sypnia/domains connect laespiga.co mail
npx @sypnia/domains connect cdn.laespiga.co files:public
npx @sypnia/domains connect api.laespiga.co data:laespiga
npx @sypnia/domains connections ls laespiga.coWhat it does
- It asks the product what it needs (addresses, verification tokens, certificate validation).
- It writes those records in the zone, marked as owned by the connection.
- It waits for the product to confirm (the certificate is issued, the domain is verified) and reports
connected.
Owned records
Records written by a connection are labeled with it. Editing one by hand asks for confirmation and marks the connection drifted, which the console shows; connections repair writes them again. disconnect removes exactly those records and nothing else.
When the resource goes away
If the Run app, the Mail domain or the Files bucket is deleted, the connection removes its records the same minute, so no name is left pointing at something that no longer exists, which is how subdomain takeovers happen.