Skip to content

Preconditions and Basic Requirements ​

INFO

The user has to have the needed entitlements to request the blueprint via the catalog or the API.


⚙️ OS Configurations and Options ​

The product has the following functions included:

  1. Malware Protection

  2. Patching

    The user can select from a service provider predefined set of monthly patching windows in which the OS will be automatically patched.

🔐 Permissions at OS Level ​

CAUTION

Permissions at the OS level are reserved for Swisscom. RDP connections are not allowed.

Connections to the SQL Server can be established through SQL Server Management Studio (SSMS), SQL Server Data Tools (SSDT) or Visual Studio (VS) from a remote host.

AD Integration ​

None yet


SQL Configurations and Options ​

SQL Services ​

View SQL Services
ServiceService AccountStartup
SQL Server (MSSQLServer)Local SystemAutomatic
SQL Server Agent (MSSQLServer)Local SystemAutomatic

⚙️ SQL Server Configurations ​

View SQL Configuration Settings
SettingConfiguration
Max Degree of ParallelismEqual no. of CPU, max. 8

🔑 SQL Permissions ​

The aim of the permission model is to allow customers to manage their databases with a high degree of autonomy. The approach to achieve this goal is to separate the DBMS, which is managed by Swisscom, and the DB management as far as possible.

Overview ​

We differentiate between three levels of permissions. The table summarizes the permission model at a high level for a first understanding.

LevelDescription
SQL Instance (DBMS)Restrictive permissions are applied at this level as SCS will mainly provide the management at DBMS level.
DatabasesThe customer can create and drop DB's, as well he managed the access to databases assigning permissions according to his business requirements. This means that the customer is responsible for his data and who is going to access it.
Agent (Job Scheduling)Capability to create and manage own jobs is provided.

TIP

A full segregation of permissions cannot be implemented, as the above-mentioned three levels are interconnected (SQL Server security design). The customer should be able to change a defined set of DBMS settings if needed. This is achieved through a predefined set of configurable options made available on the portal and/or through API.

Beside portal/API operations the customer will connect to the DBMS through SSMS and/or SSDT to execute DB and permission actions.


SQL Instance Permission Level ​

The sysadmin server role is reserved to SCS. The default sa user is disabled.
For SCS admin tasks a SQL login named scs_sa is created and member of the sysadmin server role.
This user is reserved to SCS.

IMPORTANT

By a SQL managed service order the customer will be required to define a login name along with a password. This login will be defined as a "customer DBA" — a login with enhanced permissions, which will be described below.

Basically this user can manage databases, access and own jobs on the SQL instance.
Therefore we recommend to assign this role to administrators only.

❌ Roles not available ​

  • dbcreator
  • diskadmin
  • securityadmin
  • serveradmin
  • sysadmin

✅ Roles available through customer DBA ​

  • bulkadmin
  • setupadmin

The "customer DBA" Capabilities ​

On every managed instance the server role customerAdmin will be configured.
The "customer DBA" mentioned above will be member of the customerAdmin role.

The customer has the rights to add other logins to this server role, i.e. to enroll other users as "customer DBA".

Role Memberships ​

  • Member of the processadmin server role in order to open the activity monitor.
    This permission enables the "customer DBA" to kill processes.
  • Member of the SQLAgentUserRole and SQLAgentReaderRole in order to create and manage jobs.

Instance-Level Rights ​

Expand Full Permission List
PermissionStateServer Role
ALTER ANY SERVER AUDITDENYcustomerAdmin
ALTER ANY AVAILABILITY GROUPDENYcustomerAdmin
ALTER ANY CREDENTIALDENYcustomerAdmin
ALTER ANY EVENT NOTIFICATIONDENYcustomerAdmin
ALTER ANY LOGINGRANT_WITH_GRANT_OPTIONcustomerAdmin
ALTER ANY LINKED SERVERGRANT_WITH_GRANT_OPTIONcustomerAdmin
ALTER RESOURCESDENYcustomerAdmin
ALTER SERVER STATEGRANT_WITH_GRANT_OPTIONcustomerAdmin
ALTER SETTINGSDENYcustomerAdmin
ALTER TRACEGRANT_WITH_GRANT_OPTIONcustomerAdmin
AUTHENTICATE SERVERDENYcustomerAdmin
CREATE AVAILABILITY GROUPDENYcustomerAdmin
CREATE ANY DATABASEGRANT_WITH_GRANT_OPTIONcustomerAdmin
CREATE DDL EVENT NOTIFICATIONDENYcustomerAdmin
CREATE ENDPOINTDENYcustomerAdmin
CREATE TRACE EVENT NOTIFICATIONDENYcustomerAdmin
SHUTDOWNDENYcustomerAdmin
VIEW ANY DEFINITIONGRANT_WITH_GRANT_OPTIONcustomerAdmin
VIEW ANY DATABASEGRANT_WITH_GRANT_OPTIONcustomerAdmin
VIEW SERVER STATEGRANT_WITH_GRANT_OPTIONcustomerAdmin
EXTERNAL ACCESS ASSEMBLYDENYcustomerAdmin
UNSAFE ASSEMBLYDENYcustomerAdmin
ALTER ANY EVENT SESSIONGRANTcustomerAdmin

💡 Most Important Capabilities ​

View CustomerAdmin Capabilities
CapabilityHow To
Create DBstatement or SSMS/SSDT
Exec scs_AdminDB.customer.sp_createNewDB
Delete DBstatement or SSMS/SSDT
Import DB from bacpac fileSSMS/SSDT
Import DB from dacpac fileSSDT
Export DB to bacpac filesSSMS/SSDT
Export DB to dacpac filesSSMS/SSDT
Create loginstatement or SSMS/SSDT
Delete loginstatement or SSMS/SSDT
Grant membership to the bulkadmin and the setupadmin rolesExec scs_AdminDB.customer.sp_grantSrvRole
Revoke membership to the bulkadmin and the setupadmin rolesExec scs_AdminDB.customer.sp_revokeSrvRole
Grant membership to the SQLAgentUserRoleExec scs_AdminDB.customer.sp_grantAgentJob
Revoke membership to the SQLAgentUserRoleExec scs_AdminDB.customer.sp_revokeAgentJob
Set trace flags 1204 and 1222Exec scs_AdminDB.customer.sp_setTraceFlag
Disable trace flags 1204 and 1222Exec scs_AdminDB.customer.sp_disableTraceFlag
Get trace flags statusExec scs_AdminDB.customer.sp_statusTraceFlag
Grant the customer admin rights to other loginsExec scs_AdminDB.customer.sp_createAdmin
Revoke customer admin rights for loginsExec scs_AdminDB.customer.sp_dropAdmin
Read SQL Server Error Log
Read SQL Agent Error Log
Exec scs_AdminDB.customer.sp_viewSqlLog
List DB sizeExec scs_AdminDB.customer.sp_Collect_DB_Space_Stats
List DB files detailsSelect scs_AdminDB.customer.VW_DisplayDbFileInformation
List member of server rolesSelect scs_AdminDB.customer.VW_DisplayDbRolesMembers
List user granular permissions on DBSelect scs_AdminDB.customer.VW_DisplayDbUserPermissions
List DB usersSelect scs_AdminDB.customer.VW_DisplayDbUsers
Create jobsSSMS or statement
Delete jobsSSMS or statement
Modify jobsSSMS or statement
Create Extended Events SessionSSMS or statement
Delete Extended Events SessionSSMS or statement

⚙️ Server Settings Configuration ​

At SQL instance level the customer is not allowed to change any settings directly (i.e. through SSMS).

CAUTION

The options listed below can be configured via Portal. We advice the customer to follow Microsoft recommendations configuring the setting. Some changes can heavily affect the server performance or generate unwanted behaviour.

Configurable Settings ​

Name (linked to Microsoft Learn)Configured value
Ad Hoc Distributed Queries0
clr enabled0
cost threshold for parallelism5
cross db ownership chaining0
cursor threshold-1
fill factor (%)0
in-doubt xact resolution0
max degree of parallelism0
max value configurable8
max full-text crawl range4
max worker threads0
nested triggers1
network packet size (B)4096
Ole Automation Procedures0
PH timeout (s)60
remote data archive0
transform noise words0

SQL Agent and Job Management Notes ​

The customer DBA is granted membership to the SQLAgentReaderRole group, which enable the user to see all jobs on the server, however to edit the own jobs only.
(Refer to: Microsoft Docs)

Furthermore the customer DBA can assign other logins in the SQLAgentUserRole group.

CAUTION

Please note that the user should be granted access to the database objects used in the jobs.

The following actions are not supported:

  • replication jobs
  • cmd batch (xp_cmdshell)
  • command-line scripts by using ActiveX
  • PowerShell

Manually start, stop, or restart SQL Server Agent can be done through the portal only.
Email notifications through SQL Server Agent are not available.


SQL Database Level Permissions ​

  • The customer DBA is added automatically as db_owner on each DB created on the instance.
  • The scs_sa login will be set as database owner for each DB created on the server and cannot be changed.
  • If the DB is created through the provided stored procedure an additional user called dbo_dbname will be automatically added as db_owner.
  • The customer DBA will be able to manage access to the DB's.

CAUTION

NB Membership to the customerAdmin server role or db_owner gives the capability to backup databases. A backup without hint "copy only" will break the backup chain and therefore it can affect a restore point in time (as far the DB is in full recovery mode).


🔒 Password Policy for "customer DBA" and dbo ​

Swisscom imposes a minimum acceptable level of complexity against customer's created passwords through the ESC portal UI or APIs such as:

Passwords must have enough characters (minimum 8 chars and max 99) in length and

  • Passwords must include characters like numerical digits, upper case letters, lower case letters, special characters
  • Passwords must not be identical to the user ID and must not contain the user ID
  • Passwords must not be easy to guess and should be as random as possible
  • Passwords must not consist of easy-to-guess sequences of characters (e.g. “12345678”, “abcdefgh”, “aaaabbbb”, “qwertzui”)
  • Passwords must not contain special characters