-
Notifications
You must be signed in to change notification settings - Fork 11
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 #240 from newrelic/enhancments/report-iast-failures
NR-254173 : Enhancements in reporting of IAST Scan failure
- Loading branch information
Showing
12 changed files
with
224 additions
and
10 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
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
67 changes: 67 additions & 0 deletions
67
...ain/java/com/newrelic/agent/security/intcodeagent/models/javaagent/IASTReplayFailure.java
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,67 @@ | ||
package com.newrelic.agent.security.intcodeagent.models.javaagent; | ||
|
||
import com.newrelic.agent.security.intcodeagent.websocket.JsonConverter; | ||
|
||
public class IASTReplayFailure { | ||
|
||
private String apiId; | ||
private String nrCsecFuzzRequestId; | ||
private String controlCommandId; | ||
private String failureMessage; | ||
private LogMessageException error; | ||
|
||
public IASTReplayFailure() { | ||
} | ||
|
||
public IASTReplayFailure(String apiId, String nrCsecFuzzRequestId, String controlCommandId, String failureMessage, LogMessageException error) { | ||
this.apiId = apiId; | ||
this.nrCsecFuzzRequestId = nrCsecFuzzRequestId; | ||
this.controlCommandId = controlCommandId; | ||
this.failureMessage = failureMessage; | ||
this.error = error; | ||
} | ||
|
||
public String getApiId() { | ||
return apiId; | ||
} | ||
|
||
public void setApiId(String apiId) { | ||
this.apiId = apiId; | ||
} | ||
|
||
public String getNrCsecFuzzRequestId() { | ||
return nrCsecFuzzRequestId; | ||
} | ||
|
||
public void setNrCsecFuzzRequestId(String nrCsecFuzzRequestId) { | ||
this.nrCsecFuzzRequestId = nrCsecFuzzRequestId; | ||
} | ||
|
||
public String getControlCommandId() { | ||
return controlCommandId; | ||
} | ||
|
||
public void setControlCommandId(String controlCommandId) { | ||
this.controlCommandId = controlCommandId; | ||
} | ||
|
||
public String getFailureMessage() { | ||
return failureMessage; | ||
} | ||
|
||
public void setFailureMessage(String failureMessage) { | ||
this.failureMessage = failureMessage; | ||
} | ||
|
||
public LogMessageException getError() { | ||
return error; | ||
} | ||
|
||
public void setError(LogMessageException error) { | ||
this.error = error; | ||
} | ||
|
||
public String toString() { | ||
return JsonConverter.toJSON(this); | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
.../main/java/com/newrelic/agent/security/intcodeagent/models/javaagent/IASTScanFailure.java
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,50 @@ | ||
package com.newrelic.agent.security.intcodeagent.models.javaagent; | ||
|
||
import com.newrelic.agent.security.intcodeagent.websocket.JsonConverter; | ||
import com.newrelic.api.agent.security.schema.SecurityMetaData; | ||
|
||
import java.time.Instant; | ||
|
||
public class IASTScanFailure extends AgentBasicInfo{ | ||
|
||
private Long timestamp; | ||
|
||
private IASTReplayFailure replayFailure; | ||
|
||
private SecurityMetaData securityAgentMetaData; | ||
|
||
public IASTScanFailure(IASTReplayFailure replayFailure, SecurityMetaData securityAgentMetaData) { | ||
super(); | ||
this.timestamp = Instant.now().toEpochMilli(); | ||
this.replayFailure = replayFailure; | ||
this.securityAgentMetaData = securityAgentMetaData; | ||
} | ||
|
||
public IASTReplayFailure getReplayFailure() { | ||
return replayFailure; | ||
} | ||
|
||
public void setReplayFailure(IASTReplayFailure replayFailure) { | ||
this.replayFailure = replayFailure; | ||
} | ||
|
||
public SecurityMetaData getSecurityAgentMetaData() { | ||
return securityAgentMetaData; | ||
} | ||
|
||
public void setSecurityAgentMetaData(SecurityMetaData securityAgentMetaData) { | ||
this.securityAgentMetaData = securityAgentMetaData; | ||
} | ||
|
||
public Long getTimestamp() { | ||
return timestamp; | ||
} | ||
|
||
public void setTimestamp(Long timestamp) { | ||
this.timestamp = timestamp; | ||
} | ||
|
||
public String toString() { | ||
return JsonConverter.toJSON(this); | ||
} | ||
} |
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