Skip to content

Commit

Permalink
1.2.3 (#74)
Browse files Browse the repository at this point in the history
* Setup config (#70)

* Updated setup_config mgmt command

* Updated CHANGELOG.md

* Added cover

* Update README.md

* Managed values as a list

* Refactoring

* Removed comments

* buffalogs_1_2_2

* 72 exception keyerror ip in process user (#73)

* Fixed KeyError('ip')

* Updated CHANGELOG.md

* Added user.name exists in Elastic query

* Version 1.2.3
  • Loading branch information
Lorygold committed Sep 29, 2023
1 parent 5d66f65 commit ded01bd
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
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

0 comments on commit ded01bd

Please sign in to comment.