Closes Add validation (copy from keycloak-oauth-policy)
MODIFY
apikey-policy/src/main/apiman/policyDefs/schemas/apikey-policyDef.schema
apikey-policy/src/main/apiman/policyDefs/schemas/apikey-policyDef.schema
"description" : "The name of the HTTP request header that the API Key will be copied to (and sent to the back-end service).",
"default" : "X-API-Key",
"type" : "string",
+ "pattern": "^[^()<>@,;:\\\\<>\\/\\[\\]?={}\\s\\t]+$",
"minLength" : 1,
"maxLength" : 128
}

MODIFY
config-policy/src/main/apiman/policyDefs/schemas/config-policyDef.schema
config-policy/src/main/apiman/policyDefs/schemas/config-policyDef.schema
"requestHeader": {
"title" : "Request Header",
"type" : "string",
+ "pattern": "^[^()<>@,;:\\\\<>\\/\\[\\]?={}\\s\\t]+$",
"minLength" : 1,
"maxLength" : 64
},
"responseHeader": {
"title" : "Response Header",
"type" : "string",
+ "pattern": "^[^()<>@,;:\\\\<>\\/\\[\\]?={}\\s\\t]+$",
"minLength" : 1,
"maxLength" : 64
}

MODIFY
unique-header-policy/src/main/apiman/policyDefs/schemas/unique-header-policyDef.schema
unique-header-policy/src/main/apiman/policyDefs/schemas/unique-header-policyDef.schema
"properties": {
"headerName": {
"type": "string",
- "title": "HTTP Header Name"
+ "title": "HTTP Header Name",
+ "pattern": "^[^()<>@,;:\\\\<>\\/\\[\\]?={}\\s\\t]+$"
},
"overwriteHeaderValue": {
"type": "boolean",

Closes #827: Add validation (copy from keycloak-oauth-policy)