-
Notifications
You must be signed in to change notification settings - Fork 0
239 implement quarantine function for backend server #248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
239 implement quarantine function for backend server #248
Conversation
- Changed text in constants and log prints - Changed Java Docs - Added File-Quarantine Artifact into dependency’s - Bumped version number to pom.xml into 1.4 for an upcoming release
… into related service packages - Added Serial annotation to all PWSS Backend Annotations - Bumped serial number to 2 for the exiting Exception Classes - Created File Isolation Component - Added two methods in FileService - Created File Controller - added 2 endpoints - updated the `FileController` class with JavaDoc comments and Swagger annotations - added JavaDocs and Swagger annotations to the `QuarantineFileRequest` class - enhanced the `UnQurantineFileRequest` class with JavaDoc comments and Swagger annotations - Created 2 new Exception classes - Added new logger entry into logback.xml - Added 3 new entries into .gitignore
...ty-Scanner/src/main/java/org/pwss/file_integrity_scanner/controller/file/FileController.java
Show resolved
Hide resolved
.../dsr/domain/file_integrity_scanner/model/request/file_controller/UnQurantineFileRequest.java
Show resolved
Hide resolved
...s/file_integrity_scanner/dsr/repository/file_integrity_scanner/diff/IntegrityRepository.java
Show resolved
Hide resolved
...rg/pwss/file_integrity_scanner/dsr/service/file_integrity_scanner/diff/IntegrityService.java
Show resolved
Hide resolved
...s/file_integrity_scanner/dsr/service/file_integrity_scanner/file/FileIsolationComponent.java
Show resolved
Hide resolved
...s/file_integrity_scanner/dsr/service/file_integrity_scanner/file/FileIsolationComponent.java
Show resolved
Hide resolved
...ava/org/pwss/file_integrity_scanner/dsr/service/file_integrity_scanner/file/FileService.java
Outdated
Show resolved
Hide resolved
| log.error("{} has no diffs and can not be quarantined", file.getBasename()); | ||
| throw new QuarantineFailedException( | ||
| "File has no diffs and can not be quarantined"); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great safe guard 🛡️
We like our users to avoid accidents 🥇
...grity-Scanner/src/main/java/org/pwss/file_integrity_scanner/dsr/service/PWSSbaseService.java
Show resolved
Hide resolved
| return true; | ||
| } | ||
|
|
||
| // Basic pattern to detect common injection patterns. This is not foolproof. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not foolproof but miles better than nothing! 🥇
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is foolproof in the world of IT-Security, my dear friend? Yes, better than nothing. In a world where people are truthful about IT, this validation method would still fetch a significant price. You and I are both honest workers and humans. The reason why I enjoy working on a project with you, Comrade Stefan, is because of that! @lilstiffy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly comrade, you put it well!
I love the validation methods 🤩
lilstiffy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

Stefan, I hope this pull request brings you happiness 😃