-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDatabaseLevelIsolationStrategy.json
More file actions
139 lines (139 loc) · 4.05 KB
/
Copy pathDatabaseLevelIsolationStrategy.json
File metadata and controls
139 lines (139 loc) · 4.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
{
"$ref": "#/definitions/DatabaseLevelIsolationStrategy",
"definitions": {
"DatabaseLevelIsolationStrategy": {
"type": "object",
"properties": {
"strategy": {
"type": "string",
"const": "isolated_db",
"description": "Database-level isolation strategy"
},
"database": {
"type": "object",
"properties": {
"namingPattern": {
"type": "string",
"default": "tenant_{tenant_id}",
"description": "Database naming pattern"
},
"serverStrategy": {
"type": "string",
"enum": [
"shared",
"sharded",
"dedicated"
],
"default": "shared",
"description": "Server assignment strategy"
},
"separateCredentials": {
"type": "boolean",
"default": true,
"description": "Separate credentials per tenant"
},
"autoCreateDatabase": {
"type": "boolean",
"default": true,
"description": "Auto-create database"
}
},
"additionalProperties": false,
"description": "Database configuration"
},
"connectionPool": {
"type": "object",
"properties": {
"poolSize": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 10,
"description": "Connection pool size"
},
"maxActivePools": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 100,
"description": "Max active pools"
},
"idleTimeout": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 300,
"description": "Idle pool timeout"
},
"usePooler": {
"type": "boolean",
"default": true,
"description": "Use connection pooler"
}
},
"additionalProperties": false,
"description": "Connection pool configuration"
},
"backup": {
"type": "object",
"properties": {
"strategy": {
"type": "string",
"enum": [
"individual",
"consolidated",
"on_demand"
],
"default": "individual",
"description": "Backup strategy"
},
"frequencyHours": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 24,
"description": "Backup frequency"
},
"retentionDays": {
"type": "integer",
"exclusiveMinimum": 0,
"default": 30,
"description": "Backup retention days"
}
},
"additionalProperties": false,
"description": "Backup configuration"
},
"encryption": {
"type": "object",
"properties": {
"perTenantKeys": {
"type": "boolean",
"default": false,
"description": "Per-tenant encryption keys"
},
"algorithm": {
"type": "string",
"default": "AES-256-GCM",
"description": "Encryption algorithm"
},
"keyManagement": {
"type": "string",
"enum": [
"aws_kms",
"azure_key_vault",
"gcp_kms",
"hashicorp_vault",
"custom"
],
"description": "Key management service"
}
},
"additionalProperties": false,
"description": "Encryption configuration"
}
},
"required": [
"strategy"
],
"additionalProperties": false
}
},
"$schema": "http://json-schema.org/draft-07/schema#"
}