-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from telefonicaid/task/add_access_match
Task/add access matches (about users, headers, path. .. ) to access Logger
- Loading branch information
Showing
10 changed files
with
229 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
- Add: user name, request path, query and body to AccessLogger (#541) | ||
- Add: Access Logger Patterns to match to Access Logger (#541) | ||
- Fix: ensure Origin of AccesLogger show x-forwarderd-for header if exists | ||
- Fix: use pipe-separeted format in Access Logger instead of JSON (closer to pep regular log) | ||
- Upgrade body-parser dep from 1.20.0 to 1.20.3 | ||
- Upgrade express from 4.19.2 to 4.20.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
'use strict'; | ||
|
||
/** | ||
* List of access match | ||
*/ | ||
var configAccessMatch = {}; | ||
|
||
// Activity related with a list of users | ||
configAccessMatch.users = [ | ||
// 'user1', 'user2', | ||
]; | ||
|
||
// Activity related with request which the following headers | ||
configAccessMatch.headers = [ | ||
// { "fiware-service": "smartcity" }, | ||
// { "x-real-ip": "127.0.0.1" } | ||
]; | ||
|
||
// Activity related with request including the following subpaths | ||
configAccessMatch.subpaths = [ | ||
// '/v1', | ||
]; | ||
|
||
// Activity related with request including the following subqueries | ||
configAccessMatch.subqueries = [ | ||
// 'flowControl', | ||
]; | ||
|
||
// Activity related with request including the following strings in body | ||
configAccessMatch.body = [ | ||
// 'legacy' | ||
]; | ||
|
||
|
||
exports.configAccessMatch = configAccessMatch; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters