Skip to content

Commit

Permalink
[MRG] Merge pull request #672 from dfir-iris/hotfix_2.4.19
Browse files Browse the repository at this point in the history
Hotfix 2.4.19
  • Loading branch information
whikernel authored Dec 21, 2024
2 parents f380745 + 220b54d commit 00de6cc
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 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.4.18
current_version = 2.4.19
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.4.18</i>
<i>Current Version v2.4.19</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.4.18
git checkout v2.4.19
# 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 @@ -25,27 +25,27 @@ services:
extends:
file: docker-compose.base.yml
service: db
image: ${DB_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_db}:${DB_IMAGE_TAG:-v2.4.18}
image: ${DB_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_db}:${DB_IMAGE_TAG:-v2.4.19}


app:
extends:
file: docker-compose.base.yml
service: app
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.18}
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.19}

worker:
extends:
file: docker-compose.base.yml
service: worker
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.18}
image: ${APP_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_app}:${APP_IMAGE_TAG:-v2.4.19}


nginx:
extends:
file: docker-compose.base.yml
service: nginx
image: ${NGINX_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_nginx}:${NGINX_IMAGE_TAG:-v2.4.18}
image: ${NGINX_IMAGE_NAME:-ghcr.io/dfir-iris/iriswebapp_nginx}:${NGINX_IMAGE_TAG:-v2.4.19}


volumes:
Expand Down
5 changes: 3 additions & 2 deletions source/app/blueprints/dashboard/dashboard_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def logout():
try:
logout_request = oidc_client.construct_EndSessionRequest(state=session["oidc_state"])
logout_url = logout_request.request(oidc_client.provider_info["end_session_endpoint"])
track_activity("user '{}' has been logged-out".format(current_user.user), ctx_less=True, display_in_ui=False)
track_activity("user '{}' is being logged out".format(current_user.user), ctx_less=True, display_in_ui=False)
logout_user()
session.clear()
return redirect(logout_url)
Expand All @@ -100,8 +100,9 @@ def logout():
log.error(f"Error logging out: {e}")
log.warning(f'Will continue to local logout')

track_activity("user '{}' is being logged out".format(current_user.user), ctx_less=True, display_in_ui=False)

logout_user()
track_activity("user '{}' has been logged-out".format(current_user.user), ctx_less=True, display_in_ui=False)
session.clear()

return redirect(not_authenticated_redirection_url('/'))
Expand Down
4 changes: 2 additions & 2 deletions source/app/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class CeleryConfig:
# --------- APP ---------
class Config:
# Handled by bumpversion
IRIS_VERSION = "v2.4.18" # DO NOT EDIT THIS LINE MANUALLY
IRIS_VERSION = "v2.4.19" # DO NOT EDIT THIS LINE MANUALLY

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

PERMANENT_SESSION_LIFETIME = timedelta(minutes=config.load('IRIS', 'SESSION_TIMEOUT', fallback=1440))
PERMANENT_SESSION_LIFETIME = timedelta(minutes=int(config.load('IRIS', 'SESSION_TIMEOUT', fallback=1440)))
SESSION_COOKIE_SAMESITE = 'Lax'
SESSION_COOKIE_SECURE = True
MFA_ENABLED = config.load('IRIS', 'MFA_ENABLED', fallback=False) == 'True'
Expand Down
2 changes: 1 addition & 1 deletion source/app/datamgmt/case/case_iocs_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def get_detailed_iocs(caseid):
IocLink.ioc_id == Ioc.ioc_id)
).join(IocLink.ioc)
.join(Ioc.ioc_type)
.join(Ioc.tlp)
.outerjoin(Ioc.tlp)
.order_by(IocType.type_name).all())

return detailed_iocs
Expand Down
8 changes: 6 additions & 2 deletions source/app/static/assets/js/iris/case.ioc.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,12 @@ $(document).ready(function(){
"data": "tlp_name",
"render": function(data, type, row, meta) {
if (type === 'display') {
data = sanitizeHTML(data);
data = '<span class="badge badge-'+ row['tlp_bscolor'] +' ml-2">tlp:' + data + '</span>';
if (data) {
data = sanitizeHTML(data);
data = '<span class="badge badge-' + row['tlp_bscolor'] + ' ml-2">tlp:' + data + '</span>';
} else {
return `<span class="badge badge-light ml-2">unspecified</span>`
}
}
return data;
}
Expand Down

0 comments on commit 00de6cc

Please sign in to comment.