Skip to content

Commit 00de6cc

Browse files
authored
[MRG] Merge pull request #672 from dfir-iris/hotfix_2.4.19
Hotfix 2.4.19
2 parents f380745 + 220b54d commit 00de6cc

File tree

7 files changed

+19
-14
lines changed

7 files changed

+19
-14
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 2.4.18
2+
current_version = 2.4.19
33
commit = True
44
tag = True
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>.*)-(?P<build>\d+))?

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<p align="center">
77
Incident Response Investigation System
88
<br>
9-
<i>Current Version v2.4.18</i>
9+
<i>Current Version v2.4.19</i>
1010
<br>
1111
<a href="https://v200.beta.dfir-iris.org">Online Demonstration</a>
1212
</p>
@@ -52,7 +52,7 @@ git clone https://github.com/dfir-iris/iris-web.git
5252
cd iris-web
5353

5454
# Checkout to the last tagged version
55-
git checkout v2.4.18
55+
git checkout v2.4.19
5656
# Copy the environment file
5757
cp .env.model .env
5858

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@ services:
2525
extends:
2626
file: docker-compose.base.yml
2727
service: db
28-
image: ${DB_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_db}:${DB_IMAGE_TAG:-v2.4.18}
28+
image: ${DB_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_db}:${DB_IMAGE_TAG:-v2.4.19}
2929

3030

3131
app:
3232
extends:
3333
file: docker-compose.base.yml
3434
service: app
35-
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.18}
35+
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.19}
3636

3737
worker:
3838
extends:
3939
file: docker-compose.base.yml
4040
service: worker
41-
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.18}
41+
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.19}
4242

4343

4444
nginx:
4545
extends:
4646
file: docker-compose.base.yml
4747
service: nginx
48-
image: ${NGINX_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_nginx}:${NGINX_IMAGE_TAG:-v2.4.18}
48+
image: ${NGINX_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_nginx}:${NGINX_IMAGE_TAG:-v2.4.19}
4949

5050

5151
volumes:

source/app/blueprints/dashboard/dashboard_routes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def logout():
8686
try:
8787
logout_request = oidc_client.construct_EndSessionRequest(state=session["oidc_state"])
8888
logout_url = logout_request.request(oidc_client.provider_info["end_session_endpoint"])
89-
track_activity("user '{}' has been logged-out".format(current_user.user), ctx_less=True, display_in_ui=False)
89+
track_activity("user '{}' is being logged out".format(current_user.user), ctx_less=True, display_in_ui=False)
9090
logout_user()
9191
session.clear()
9292
return redirect(logout_url)
@@ -100,8 +100,9 @@ def logout():
100100
log.error(f"Error logging out: {e}")
101101
log.warning(f'Will continue to local logout')
102102

103+
track_activity("user '{}' is being logged out".format(current_user.user), ctx_less=True, display_in_ui=False)
104+
103105
logout_user()
104-
track_activity("user '{}' has been logged-out".format(current_user.user), ctx_less=True, display_in_ui=False)
105106
session.clear()
106107

107108
return redirect(not_authenticated_redirection_url('/'))

source/app/configuration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class CeleryConfig:
264264
# --------- APP ---------
265265
class Config:
266266
# Handled by bumpversion
267-
IRIS_VERSION = "v2.4.18" # DO NOT EDIT THIS LINE MANUALLY
267+
IRIS_VERSION = "v2.4.19" # DO NOT EDIT THIS LINE MANUALLY
268268

269269
if os.environ.get('IRIS_DEMO_VERSION') is not None and os.environ.get('IRIS_DEMO_VERSION') != 'None':
270270
IRIS_VERSION = os.environ.get('IRIS_DEMO_VERSION')
@@ -289,7 +289,7 @@ class Config:
289289
IRIS_ADM_USERNAME = config.load('IRIS', 'ADM_USERNAME')
290290
IRIS_ADM_API_KEY = config.load('IRIS', 'ADM_API_KEY')
291291

292-
PERMANENT_SESSION_LIFETIME = timedelta(minutes=config.load('IRIS', 'SESSION_TIMEOUT', fallback=1440))
292+
PERMANENT_SESSION_LIFETIME = timedelta(minutes=int(config.load('IRIS', 'SESSION_TIMEOUT', fallback=1440)))
293293
SESSION_COOKIE_SAMESITE = 'Lax'
294294
SESSION_COOKIE_SECURE = True
295295
MFA_ENABLED = config.load('IRIS', 'MFA_ENABLED', fallback=False) == 'True'

source/app/datamgmt/case/case_iocs_db.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def get_detailed_iocs(caseid):
146146
IocLink.ioc_id == Ioc.ioc_id)
147147
).join(IocLink.ioc)
148148
.join(Ioc.ioc_type)
149-
.join(Ioc.tlp)
149+
.outerjoin(Ioc.tlp)
150150
.order_by(IocType.type_name).all())
151151

152152
return detailed_iocs

source/app/static/assets/js/iris/case.ioc.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,12 @@ $(document).ready(function(){
433433
"data": "tlp_name",
434434
"render": function(data, type, row, meta) {
435435
if (type === 'display') {
436-
data = sanitizeHTML(data);
437-
data = '<span class="badge badge-'+ row['tlp_bscolor'] +' ml-2">tlp:' + data + '</span>';
436+
if (data) {
437+
data = sanitizeHTML(data);
438+
data = '<span class="badge badge-' + row['tlp_bscolor'] + ' ml-2">tlp:' + data + '</span>';
439+
} else {
440+
return `<span class="badge badge-light ml-2">unspecified</span>`
441+
}
438442
}
439443
return data;
440444
}

0 commit comments

Comments
 (0)