Set up a multi-tenant environment
Applies to Deep Security on-premise software installations and AWS Marketplace with the BYOL license option only
The multi-tenancy feature in Deep Security lets you create separate management environments within a single Deep Security Manager. It allows tenants to each have their own settings and policies and to monitor their own events. This can be useful if you want to create separate staging and production environments or if you need to create separate environments for different business units in your organization. You can also use multi-tenancy to provision Deep Security to customers in a service model.
In this article:
- Multi-tenancy requirements
- Enable multi-tenancy
- Create a tenant
- Multi-tenancy tips
- Managing tenants
- Set up a multi-tenant environment
- Usage monitoring
- Configuring database user accounts
- Supporting tenants
- Multi-Tenant with Deep Security Virtual Appliance
- Technical details
You cannot set up multi-tenancy with:
- Any other license options for Deep Security from AWS Marketplace
- Deep Security as a Service
You will need a separate activation code for multi-tenancy, and multi-tenancy has some extra database requirements in addition to the usual Deep Security Manager requirements. For details, see “Installing a Database for Deep Security (Multi-Tenancy Requirements)” in the Deep Security Manager Install Guide.
We also recommend that you set up a multi-node Deep Security Manager (more than one Deep Security Manager installation, all using the same database) for scalability, and an SMTP server.
The Deep Security Manager Install Guide contains other useful information about multi-tenancy, including a description of Deep Security Manager from a tenant’s perspective. When you enable multi-tenancy, your current installation of Deep Security Manager becomes the primary tenant (t0) and has special privileges, including the ability to create tenants. When you create tenants, they will be restricted from using certain features and will not see the UI for those features in Deep Security Manager. For example, tenants cannot create other tenants.
Multi-tenancy in Deep Security Manager operates similarly to a hypervisor. Multiple tenants exist within the same Deep Security Manager installation but their data is highly isolated. All Manager nodes process GUI, Heartbeat or Job requests for any Tenant. For the background processing, each Tenant is assigned a Manager Node that takes care of job queuing, maintenance and other background tasks. The assigned Manager node is automatically rebalanced when manager nodes are added or taken offline. The majority of each Tenant's data is stored in a separated database. This database may co-exist on the same database server as other Tenants, or it can be isolated onto its own database server. In all cases, some data only exists in the primary database (the one Deep Security Manager was installed with). When multiple database servers are available, Tenants are created on the database with the least amount of load.
|Managed computers||100,000||1,000,000 or more|
|Deep Security Manager Nodes||1-5||1-50|
|Database Servers||1 (With or without replication)||1-100|
Once you enable multi-tenancy, you (as the "Primary Tenant") retain all of the capabilities of a regular installation of Deep Security Manager. However, the Tenants you subsequently create can have their access to Deep Security functionality restricted to varying degrees, based on how you configure the system for them.
The segmentation of each Tenant's data into a database provides additional benefits:
- Data destruction: Deleting a Tenant removes all traces of that Tenant's data (Supported in the product)
- Backup: Each Tenant's data can be subject to different backup policies. This may be useful for something like tenancy being used for staging and production where the staging environment requires less stringent backups. (Backups are the responsibility of the administrator setting up Deep Security Manager.)
- Balancing: The potential for future re-balancing to maintain an even load on all database servers
Important: Once you enable multi-tenancy, you cannot disable it or remove the primary tenant.
- In the Deep Security Manager, go to Administration > System Settings > Advanced. In the Multi-Tenant Options area, click Enable Multi-Tenancy.
- The Multi-Tenant Configuration wizard appears. Enter your multi-tenancy activation code and click Next.
- Choose the license mode that you want to use:
Inherit Licensing from Primary Tenant: This option gives all tenants the same licenses that you (the primary tenant) have. This option is recommended if you are using multi-tenancy in a staging environment, or if you intend to set up tenancies for separate departments within your organization.
Per Tenant Licensing: This option is recommended if you are offering Deep Security as a service. With this configuration, you can use the Deep Security API to provide a license when you create a tenant, or the tenant can enter a license when they sign in to the Deep Security Manager for the first time.
- Click Next. When the wizard closes, you’ll be able to see a new Administration > System Settings > Tenants page, where you can configure multi-tenancy options. For information about the options on that page, click Help in the upper-right corner of Deep Security Manager.
Once Multi-Tenant mode is enabled, Tenants can be managed from the Tenants page that now appears in the Administration section.
- In the Deep Security Manager, go to Administration > Tenants and click New.
- The New Tenant wizard appears. Enter a Tenant Account Name. The account name can be anything except "Primary", which is reserved for the primary tenant.
- Enter an Email Address that will be used as a point of contact for the tenant.
- Select the Locale. The Locale determines the language of the Deep Security Manager user interface for the tenant.
- Select a Time Zone. All tenant-related events will be shown to the tenant users in the time zone that you specify here.
- If your Deep Security installation is using more than one database, you will have the option to let Deep Security automatically select a database server on which to store the new tenant account ("Automatic -- No Preference") or you can specify a particular server.
Note: This option will not appear if you have only one database. Database servers that are no longer accepting new tenants will not appear in the list.
- Enter a Username for the first user of the new tenant account.
- Select one of the three password options:
No Email: The tenant’s first user's username and password are defined here and no emails are sent.
Email Confirmation Link: You set the tenant’s first user's password. However, the account is not active until the user clicks a link in a confirmation email that will be sent.
Email Generated Password: This allows you to generate a tenant without specifying the password.
All three options are available via the REST API. The confirmation option provides a suitable method for developing public registration. A CAPTCHA is recommended to ensure that the tenant creator is a human not an automated bot.
The email confirmation ensures that the email provided belongs to the user before they can access the account.
- Click Next to finish with the wizard and create the tenant. It can take between 30 seconds to four minutes to create the new tenant database and populate it with data and sample policies.
Examples of messages sent to Tenants
Email Confirmation Link: Account Confirmation Request
Welcome to Deep Security! To begin using your account, click the following confirmation URL. You can then access the console using your chosen password.
Account Name: AnyCo
Click the following URL to activate your account:
Email Generated Password
First email : Account and Username Notification
Welcome to Deep Security! A new account has been created for you. Your password will be generated and provided in a separate email.
Account Name: AnyCo
You can access Deep Security using the following URL:
Second email: Password Notification
This is the automatically generated password for your Deep Security account. Your Account Name, Username, and a link to access Deep Security will follow in a separate email.
Reconnaissance IP list
In a multi-tenant environment, tenants may need to add the Deep Security Manager IP address to the “Ignore Reconnaissance IP” list found in Policies > Common Objects > Lists > IP Lists. This is to avoid getting a "Reconnaissance Detected: Network or Port Scan” warning.
Use multiple database servers
Multi-tenancy relies on using multiple databases (if you are using Microsoft SQL) or multiple users (if you are using Oracle). To scale further, you can connect Deep Security Manager to multiple database servers and automatically distribute the new tenants across the available set of database servers. To configure additional databases to use, go to: Administration > System Settings > Database Servers.
Use the chargeback feature to monitor tenant usage
Deep Security Manager records data about tenant usage. You can access this information in the Tenant Protection Activity widget on the Dashboard, in the Tenant Properties window's Statistics tab, and in the Chargeback report.
You can customize what information gets displayed in these locations. You can also use the information to monitor the usage of the overall Deep Security system and look for indicators of abnormal activity. For example, if a single tenant experiences a spike in security event activity, it may be under attack.
Tenant pending deletion state
Tenants can be deleted but the process is not immediate. Deep Security ensures that all the tenant-related jobs are finished before the records are deleted. The longest job runs every week, so the tenant will be in the “pending deletion” state for approximately seven days before the database is removed.
Multi-tenant options under System Settings
Consider these options on the Administration > System Settings > Tenants page:
Allow Tenants to use the Relays in my "Default Relay Group" (for unassigned Relays): Gives tenants automatic access to relay-enabled Agents set up in the primary tenant. This saves tenants the effort of setting up dedicated relay-enabled Agents for security updates.
Allow Tenants to use the "Backup" Scheduled Task: In most cases, backups should be managed by the database administrator and this option should be left unchecked.
Allow Tenants to use the “Run Script” Scheduled task: Scripts present a potentially dangerous level of access to the system; however, the risk can be mitigated because scripts have to be installed on the Deep Security Manager using file-system access.
The Tenants page (Administration > Tenants) displays the list of all Tenants. A Tenant can be in any of the following States:
- Created: Created but activation email not yet sent to the Tenant User
- Confirmation Required: Created but the activation link in the confirmation email sent to the Tenant User has not yet be clicked. (You can manually override this state.)
- Active: Fully online and managed
- Suspended: No longer accepting sign ins.
- Pending Deletion: Tenants can be deleted, however the process is not immediate. The Tenant will be in the pending deletion state for approximately 7 days before the database is removed.
- Database Upgrade Failed: For Tenants that failed the upgrade path. The Database Upgrade button can be used to resolve this situation
Double-click on a Tenant to view the Tenant's Properties window.
The Locale, Time zone and State of the Tenant can be altered. Be aware that changing the time zone and locale does not affect existing Tenant Users. It will only affect new Users in that Tenancy and Events and other parts of the UI that are not User-specific.
The Database Name indicates the name of the database used by this tenancy. The server the database is running on can be accessed via the hyperlink.
The Modules tab provides options for protection module visibility. The selected visibility can be used to tune which modules are visible for which Tenants. By default all unlicensed modules are hidden. You can change this by deselecting Always Hide Unlicensed Modules. Alternatively, selected modules can be shown on a per-Tenant basis.
If you select Inherit License from Primary Tenant, all features that you (the Primary Tenant) are licensed for will be visible to all Tenants. This means that even if you deselect Always Hide Unlicensed Modules all unlicensed modules will be hidden if you select this inheritance option.
If you are using the "Per Tenant" licensing, only the licensed modules for each Tenant will be visible by default.
If you are evaluating Deep Security in a test environment and want to see what a full multi-tenancy installation looks like, you can enable Multi-Tenancy Demo Mode. When in Demo Mode, the Manager populates its database with simulated Tenants, computers, Events, Alerts, and other data. Initially, seven days worth of data is generated but new data is generated on an ongoing basis to keep the Manager's Dashboard, Reports and Events pages populated with data.
The Statistics tab shows information for the current Tenant including database size, jobs processed, logins, security events and system events. The spark line show the last 24 hours at a glance.
The Agent Activation tab displays a command that can be run from the Agent install directory of this Tenant's computers which will activate the agent on the computer so that the Tenant can assign Policies and perform other configuration procedures from the Deep Security Manager.
When Multi-tenancy is enabled, the sign-in page has an additional Account Name text field.
Tenants are required to enter their account name in addition to their username and password. The account name allows Tenants to have overlapping usernames. (For example, if multiple Tenants synchronize with the same Active Directory server).
Some features in the Deep Security Manager UI are not available to Tenant Users. The following areas are hidden for Tenants:
- Manager Nodes Widget
- Multi-Tenant Widgets
- Administration > System Information
- Administration > Licenses (If Inherit option selected)
- Administration > Manager Nodes
- Administration > Tenants
- Administration > System Settings:
- Tenant Tab
- Security Tab > Sign In Message
- Updates Tab > Setting for Allowing Tenants to use Relays from the Primary Tenant
- Advanced Tab > Load Balancers
- Advanced Tab > Pluggable Section
- Some of the help content not applicable to Tenants
- Some reports not applicable to Tenants
- Other features based on the Multi-Tenant Options (discussed later)
- Some Alert Types will also be hidden from Tenants:
- Heartbeat Server Failed
- Low Disk Space
- Manager Offline
- Manager Time Out Of Sync
- Newer Version of Deep Security Manager available
- Number of Computers Exceeds Database Limit
- And when inherited licensing is enabled any of the license-related alerts
It is also important to note that Tenants cannot see any of the Multi-Tenant features of the primary Tenant or any data from any other Tenant. In addition, certain APIs are restricted since they are only usable with Primary Tenant rights (such as creating other Tenants).
For more information on what is and is not available to Tenant Users, see Multi-tenant settings.
All Tenants have the ability to use Role-Based Access Control with multiple user accounts to further sub-divide access. Additionally, they can use Active Directory integration for users to delegate the authentication to the domain. The Tenant Account Name is still required for any Tenant authentications.
Agent-initiated activation is enabled by default for all Tenants.
Tenants can see the arguments required for agent-initiated activation by clicking Administration > Updates > Software > Local, selecting the Agent software and then clicking the Generate Deployment Scripts button. For example, the script for Agent-Initiated Activation on a Windows machine might look like this:
dsa_control -a dsm://manageraddress:4120/ "tenantID:7156CF5A-D130-29F4-5FE1-8AFD12E0EC02" "tenantPassword:98785384-3966-B729-1418-3E2A7197D0D5"
Tenants are not able to access manager diagnostic packages due to the sensitivity of the data contained within the packages. Tenants can still generate agent diagnostics by opening the Computer Editor and choosing Agent Diagnostics on the Actions tab of the Overview page.
Deep Security Manager records data about Tenant usage. This information is displayed in the Tenant Protection Activity widget on the Dashboard, the Tenant Properties window's Statistics tab, and the chargeback report. This information can also be accessed through the Status Monitoring REST API, which can be enabled or disabled by going to Administration > System Settings > Advanced > Status Monitoring API.
This chargeback (or viewback) information can be customized to determine what attributes are included in the record. This configuration is designed to accommodate various charging models that may be required in service provider environments. For enterprises, this may be useful to determine the usage by each business unit.
Multi-tenant Dashboard / Reporting
When multi-tenancy is enabled, Primary Tenant Users have access to the following additional Dashboard widgets for monitoring Tenant activity:
- Tenant Database Usage
- Tenant Job Activity
- Tenant Protection Activity
- Tenant Security Event Activity
- Tenant Sign-In Activity
- Tenant System Event Activity
The same information is available on the Administration > Tenants page (some in optional columns) and on the Statistics tab of a Tenant's Properties window.
This information provides the ability to monitor the usage of the overall system and look for indicators of abnormal activity. For example, if a single Tenant experiences a spike in Security Event Activity, they may be under attack.
More information is available in the Chargeback report (in the Events & Reports section). This report details protection hours, the current database sizes, and the number of computers (activated and non-activated) for each Tenant.
SQL Server and Oracle use different terms for database concepts described below.
|Process where multiple Tenants execute||Database Server||Database|
|One Tenant's set of data||Database||Tablespace/User|
The following section uses the SQL Server terms for both SQL Server and Oracle.
Since multi-tenancy requires the ability for the software to create databases, the dbcreator role is required on SQL Server. For example:
For the user role of the primary Tenant, it is important to assign DB owner to the main database:
If desired, you can further refine the rights to include only the ability to modify the schema and access the data.
With the dbcreator role, the databases created by the account will automatically be owned by the same user. For example, here are the properties for the user after the first Tenant has been created:
To create the first account on a secondary database server, only the dbcreator server role is required. No user mapping has to be defined.
Multi-tenancy in Oracle is similar to SQL Server but with a few important differences. Where SQL Server has a single user account per database server, Oracle uses one user account per Tenant. The user that Deep Security was installed with maps to the primary Tenant. That user can be granted permission to allocate additional users and tablespaces.
If multi-tenancy is enabled, the following Oracle permissions must be assigned:
Tenants are created as users with long random passwords and given the following rights:
For secondary Oracle servers, the first user account (a bootstrap user account) must be created. This user will have an essentially empty tablespace. The configuration is identical to the primary user account.
Deep Security Manager includes a number of REST APIs for:
- Enabling Multi-Tenancy
- Managing Tenants
- Accessing Monitoring Data
- Accessing Chargeback (Protection Activity) Data
- Managing Secondary Database Servers
In addition the legacy SOAP API includes a new authenticate method that accepts the Tenant Account Name as a third parameter.
For additional information on the REST APIs please see the REST API documentation.
Upgrade is unchanged from previous versions. The installer is executed and detects an existing installation. It will offer an upgrade option. If upgrade is selected the installer first informs other nodes to shutdown and then begins the process of upgrading.
The primary Tenant is upgraded first, followed by the Tenants in parallel (5 at a time). Once the installer finishes, the same installer package should be executed on the rest of the Manager nodes.
In the event of a problem during the upgrade of a Tenant, the Tenant's State (on the Administration > Tenants page) will appear as Database Upgrade Failed (offline). The Tenants interface can be used to force the upgrade process. If forcing the upgrade does not work please contact support.
In certain cases, a Primary Tenant may require access to a Tenant's user interface. The Tenants list and Tenant properties pages provide an option to "Authenticate As" a given Tenant, granting them immediate read-only access.
Users are logged in as a special account on the Tenant using the prefix "support_". For example, if Primary Tenant user jdoe logs on as a Tenant, an account is created called "support_jdoe" with the "Full Access" role. The user is deleted when the support user times out or signs out of the account.
The Tenant can see this user account created, sign in, sign out and deleted along with any other actions in the System events.
Users in the primary Tenant also have additional diagnostic tools available to them:
- The Administration > System Information page contains additional information about Tenant memory usage and the state of threads. This may be used directly or helpful to Trend Micro support.
server0.logon the disk of the Manager nodes contains additional information on the name of the Tenant (and the user if applicable) that caused the log. This can be helpful in determining the source of issues.
In some cases, Tenants will require custom adjustments not available in the GUI. This usually comes at the request of Trend Micro support. The command line utility to alter these settings accepts the argument:
-Tenantname "account name"
to direct the setting change or other command line action at a specific Tenant. If omitted, the action is on the primary Tenant.
By default, multi-node Manager provides the address of all Manager nodes to all agents and virtual appliances. The agents and virtual appliances use the list of addresses to randomly select a node to contact and continue to try the rest of the list until no nodes can be reached (or are all busy). If it can't reach any nodes, it waits until the next heartbeat and tries again. This works very well in environments where the number of Manager nodes is fixed and avoids having to configure a load balancer in front of the Manager nodes for availability and scalability.
In Multi-Tenant environments, it may be desirable to add and remove Manager nodes on demand (perhaps using auto-scaling features of cloud environments). In this case, adding and removing Managers would cause an update of every agent and virtual appliance in the environment. To avoid this update, the load balancer setting can be used.
Load balancers can be configured to use different ports for the different types of traffic, or if the load balancer supports port re-direction it can be used to expose all of the required protocols over port 443 using three load balancers:
In all cases, the load balancer should be configured as TCP load balancer (not SSL Terminating). This ensures a given communication exchange will happen directly between Agent/Virtual Appliance and the Manager from start to finish. The next connection may balance to a different node.
If Deep Security is being deployed in a VMware environment, it is possible to configure the vCenter and its connector in the Primary Tenant and the vCloud connector in Tenants. If this is configured properly, the Primary Tenant sees the ESXi servers, Deep Security Virtual Appliances and other infrastructure components while Tenants only see the VMs that belong to them in the vCloud environment. They can further activate these VMs without deploying any agent technology.
To enable this type of environment, you must go to Administration > System Settings > Agents and select the Allow Appliance protection of vCloud VMs checkbox.
For more information on vCloud integration, see the Installation Guide.
Each Tenant database has an overhead of around 100MB of disk space (due to the initial rules, policies and events that populate the system).
Tenant creation usually takes up to 4 minutes due to the creation of the schema and the population of the initial data. This ensures each new tenant has the most up-to-date configuration and removes the burden of managing database templates, especially between multiple database servers.