You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- fixes \#2478 update dependency of mysql [\#2479](https://github.com/networknt/light-4j/pull/2479) ([stevehu](https://github.com/stevehu))
11
+
- fixes \#2476 update email dependency from javax to jakarta [\#2477](https://github.com/networknt/light-4j/pull/2477) ([stevehu](https://github.com/stevehu))
- 2452 create config file generator so configurations are always in sync with the pojo [\#2458](https://github.com/networknt/light-4j/pull/2458) ([stevehu](https://github.com/stevehu))
21
+
- Added metrics attachment for handler execution. [\#2454](https://github.com/networknt/light-4j/pull/2454) ([KalevGonvick](https://github.com/KalevGonvick))
Copy file name to clipboardExpand all lines: apikey-config/src/main/resources/config/apikey-schema.json
+3-1
Original file line number
Diff line number
Diff line change
@@ -5,14 +5,16 @@
5
5
"properties" : {
6
6
"enabled" : {
7
7
"type" : "boolean",
8
-
"description" : "Enable or disable the api key filter."
8
+
"description" : "Enable ApiKey Authentication Handler, default is false.",
9
+
"default" : true
9
10
},
10
11
"hashEnabled" : {
11
12
"type" : "boolean",
12
13
"description" : "If API key hash is enabled. The API key will be hashed with PBKDF2WithHmacSHA1 before it is\nstored in the config file. It is more secure than put the encrypted key into the config file.\nThe default value is false. If you want to enable it, you need to use the following repo\nhttps://github.com/networknt/light-hash command line tool to hash the clear text key."
13
14
},
14
15
"pathPrefixAuths" : {
15
16
"type" : "array",
17
+
"description" : "path prefix to the api key mapping. It is a list of map between the path prefix and the api key\nfor apikey authentication. In the handler, it loops through the list and find the matching path\nprefix. Once found, it will check if the apikey is equal to allow the access or return an error.\nThe map object has three properties: pathPrefix, headerName and apiKey. Take a look at the test\nresources/config folder for configuration examples.\n",
"description" : "Output header elements. You can add more if you want. If multiple values, you can use a comma separated\nstring as default value in the template and values.yml. You can also use a list of strings in YAML format.",
"description" : "Output audit elements. You can add more if you want. If multiple values, you can use a comma separated\nstring as default value in the template and values.yml. You can also use a list of strings in YAML format.",
"description" : "when auditOnError is true:\n - it will only log when status code >= 400\nwhen auditOnError is false:\n - it will log on every request\nlog level is controlled by logLevel"
35
29
},
36
-
"mask" : {
37
-
"type" : "boolean",
38
-
"description" : "Enable mask in the audit log",
39
-
"default" : true
40
-
},
41
30
"timestampFormat" : {
42
31
"type" : "string",
43
32
"description" : "the format for outputting the timestamp, if the format is not specified or invalid, will use a long value.\nfor some users that will process the audit log manually, you can use yyyy-MM-dd'T'HH:mm:ss.SSSZ as format."
44
33
},
34
+
"headers" : {
35
+
"type" : "array",
36
+
"description" : "Output header elements. You can add more if you want. If multiple values, you can use a comma separated\nstring as default value in the template and values.yml. You can also use a list of strings in YAML format.\nCorrelation Id\n- X-Correlation-Id\nTraceability Id\n- X-Traceability-Id\ncaller id for metrics\n- caller_id\n",
"description" : "Output audit elements. You can add more if you want. If multiple values, you can use a comma separated\nstring as default value in the template and values.yml. You can also use a list of strings in YAML format.\nClient Id\n- client_id\nUser Id in id token, this is optional\n- user_id\nClient Id in scope/access token, this is optional\n- scope_client_id\nRequest endpoint uri@method.\n- endpoint\nService ID assigned to the service, this is optional and must be set by the service in its implementation\n- serviceId\nRequest Body, this is optional and must be set by the service in its implementation\n- requestBody\nResponse payload, this is optional and must be set by the service in its implementation\n- responseBody\n",
"description" : "The limit of the request body to put into the audit entry if requestBody is in the list of audit. If the\nrequest body is bigger than the max size, it will be truncated to the max size. The default value is 4096.",
@@ -51,11 +56,6 @@
51
56
"type" : "integer",
52
57
"description" : "The limit of the response body to put into the audit entry if responseBody is in the list of audit. If the\nresponse body is bigger than the max size, it will be truncated to the max size. The default value is 4096.",
0 commit comments