summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* More scanner stuff.feature.callhomeKristofer Hallin2022-01-182-11/+27
|
* Broken merge.Kristofer Hallin2022-01-181-17/+0
|
* Resolved conflict.Kristofer Hallin2022-01-183-6/+20
|\
| * 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
| |
* | * Merge branch 'main' into feature.callhomeKristofer Hallin2022-01-176-145/+80
|\ \ | |/ | | | | | | * New API endpoints * Updated requirements
| * 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.
* | Added database and API endpoints for scanners.Kristofer Hallin2022-01-053-6/+224
| |
* | Use FastAPI routers and split things to multiple files.Kristofer Hallin2022-01-0414-120/+206
|/
* 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
|
* Minor cleanups.Kristofer Hallin2021-10-061-9/+7
|
* Return the unique key in the response when adding new data.Kristofer Hallin2021-10-061-10/+9
|
* Now easier to put UWSGI and NGINX in front of the API.Kristofer Hallin2021-10-061-38/+26
|