Skip to content

Commit

Permalink
[MRG] Merge pull request #346 from dfir-iris/v2.3.6-hf
Browse files Browse the repository at this point in the history
Patch v2.3.6
  • Loading branch information
whikernel authored Dec 7, 2023
2 parents 9367392 + 4803ed3 commit b707cd0
Show file tree
Hide file tree
Showing 8 changed files with 66 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.3.5
current_version = 2.3.6
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*)-(?P<build>\d+))?
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<p align="center">
Incident Response Investigation System
<br>
<i>Current Version v2.3.5</i>
<i>Current Version v2.3.6</i>
<br>
<a href="https://v200.beta.dfir-iris.org">Online Demonstration</a>
</p>
Expand Down Expand Up @@ -52,7 +52,7 @@ git clone https://github.com/dfir-iris/iris-web.git
cd iris-web

# Checkout to the last tagged version
git checkout v2.3.5
git checkout v2.3.6

# Copy the environment file
cp .env.model .env
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
build:
context: docker/db
container_name: iriswebapp_db
image: iriswebapp_db:v2.3.5
image: iriswebapp_db:v2.3.6
restart: always
# Used for debugging purposes, should be deleted for production
ports:
Expand All @@ -47,7 +47,7 @@ services:
build:
context: .
dockerfile: docker/webApp/Dockerfile
image: iriswebapp_app:v2.3.5
image: iriswebapp_app:v2.3.6
container_name: iriswebapp_app
command: ['nohup', './iris-entrypoint.sh', 'iriswebapp']
volumes:
Expand Down Expand Up @@ -85,7 +85,7 @@ services:
build:
context: .
dockerfile: docker/webApp/Dockerfile
image: iriswebapp_app:v2.3.5
image: iriswebapp_app:v2.3.6
container_name: iriswebapp_worker
command: ['./wait-for-iriswebapp.sh', 'app:8000', './iris-entrypoint.sh', 'iris-worker']
volumes:
Expand Down Expand Up @@ -121,7 +121,7 @@ services:
args:
NGINX_CONF_GID: 1234
NGINX_CONF_FILE: nginx.conf
image: iriswebapp_nginx:v2.3.5
image: iriswebapp_nginx:v2.3.6
container_name: iriswebapp_nginx
environment:
- IRIS_UPSTREAM_SERVER
Expand Down
6 changes: 6 additions & 0 deletions source/app/blueprints/overview/templates/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@
cellspacing="0" id="overview_table">
<thead>
<tr>
<th>Outcome</th>
<th>Case ID</th>
<th>Title</th>
<th>Customer</th>
<th>Classification</th>
Expand All @@ -60,10 +62,13 @@
<th>Open date</th>
<th>Tasks</th>
<th>Owner</th>
<th>Severity</th>
</tr>
</thead>
<tfoot>
<tr>
<th></th>
<th></th>
<th>Title</th>
<th>Customer</th>
<th>Classification</th>
Expand All @@ -73,6 +78,7 @@
<th>Open date</th>
<th>Tasks</th>
<th>Owner</th>
<th></th>
</tr>
</tfoot>
</table>
Expand Down
2 changes: 1 addition & 1 deletion source/app/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ class CeleryConfig:
# --------- APP ---------
class Config:
# Handled by bumpversion
IRIS_VERSION = "v2.3.5"
IRIS_VERSION = "v2.3.6"

API_MIN_VERSION = "2.0.0"
API_MAX_VERSION = "2.0.3"
Expand Down
4 changes: 3 additions & 1 deletion source/app/iris_engine/reporter/reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,13 @@ def generate_md_report(self, doc_type):

_, report_format = os.path.splitext(report.internal_reference)

case_info['case']['for_customer'] = f"{case_info['case'].get('client').get('customer_name')} (legacy::use client.customer_name)"

# Prepare report name
name = "{}".format(("{}" + str(report_format)).format(report.naming_format))
name = name.replace("%code_name%", case_info['doc_id'])
name = name.replace(
'%customer%', case_info['case'].get('for_customer'))
'%customer%', case_info['case'].get('client').get('customer_name'))
name = name.replace('%case_name%', case_info['case'].get('name'))
name = name.replace('%date%', datetime.utcnow().strftime("%Y-%m-%d"))

Expand Down
3 changes: 2 additions & 1 deletion source/app/static/assets/css/atlantis.css
Original file line number Diff line number Diff line change
Expand Up @@ -15895,4 +15895,5 @@ td.dt-nowrap { white-space: nowrap }

.copy-icon-l {
margin-left: 10px;
}
}

49 changes: 47 additions & 2 deletions source/app/static/assets/js/iris/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,39 @@ $.each($.find("table"), function(index, element){
let OverviewTable = $("#overview_table").DataTable({
dom: '<"container-fluid"<"row"<"col"l><"col"f>>>rt<"container-fluid"<"row"<"col"i><"col"p>>>',
aaData: [],
columnDefs: [
{
targets: [0], // column index
visible: false, // set visibility
searchable: true, // set searchable
data: "status_name" // field in data
},
{
targets: [1], // column index
visible: false, // set visibility
searchable: true, // set searchable
data: "case_id" // field in data
},
{
targets: [11], // column index
visible: false, // set visibility
searchable: true, // set searchable
data: "severity" // field in data
}
],
aoColumns: [
{
"data": "status_name",
"render": function (data, type, row, meta) {
return data;
}
},
{
"data": "case_id",
"render": function (data, type, row, meta) {
return data;
}
},
{
"data": "name",
"render": function (data, type, row, meta) {
Expand Down Expand Up @@ -151,7 +183,16 @@ let OverviewTable = $("#overview_table").DataTable({
}
return data;
}
}
},
{
"data": "severity",
"render": function (data, type, row, meta) {
if (data != null && (type == 'filter' || type === 'sort' || type === 'display' || type === 'search')) {
return data.severity_name;
}
return data;
}
}
],
filter: true,
info: true,
Expand Down Expand Up @@ -184,7 +225,7 @@ let OverviewTable = $("#overview_table").DataTable({
},
select: true,
initComplete: function () {
tableFiltering(this.api(), 'overview_table', [0]);
tableFiltering(this.api(), 'overview_table');
},
drawCallback: function () {
$('.btn-quick-view').off('click').on('click', function() {
Expand Down Expand Up @@ -287,6 +328,10 @@ function show_case_view(row_index) {
owner_dl1.append($('<dd class="col-sm-8"/>').text(timeSinceLastUpdateStr));
owner_dl1.append($('<dt class="col-sm-3"/>').text('Severity:'));
owner_dl1.append($('<dd class="col-sm-8"/>').text(case_data.severity.severity_name));
owner_dl1.append($('<dt class="col-sm-3"/>').text('Outcome:'));
let statusName = case_data.status_name.replace(/_/g, ' ');
statusName = statusName.replace(/\b\w/g, function(l){ return l.toUpperCase() });
owner_dl1.append($('<dd class="col-sm-8"/>').text(statusName));

owner_col1.append(owner_dl1);

Expand Down

0 comments on commit b707cd0

Please sign in to comment.