Skip to content
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

1.2.3 #74

Merged
merged 8 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## 1.2.x
### 1.2.3
#### Bugfix
* Fixed KeyError('ip') in process_user function
### 1.2.2
#### Bugfix
* Updated setup_config management command in order to overwrite the configs
Expand Down
2 changes: 2 additions & 0 deletions buffalogs/impossible_travel/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def process_user(db_user, start_date, end_date):
.query("match", **{"user.name": db_user.username})
.query("match", **{"event.outcome": "success"})
.query("match", **{"event.type": "start"})
.query("exists", field="source.ip")
.source(
includes=[
"user.name",
Expand Down Expand Up @@ -225,6 +226,7 @@ def exec_process_logs(start_date, end_date):
.query("match", **{"event.category": "authentication"})
.query("match", **{"event.outcome": "success"})
.query("match", **{"event.type": "start"})
.query("exists", field="user.name")
.exclude("terms", **{"user.name": config.ignored_users})
.exclude("terms", **{"source.ip": config.ignored_ips})
)
Expand Down
2 changes: 1 addition & 1 deletion django-buffalogs/buffalogs.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: buffalogs
Version: 1.2.2
Version: 1.2.3
Summary: A Django app to detect anomaly logins.
Home-page: UNKNOWN
Author: Lorena Goldoni
Expand Down
1 change: 0 additions & 1 deletion django-buffalogs/buffalogs.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ README.rst
pyproject.toml
setup.cfg
setup.py
../docs/static/cover_buffalogs.png
buffalogs.egg-info/PKG-INFO
buffalogs.egg-info/SOURCES.txt
buffalogs.egg-info/dependency_links.txt
Expand Down
2 changes: 1 addition & 1 deletion django-buffalogs/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = buffalogs
version = 1.2.2
version = 1.2.3
description = A Django app to detect anomaly logins.
long_description = file: README.rst
author = Lorena Goldoni
Expand Down