File tree Expand file tree Collapse file tree 2 files changed +7
-20
lines changed
sqrl-cli/src/main/resources/templates
sqrl-server/sqrl-server-vertx-base/src/main/java/com/datasqrl/graphql Expand file tree Collapse file tree 2 files changed +7
-20
lines changed Original file line number Diff line number Diff line change 119
119
"fileRegionEnabled" : true
120
120
},
121
121
"pgConnectOptions" : {
122
- "host" : " ${POSTGRES_HOST}" ,
123
- "port" : 5432 ,
124
- "user" : " ${POSTGRES_USERNAME}" ,
125
- "password" : " ${POSTGRES_PASSWORD}" ,
126
- "database" : " ${POSTGRES_DATABASE}" ,
122
+ "host" : " ${POSTGRES_HOST}" ,
123
+ "port" : 5432 ,
124
+ "user" : " ${POSTGRES_USERNAME}" ,
125
+ "password" : " ${POSTGRES_PASSWORD}" ,
126
+ "database" : " ${POSTGRES_DATABASE}" ,
127
127
"cachePreparedStatements" : false ,
128
128
"preparedStatementCacheMaxSize" : 256 ,
129
129
"preparedStatementCacheSqlFilter" : { },
185
185
"license" : " Apache License 2.0" ,
186
186
"licenseUrl" : " https://www.apache.org/licenses/LICENSE-2.0"
187
187
}
188
- }
188
+ }
Original file line number Diff line number Diff line change @@ -66,9 +66,7 @@ public void handle(RoutingContext context) {
66
66
private void logIncomingRequest (HttpServerRequest request , String requestId ) {
67
67
var headers =
68
68
request .headers ().entries ().stream ()
69
- .map (
70
- entry ->
71
- entry .getKey () + ": " + maskSensitiveHeader (entry .getKey (), entry .getValue ()))
69
+ .map (entry -> entry .getKey () + ": " + entry .getValue ())
72
70
.collect (Collectors .joining (", " ));
73
71
74
72
var params =
@@ -121,17 +119,6 @@ private void logOutgoingResponse(
121
119
logResponseBody (responseBodyCapture , requestId );
122
120
}
123
121
124
- private String maskSensitiveHeader (String headerName , String value ) {
125
- var lowerName = headerName .toLowerCase ();
126
- if (lowerName .contains ("authorization" )
127
- || lowerName .contains ("cookie" )
128
- || lowerName .contains ("x-api-key" )
129
- || lowerName .contains ("bearer" )) {
130
- return "[MASKED]" ;
131
- }
132
- return value ;
133
- }
134
-
135
122
private String generateRequestId () {
136
123
return "REQ-" + System .nanoTime () + "-" + Thread .currentThread ().getId ();
137
124
}
You can’t perform that action at this time.
0 commit comments