summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Rename timestamp_in_utc to timestamp, change formatHEADmainErnst Widerberg2022-04-251-3/+3
| | | | | | | | The format "date-time" in jsonschema is as defined in RFC 3339, which is about the same as ISO 8601. Validating this requires an additional package which is specified in python-jsonschema docs.
* Use the schema when creating indexes, also validate data before writing to ↵Kristofer Hallin2022-04-124-78/+64
| | | | CouchDB.
* Added investigation_neededJohn Van de Meulebrouck Brendgard2022-04-111-9/+22
| | | | | and made it required to specify either vulnerable or investigation_needed.
* Rename top-level property "system_name" -> "display_name"Ernst Widerberg2022-04-111-2/+2
|
* Update example_data + schemaErnst Widerberg2022-04-111-43/+66
|
* Create indexes properly.Kristofer Hallin2022-02-212-3/+12
|
* JSON schema for data.Kristofer Hallin2022-02-071-0/+75
|
* Add testing for some unauthorized API callsErnst Widerberg2022-01-211-0/+47
|
* Allow passing args to pytest from quickstart.shErnst Widerberg2022-01-211-2/+7
| | | | Usage: ./quickstart_test.sh [-v] [-c] [-- <args to pytest>]
* BugfixErnst Widerberg2022-01-141-2/+2
|
* Update test JWT + certErnst Widerberg2022-01-142-5/+3
|
* quickstart_test: Remove unused env var JWT_TOKENErnst Widerberg2022-01-141-1/+0
|
* Decrease database reconnection timerErnst Widerberg2022-01-141-1/+1
|
* Revert "Only retry the database connection if we get an ConnectionError ↵Ernst Widerberg2022-01-141-4/+3
| | | | | | exception." This reverts commit a3b5cde94981b9a98d367004b4c513c81e5870e4.
* Printing bugfixErnst Widerberg2022-01-141-2/+2
|
* Add read/write permissions to JWTs based on YAMLErnst Widerberg2022-01-132-120/+55
| | | | | | | - Uses Linus's YAML code, except with password stuff removed since auth-server-poc uses htpasswd. - The collector checks JWT on API endpoints get, get/{key}, and delete/{key}, but not on add.
* Only retry the database connection if we get an ConnectionError exception.Kristofer Hallin2021-12-171-3/+4
|
* Pass -c to quickstart_test.sh and we will start CouchDB for you as well.Kristofer Hallin2021-11-262-3/+28
|
* fix typoLinus Nordberg2021-11-261-1/+1
|
* More unittests.Kristofer Hallin2021-11-261-0/+20
|
* Set up virtualenv and install requirements if -v is passed to quickstart_test.shKristofer Hallin2021-11-261-7/+25
|
* Require JWT token for the /delete endpoint.Kristofer Hallin2021-11-261-1/+4
|
* * Now possible to remove documents, new /delete endpoint.Kristofer Hallin2021-11-263-0/+113
| | | | * More unittests.
* Use the database unittest for unittests.Kristofer Hallin2021-11-261-1/+1
|
* More unittests.fastapi_pytestKristofer Hallin2021-11-261-2/+65
|
* First embryo for unittests.Kristofer Hallin2021-11-253-0/+39
|
* Fix get/<id> endpointErnst Widerberg2021-11-241-0/+4
|
* Add Access-Control-Expose-Headers: X-Total-Count to CORSErnst Widerberg2021-11-241-0/+1
|
* BugfixErnst Widerberg2021-11-241-1/+1
|
* Add mock X-Total-CountErnst Widerberg2021-11-241-0/+7
|
* Add CORS middlewareErnst Widerberg2021-11-241-0/+9
|
* Bugfix?Ernst Widerberg2021-11-231-1/+1
|
* * Rename wsgi.py to main.py, we're not using WSGI.Kristofer Hallin2021-11-171-0/+0
| | | | * Added env variable.
* /opt/cert -> /opt/certsKristofer Hallin2021-11-161-1/+1
|
* * Don't switch to main brach, we're already there.Kristofer Hallin2021-11-121-4/+4
| | | | | * Look for public key in /opt/cert. * Add variable to compose.
* If the database is unavailable when we try to connect, make a few more ↵Kristofer Hallin2021-11-121-2/+14
| | | | attempts before giving up.
* Typo, statuc -> status.fastapiKristofer Hallin2021-10-291-2/+2
|
* Read domain/org from token.Kristofer Hallin2021-10-291-18/+42
|
* Use FastAPI + JWT instead of Falcon.Kristofer Hallin2021-10-293-178/+135
|
* Remove unused variables.Kristofer Hallin2021-10-182-6/+4
|
* Checkk if we have a document before trying to use its key.Kristofer Hallin2021-10-181-1/+1
|
* Find, now with pagination! Use limit and skip to get the results you want.Kristofer Hallin2021-10-142-21/+43
|
* Merge branch 'main' of git.sunet.se:soc_collectorKristofer Hallin2021-10-131-1/+1
|\
| * Flatten GET outputErnst Widerberg2021-10-121-1/+1
| |
* | Now possible to get data based on a single key.Kristofer Hallin2021-10-131-2/+8
|/
* Support bulk transactions.Kristofer Hallin2021-10-071-8/+5
|
* Better indexes.Kristofer Hallin2021-10-071-1/+5
|
* Fixed db.get() and commented things somewhat.Kristofer Hallin2021-10-071-1/+29
|
* Create indexes when creating database, also make it possible to search based ↵Kristofer Hallin2021-10-063-19/+62
| | | | on indexes.
* Send back proper JSON to the user.Kristofer Hallin2021-10-061-8/+16
|