-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi-security-url-protection-policy-schema.json
More file actions
335 lines (335 loc) · 13 KB
/
Copy pathapi-security-url-protection-policy-schema.json
File metadata and controls
335 lines (335 loc) · 13 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/akamai-api-security/refs/heads/main/json-schema/api-security-url-protection-policy-schema.json",
"title": "url-protection-policy",
"description": "Contains details about a URL protection policy.",
"type": "object",
"properties": {
"apiDefinitions": {
"description": "The API endpoints to match on in incoming requests. This only applies to the `api` `matchType`.",
"items": {
"additionalProperties": false,
"properties": {
"apiDefinitionId": {
"description": "Uniquely identifies each API endpoint.",
"format": "int64",
"type": "integer"
},
"definedResources": {
"description": "When `true`, match on any resource explicitly added to your API definition without including a `resourceId`. When `false`, you'll need to pass a `resourceId`.",
"type": "boolean"
},
"resourceIds": {
"description": "The unique identifiers of the endpoint's resources.",
"items": {
"format": "int64",
"type": "integer"
},
"type": "array"
},
"undefinedResources": {
"description": "When `true`, match on any resource you have not explicitly added to your API definition without including a `resourceId`. When `false`, you'll need to pass a `resourceId`.",
"type": "boolean"
}
},
"required": [
"apiDefinitionId"
],
"type": "object"
},
"type": "array"
},
"bypassCondition": {
"additionalProperties": false,
"description": "Exempts specific clients from being processed by the URL protection policy.",
"properties": {
"atomicConditions": {
"description": "Specify one or more types of conditions to match on. You can match on client lists, request headers, or both.",
"items": {
"oneOf": [
{
"additionalProperties": false,
"description": "Collects data needed for condition matches on request headers.",
"properties": {
"className": {
"description": "Choose `RequestHeaderCondition` to match a header from the requesting client to the specified header.",
"enum": [
"RequestHeaderCondition"
],
"type": "string"
},
"name": {
"description": "Use `name` to check whether the specified header exists.",
"items": {
"minLength": 1,
"type": "string"
},
"minItems": 1,
"type": "array",
"uniqueItems": true
},
"nameWildcard": {
"description": "Whether to interpret `?` and `*` as wildcards in the specified `name`.",
"type": "boolean"
},
"positiveMatch": {
"description": "__Read-only__ Whether the condition triggers on a match or lack of match.",
"readOnly": true,
"type": "boolean"
},
"value": {
"description": "A list of unique header values. Use both `value` and `name` to check whether the requesting client\u2019s header matches the specified headers.",
"items": {
"minLength": 1,
"type": "string"
},
"nullable": true,
"type": "array",
"uniqueItems": true
},
"valueCase": {
"description": "Whether to consider case when matching header values, `true` for case-sensitive matches.",
"type": "boolean"
},
"valueWildcard": {
"description": "Whether to interpret `?` and `*` as wildcards in the specified `value`.",
"type": "boolean"
}
},
"required": [
"className",
"name"
],
"title": "RequestHeaderCondition",
"type": "object",
"x-akamai": {
"file-path": "schemas/url-protection-bypass-request-header-condition.yaml"
}
},
{
"additionalProperties": false,
"description": "Collects data needed for condition matches on client lists and network lists.",
"properties": {
"checkIps": {
"description": "__Read-only__ Whether the connecting IP or both the connecting IP and `X-Forwarded-For` (XFF) header match on the client list or network list. URL protection bypass supports `connecting` only.",
"enum": [
"connecting"
],
"readOnly": true,
"type": "string"
},
"className": {
"description": "Choose `NetworkListCondition` to match the requesting client's identifier, like IP, GEO, ASN or TLS Fingerprint, against the specified client list or network list.",
"enum": [
"NetworkListCondition"
],
"type": "string"
},
"positiveMatch": {
"description": "__Read-only__ Whether the condition triggers on a match or lack of match.",
"readOnly": true,
"type": "boolean"
},
"value": {
"description": "Identifies the client list or network list.",
"items": {
"minLength": 1,
"type": "string"
},
"nullable": true,
"type": "array",
"uniqueItems": true
}
},
"required": [
"className",
"value"
],
"title": "NetworkListCondition",
"type": "object",
"x-akamai": {
"file-path": "schemas/url-protection-bypass-client-list-condition.yaml"
}
}
]
},
"minItems": 1,
"type": "array"
}
},
"type": "object"
},
"categories": {
"description": "The traffic categories to perform load shedding on when the origin traffic rate exceeds the load shedding threshold. If `intelligentLoadShedding` is set to `true`, specify one or more categories.",
"items": {
"oneOf": [
{
"additionalProperties": false,
"description": "Specify one or more load shedding categories for the URL protection policy.",
"properties": {
"type": {
"description": "Specify the type of traffic to shed first before reaching the requests per second (RPS) limit. `BOTS` includes bots from Akamai's existing list of known bots. `CLIENT_REPUTATIONS` includes traffic from clients with a bad client reputation score. `CLOUD_PROVIDERS` includes traffic from providers like AWS, Microsoft Azure, and Google Cloud. `PROXIES` includes proxy traffic as determined by IPQualityScore (IPQS) and Akamai EdgeScape. `TOR_EXIT_NODES` includes traffic defined in Akamai's existing network list of nodes. `PLATFORM_DDOS_INTELLIGENCE` includes traffic detected by Akamai's DDOS Intelligence platform.",
"enum": [
"BOTS",
"CLIENT_REPUTATIONS",
"CLOUD_PROVIDERS",
"PROXIES",
"TOR_EXIT_NODES",
"PLATFORM_DDOS_INTELLIGENCE"
],
"type": "string"
}
},
"required": [
"type"
],
"title": "Client list category",
"type": "object",
"x-akamai": {
"file-path": "schemas/url-protection-category.yaml"
}
},
{
"additionalProperties": false,
"description": "Defines a `CLIENT_LIST` load shedding category for a URL protection policy.",
"properties": {
"listIds": {
"description": "A list of client list identifiers to match on.",
"items": {
"type": "string"
},
"type": "array"
},
"positiveMatch": {
"description": "Whether the selected client lists match.",
"type": "boolean"
},
"type": {
"description": "Specify `CLIENT_LIST` to match on a client list.",
"enum": [
"CLIENT_LIST"
],
"type": "string"
}
},
"required": [
"type"
],
"title": "Other categories",
"type": "object",
"x-akamai": {
"file-path": "schemas/url-protection-client-list-category.yaml"
}
}
]
},
"type": "array"
},
"configId": {
"description": "Uniquely identifies the security configuration.",
"format": "int64",
"type": "integer"
},
"configVersion": {
"description": "The security configuration version.",
"type": "integer"
},
"createDate": {
"description": "__Read-only__ The timestamp when you created the URL protection policy.",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"createdBy": {
"description": "__Read-only__ The username of the person who created the URL protection policy.",
"readOnly": true,
"type": "string"
},
"description": {
"description": "A description of the rate policy.",
"type": "string"
},
"hostnamePaths": {
"description": "The hostname and path combinations to match on.",
"items": {
"additionalProperties": false,
"description": "The hostname and path combinations to match on.",
"properties": {
"hostname": {
"description": "The hostnames you choose to match on.",
"type": "string"
},
"paths": {
"description": "The list of paths to match on.",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"hostname",
"paths"
],
"type": "object",
"x-akamai": {
"file-path": "schemas/url-protection-policy-hostpath.yaml"
}
},
"minItems": 1,
"type": "array"
},
"intelligentLoadShedding": {
"description": "Enable or disable intelligent load shedding. If enabled, traffic that matches the load shedding categories is eligible for shedding if the origin rate exceeds the load shedding threshold.",
"type": "boolean"
},
"name": {
"description": "The rate policy's unique name.",
"type": "string"
},
"policyId": {
"description": "__Read-only__ Uniquely identifies the URL protection policy.",
"format": "int64",
"readOnly": true,
"type": "integer"
},
"protectionType": {
"description": "If matching on `hostnamePaths`, specify `SINGLE` to match on a hostname and path, or `MULTIPLE` to match on hostname and path combinations.",
"enum": [
"SINGLE",
"MULTIPLE"
],
"type": "string"
},
"rateThreshold": {
"description": "The allowed hits per second during any five-second interval.",
"type": "integer"
},
"sheddingThresholdHitsPerSec": {
"description": "Specify the threshold value, in hits per second, after which traffic can be shed. The `sheddingThresholdHitsPerSec` value must be between 70%-90% of the `rateThreshold` value. If you enabled `intelligentLoadShedding`, this value is required.",
"type": "integer"
},
"updateDate": {
"description": "__Read-only__ The ISO 8601 timestamp when you last updated the URL protection policy.",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"updatedBy": {
"description": "__Read-only__ Username who last updated the URL protection policy.",
"readOnly": true,
"type": "string"
},
"used": {
"description": "__Read-only__ Whether you're currently using the URL protection policy.",
"readOnly": true,
"type": "boolean"
}
},
"required": [
"intelligentLoadShedding",
"rateThreshold",
"name"
],
"additionalProperties": false
}