Compare commits
6 Commits
v1.1.8
...
b6bfcc0290
| Author | SHA1 | Date | |
|---|---|---|---|
| b6bfcc0290 | |||
| 4e34267856 | |||
| 5f246d79a6 | |||
| caea64a9bf | |||
| 90369a4cd1 | |||
| e29228a84b |
10
pom.xml
10
pom.xml
@@ -6,7 +6,7 @@
|
|||||||
<groupId>com.mattrixwv.cipherstream</groupId>
|
<groupId>com.mattrixwv.cipherstream</groupId>
|
||||||
<artifactId>cipherstream-api</artifactId>
|
<artifactId>cipherstream-api</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>1.1.8</version>
|
<version>1.1.10</version>
|
||||||
<name>CipherStream API</name>
|
<name>CipherStream API</name>
|
||||||
<url>https://api.cipherstream.mattrixwv.com</url>
|
<url>https://api.cipherstream.mattrixwv.com</url>
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-parent</artifactId>
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
<version>3.5.0</version>
|
<version>3.5.4</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -125,7 +125,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-enforcer-plugin</artifactId>
|
<artifactId>maven-enforcer-plugin</artifactId>
|
||||||
<version>3.5.0</version>
|
<version>3.6.1</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>enforce-maven</id>
|
<id>enforce-maven</id>
|
||||||
@@ -145,7 +145,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
<artifactId>maven-clean-plugin</artifactId>
|
||||||
<version>3.4.1</version>
|
<version>3.5.0</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.owasp</groupId>
|
<groupId>org.owasp</groupId>
|
||||||
<artifactId>dependency-check-maven</artifactId>
|
<artifactId>dependency-check-maven</artifactId>
|
||||||
<version>12.1.1</version>
|
<version>12.1.3</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<phase>none</phase>
|
<phase>none</phase>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package com.mattrixwv.cipherstream.config;
|
|||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.StringJoiner;
|
import java.util.StringJoiner;
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
import org.slf4j.MDC;
|
import org.slf4j.MDC;
|
||||||
import org.springframework.lang.NonNull;
|
import org.springframework.lang.NonNull;
|
||||||
@@ -37,6 +38,9 @@ public class FullFilter extends OncePerRequestFilter{
|
|||||||
if(request.getHeader("X-Request-Id") != null){
|
if(request.getHeader("X-Request-Id") != null){
|
||||||
MDC.put("requestId", request.getHeader("X-Request-Id"));
|
MDC.put("requestId", request.getHeader("X-Request-Id"));
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
MDC.put("requestId", UUID.randomUUID().toString());
|
||||||
|
}
|
||||||
|
|
||||||
//Get IP address
|
//Get IP address
|
||||||
if(request.getHeader("X-Forwarded-For") != null){
|
if(request.getHeader("X-Forwarded-For") != null){
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"msg_timestamp": {
|
"timestamp": {
|
||||||
"$resolver": "timestamp",
|
"$resolver": "timestamp",
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"format": "yyyy-MM-dd HH:mm:ss.SSSZ"
|
"format": "yyyy-MM-dd HH:mm:ss.SSSZ"
|
||||||
@@ -9,10 +9,6 @@
|
|||||||
"$resolver": "level",
|
"$resolver": "level",
|
||||||
"field": "name"
|
"field": "name"
|
||||||
},
|
},
|
||||||
"requestId": {
|
|
||||||
"$resolver": "mdc",
|
|
||||||
"key": "requestId"
|
|
||||||
},
|
|
||||||
"logger": {
|
"logger": {
|
||||||
"$resolver": "logger",
|
"$resolver": "logger",
|
||||||
"field": "name"
|
"field": "name"
|
||||||
|
|||||||
Reference in New Issue
Block a user