Skip to content

Shared Destinations and Channels ​

Give a destination and a notification channel of the MSP to its customers, so each customer backs up to storage it never configures and hears about its runs through a channel it never sets up.

Why ​

A managed service provider keeps one S3 bucket or NAS for the backups of its customers and one mail server for their alerts. The connections and their logins belong to the tenant of the MSP. Its customers, each a tenant of their own, would see nothing of them and would need a destination and a channel of their own.

Sharing closes that gap. The tenant of the MSP shares a destination or a channel with some or all of its customers. A customer names it in its jobs and templates like one of its own, while the address, the login and the settings stay with the MSP. On a shared destination each customer writes to a folder of its own and sees nothing of the others.

Only a tenant that shares with customers shares destinations and channels, the same switch that lets it give databases away. A database connection or a directory source is never shared this way, a database of a shared server goes to a customer through Shared Databases. A tenant never passes on what another tenant shares with it.

Who May Share ​

RightLets you
See what is shared (platform-sharing:read)See the card Shared with tenants in the details of a destination or channel, and the column Shared with in its list
Share with customers (platform-sharing:write)Share and stop sharing, and delete the backups of a customer on a shared destination

Both are rights of the platform in the area Sharing, which a platform group gives and a platform admin holds, never the group of a tenant. They count only in a tenant that shares with customers while there is another tenant, and never in All tenants, so open the tenant of the connection first.

Someone of a platform group of selected tenants shares with those tenants only. Its share dialog lists only them to tick, and the tenants beyond them that get the connection already keep it, whatever is saved. They show as one line Tenants beyond your reach, never by name or number, and so does the card and the column of the list. All tenants is not for them, and a connection shared with all tenants does not change for them, they see its card without Change. Stop sharing with and Delete its backups here show only at the tenants they reach, and the terms, Only encrypted backups or who gets the mail, stay as they are while a tenant beyond their reach gets the connection. A platform group of all tenants and a platform admin reach every tenant.

Share a Destination or a Channel ​

  1. Go to Connections, tab Destinations or Channels
  2. Click Share with tenants in the menu of its row, or Change on the card Shared with tenants in its details
  3. Under Who sees it, pick All tenants, which also gives it to every tenant created later, or Picked tenants and tick them. Each tenant shows how it uses the connection already
  4. Set the terms below
  5. Click Share with and the number of tenants
SettingForWhat it does
Only encrypted backupsA destinationOff by default. A job of a customer writes to it only with a key of its own Vault. A job without a key is refused on save, and a run of one saved before, or one that started before you switched it on, writes nothing to this destination
The recipients each tenant picksAn email channelThe default. The server, the login and the sender stay with you, and each customer names its own addresses
The recipients set hereAn email channelThe mail goes to the recipients of the channel, about the runs of every customer's job that names it, like a support desk of the MSP

A chat or a webhook channel always sends where it is set, its address is the recipient.

Backups private from the provider

The logins of a shared destination stay with you, so your tenant can read every file a customer writes there. A customer that needs its backups private from you encrypts them with a key of its own Vault, which stays in its tenant. Only encrypted backups makes that the rule for every customer of the destination.

Where the Backups Go ​

A customer writes under tenants/ and its tenant id on the destination and sees only that folder. Its Backups page, downloads, restores, retention and integrity checks never reach outside it. Your own backups stay where they are, and your tenant no longer sees tenants/ on that destination.

A job of yours called tenants, or with a name that starts with tenants/, would write into the folder of the customers, so sharing is refused while one writes to the destination, and no job of yours gets such a name while the destination is shared. Rename it first.

A destination is shared the first time only while tenants/ on it is empty, since a file of yours there would read as a backup of the customer whose id names its folder. Move or delete what lies there first.

What You See of Your Customers ​

The card Shared with tenants in the details of the connection says who gets it and on what terms. On a destination a bar shows how the space splits between your tenant and your customers, and each customer has a line with its jobs that write there, its backups, its last backup, the space it takes and, while the destination takes only encrypted backups, its jobs without a key. On a channel each customer shows its jobs and templates that name it. You never see a customer's backups, only how much it keeps.

The numbers come from the storage statistics, which run every hour and after each backup. Every customer shows not measured yet until the destination was counted once, after that a customer that wrote nothing there yet shows 0 backups. The storage limit and the usage spike alerts of the destination count the backups of your customers too, since they fill the same storage. The missing backup alert watches your own backups.

The list of the tab has the column Shared with: Only this tenant, All tenants with how many there are today, or the number of tenants with their names.

Delete its backups here in the menu of a customer's line deletes every backup of that customer on the destination. Its jobs go on writing new ones, and it can no longer download or restore the old ones. It waits while a run of that customer writes to the destination or waits to, and when the storage keeps a file it refuses to delete, it fails and says how many files are left. The folders its backups leave empty go too on a Local Filesystem, SFTP or FTP destination, any other destination keeps them or has no folders.

Taking It Back ​

Stop sharing with and the name of the tenant in the menu of its line stops for one tenant. Change with fewer tenants, or Picked tenants with none ticked and Stop sharing, takes it from several. A tenant that loses the connection loses every link to it:

ConnectionWhat the tenant loses
DestinationIts backups there are deleted, and the destination leaves its jobs
ChannelThe channel leaves its notification templates, its jobs, the channels of its notifications under Administration → Settings → Notifications and its recipients

A confirmation lists each tenant with what it loses first. Stop sharing with on a destination also asks you to type the name of the tenant. While a run of that tenant writes to the destination or waits to, the stop waits, try again once the run finished. The tenants that lose it come off the share before anything is deleted, so no run of theirs starts writing there meanwhile. When the storage stops answering on the way, or keeps a file it refuses to delete, the tenants that lost everything already are off the share and every other one keeps it as it was.

Once nobody gets a destination any more, whatever is left in tenants/, like the backups of a deleted customer the storage did not take at the time, is deleted, and your tenant sees the whole destination again. The same happens when the last customer of a destination is deleted, once its backups there are gone. The backups of a deleted customer go right after its delete without waiting for the storage, and what the storage did not take then goes with the hourly system task Backups page cache, one entry in the server log per folder. A folder of a tenant that no longer gets the destination counts for nobody in the numbers of the card. When the storage does not answer then, or keeps a file it refuses to delete, the destination stays shared with nobody and your tenant still does not see tenants/. Its share dialog says so in amber, and Stop sharing with no tenant picked tries the delete again. Until then the destination counts as shared and cannot be deleted.

  • A shared connection cannot be deleted. Stop sharing it first.
  • Stop sharing with customers on the tenant is refused while it shares a destination or a channel.
  • Deleting the tenant that shares takes its connections from its customers, but leaves their backup files on the storage. It waits while a run of a customer writes to one of its destinations or waits to, and when the delete fails, its customers keep every connection as they had it.

Through the API ​

A hosting panel shares and takes back a connection with an API key that holds Share with customers (platform-sharing:write), made in the tenant of the connection, like the API of Shared Databases. PUT /api/adapters/{id}/share sets who gets the destination or channel {id}:

bash
curl -s -X PUT "${BASE_URL}/api/adapters/${CONNECTION_ID}/share" \
  -H "Authorization: Bearer ${API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{ "allTenants": false, "tenantIds": ["cm2x8k1q40000acme"], "encryptedOnly": true }'
FieldWhat it does
allTenantsEvery other tenant, also those created later
tenantIdsThe tenants that get it while allTenants is false, an empty list for nobody
encryptedOnlyA destination: Only encrypted backups, false when left out
ownRecipientsAn email channel: each tenant picks its recipients, true when left out
confirmedLets a tenant lose the connection, false when left out

The body sets the whole share, so a tenant left out of tenantIds loses the connection. Without confirmed such a change answers 409 with each tenant that would lose it and what it uses of it under data.losing, its jobs, templates, backups and space, and nothing changes. Sent again with "confirmed": true, it goes through like Stop sharing on the page, the backups of those tenants on a destination included. The answer names who got it and what each tenant that lost it lost, as { "success": true, "data": { "gained": ["Acme"], "lost": [{ "name": "Globex", "backups": 3, "jobs": 1 }] } }. A key whose owner reaches only some tenants gives to and takes from those only, the others keep what they have.

GET on the same address needs platform-sharing:read or platform-sharing:write and answers with the share now under settings, each tenant that gets it with its use under uses, and the tenants the owner of the key may share with under candidates. The IDs for tenantIds come from candidates. Every change writes the same audit entries as the page.

What the Customer Sees ​

The lists under Connections show the shared destinations and channels after the customer's own, with the column From, Yours or the tenant that shares it, and Provided among the quick filters after All, Online, Issues and Unused. Backups → Destinations has the quick filters All, Yours and Provided while one is provided. A destination shows Address hidden where its location would be, an email channel the recipients the customer named, and any other channel that the tenant that shares it decides. Its details show Provided by and the name instead of the settings: who keeps the address, the customer's own backups there and whether encryption is required.

The customer cannot edit, test, clone or delete a provided connection, and its health checks belong to the tenant that shares it. The customer sees whether it is Online or Offline and when it was checked last, never why a check failed, how fast it answered or anything of its address or settings. When the storage fails, or the settings of the destination cannot be used, like a saved login of the tenant that shares it that was deleted, the customer reads The destination did not answer. The tenant that shares it can see why., and the log of its runs names nothing of the storage, like its host or bucket. A run then writes nothing to that destination and goes on with its other ones. The destination picker of a job and the channel picker of a notification template list them under Provided by and the name, after Yours, marked address hidden and only encrypted backups. Administration → Settings → Notifications offers the shared channels too, and its Send a test goes through each of them once a minute at most, a minute it shares with the test of the recipients. A shared channel that took a test a moment ago is left out and counts as one that did not take it. The Encryption part of a job warns when a picked destination takes only encrypted backups and no key is picked.

On the Backups page a provided destination shows provided by and the name. The customer browses, downloads and restores its backups there like on its own destination, but cannot Edit alerts, the alerts of the destination are those of the tenant that shares it.

Recipients of a Shared Email Channel ​

While the channel lets each tenant pick, its details offer Recipients and Send a test to whoever holds notifications:write:

  1. Click Recipients
  2. Enter up to 20 addresses under To
  3. Click Save changes

The addresses hold for every job and template of the tenant that names the channel. The mail goes out through the server and from the sender of the tenant that shares it. Send a test sends a sample message to them, once a minute at most. Until the customer names an address, the list shows No recipients yet and nothing goes out.

When Sharing Stops ​

For 14 days the Connections page shows a note above the lists for each destination or channel another tenant stopped sharing: how many backups were deleted and which jobs and templates lost it. A job that lost its only destination needs another one. A notification event that named the channel alone goes to the default channels again. The cross on a note hides it in this browser. The stop also goes into the audit log of the customer, and so does the delete of the tenant that shared it. When a connection shared with all tenants is taken back, only the tenants that used it get the note and the entry: with a job or a template that names it, its notification settings or its recipients, or with backups on the destination.

What a Tenant May Add ​

The platform decides whether a tenant adds database connections, directory sources, destinations and channels of its own, see What It May Add. A customer that adds no destinations itself writes only to those shared with it. Platform → Tenants shows what other tenants share with each tenant in the column Provided to it.

Audit Log ​

Sharing, stopping and deleting a customer's backups go into the audit log of the tenant that shares. A stop also goes into the log of each tenant that lost the connection, with its jobs, templates and deleted backups, after a share with all tenants only of each tenant that used it, and a delete of its backups into its log too. The recipients a customer names go into its own log.

Troubleshooting ​

Share with Tenants Is Missing ​

The tenant shares nothing with customers, there is no other tenant, you lack Share with customers, or you look at All tenants. Database connections and directory sources are never shared this way.

A Customer's Job Cannot Be Saved ​

Backup Storage takes only encrypted backups. Pick a key under Encryption.

The destination asks for Only encrypted backups. Pick a key of the customer's Vault under Encryption.

No Mail Arrives Through a Shared Channel ​

No recipients are named for this channel yet. Add them under Connections, Channels

The customer named no recipients. Add them under Recipients in the details of the channel. The failed message shows in the notification log of the customer.

The Connection Cannot Be Deleted ​

It is shared with other tenants. Stop sharing it first.

Its customers name it in their jobs and templates. Stop sharing it, then delete it.

A Customer Cannot Add a Destination ​

Acme adds no destinations of its own. Default decides that, ask them for one.

The platform switched off Destinations under What it may add for that tenant. Share one with it, or switch the limit on again.

Next Steps ​

  • Tenants - customers, platform groups and what a tenant may add
  • Shared Databases - give single databases of one server to customers
  • Encryption - the keys of the Vault a shared destination may ask for

Released under the GNU General Public License. | Privacy · Legal Notice