Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename timestamp_in_utc to timestamp, change formatHEADmain | Ernst Widerberg | 2022-04-25 | 1 | -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 Hallin | 2022-04-12 | 4 | -78/+64 |
| | | | | CouchDB. | ||||
* | Added investigation_needed | John Van de Meulebrouck Brendgard | 2022-04-11 | 1 | -9/+22 |
| | | | | | and made it required to specify either vulnerable or investigation_needed. | ||||
* | Rename top-level property "system_name" -> "display_name" | Ernst Widerberg | 2022-04-11 | 1 | -2/+2 |
| | |||||
* | Update example_data + schema | Ernst Widerberg | 2022-04-11 | 1 | -43/+66 |
| | |||||
* | Create indexes properly. | Kristofer Hallin | 2022-02-21 | 2 | -3/+12 |
| | |||||
* | JSON schema for data. | Kristofer Hallin | 2022-02-07 | 1 | -0/+75 |
| | |||||
* | Add testing for some unauthorized API calls | Ernst Widerberg | 2022-01-21 | 1 | -0/+47 |
| | |||||
* | Allow passing args to pytest from quickstart.sh | Ernst Widerberg | 2022-01-21 | 1 | -2/+7 |
| | | | | Usage: ./quickstart_test.sh [-v] [-c] [-- <args to pytest>] | ||||
* | Bugfix | Ernst Widerberg | 2022-01-14 | 1 | -2/+2 |
| | |||||
* | Update test JWT + cert | Ernst Widerberg | 2022-01-14 | 2 | -5/+3 |
| | |||||
* | quickstart_test: Remove unused env var JWT_TOKEN | Ernst Widerberg | 2022-01-14 | 1 | -1/+0 |
| | |||||
* | Decrease database reconnection timer | Ernst Widerberg | 2022-01-14 | 1 | -1/+1 |
| | |||||
* | Revert "Only retry the database connection if we get an ConnectionError ↵ | Ernst Widerberg | 2022-01-14 | 1 | -4/+3 |
| | | | | | | exception." This reverts commit a3b5cde94981b9a98d367004b4c513c81e5870e4. | ||||
* | Printing bugfix | Ernst Widerberg | 2022-01-14 | 1 | -2/+2 |
| | |||||
* | Add read/write permissions to JWTs based on YAML | Ernst Widerberg | 2022-01-13 | 2 | -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 Hallin | 2021-12-17 | 1 | -3/+4 |
| | |||||
* | Pass -c to quickstart_test.sh and we will start CouchDB for you as well. | Kristofer Hallin | 2021-11-26 | 2 | -3/+28 |
| | |||||
* | fix typo | Linus Nordberg | 2021-11-26 | 1 | -1/+1 |
| | |||||
* | More unittests. | Kristofer Hallin | 2021-11-26 | 1 | -0/+20 |
| | |||||
* | Set up virtualenv and install requirements if -v is passed to quickstart_test.sh | Kristofer Hallin | 2021-11-26 | 1 | -7/+25 |
| | |||||
* | Require JWT token for the /delete endpoint. | Kristofer Hallin | 2021-11-26 | 1 | -1/+4 |
| | |||||
* | * Now possible to remove documents, new /delete endpoint. | Kristofer Hallin | 2021-11-26 | 3 | -0/+113 |
| | | | | * More unittests. | ||||
* | Use the database unittest for unittests. | Kristofer Hallin | 2021-11-26 | 1 | -1/+1 |
| | |||||
* | More unittests.fastapi_pytest | Kristofer Hallin | 2021-11-26 | 1 | -2/+65 |
| | |||||
* | First embryo for unittests. | Kristofer Hallin | 2021-11-25 | 3 | -0/+39 |
| | |||||
* | Fix get/<id> endpoint | Ernst Widerberg | 2021-11-24 | 1 | -0/+4 |
| | |||||
* | Add Access-Control-Expose-Headers: X-Total-Count to CORS | Ernst Widerberg | 2021-11-24 | 1 | -0/+1 |
| | |||||
* | Bugfix | Ernst Widerberg | 2021-11-24 | 1 | -1/+1 |
| | |||||
* | Add mock X-Total-Count | Ernst Widerberg | 2021-11-24 | 1 | -0/+7 |
| | |||||
* | Add CORS middleware | Ernst Widerberg | 2021-11-24 | 1 | -0/+9 |
| | |||||
* | Bugfix? | Ernst Widerberg | 2021-11-23 | 1 | -1/+1 |
| | |||||
* | * Rename wsgi.py to main.py, we're not using WSGI. | Kristofer Hallin | 2021-11-17 | 1 | -0/+0 |
| | | | | * Added env variable. | ||||
* | /opt/cert -> /opt/certs | Kristofer Hallin | 2021-11-16 | 1 | -1/+1 |
| | |||||
* | * Don't switch to main brach, we're already there. | Kristofer Hallin | 2021-11-12 | 1 | -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 Hallin | 2021-11-12 | 1 | -2/+14 |
| | | | | attempts before giving up. | ||||
* | Typo, statuc -> status.fastapi | Kristofer Hallin | 2021-10-29 | 1 | -2/+2 |
| | |||||
* | Read domain/org from token. | Kristofer Hallin | 2021-10-29 | 1 | -18/+42 |
| | |||||
* | Use FastAPI + JWT instead of Falcon. | Kristofer Hallin | 2021-10-29 | 3 | -178/+135 |
| | |||||
* | Remove unused variables. | Kristofer Hallin | 2021-10-18 | 2 | -6/+4 |
| | |||||
* | Checkk if we have a document before trying to use its key. | Kristofer Hallin | 2021-10-18 | 1 | -1/+1 |
| | |||||
* | Find, now with pagination! Use limit and skip to get the results you want. | Kristofer Hallin | 2021-10-14 | 2 | -21/+43 |
| | |||||
* | Merge branch 'main' of git.sunet.se:soc_collector | Kristofer Hallin | 2021-10-13 | 1 | -1/+1 |
|\ | |||||
| * | Flatten GET output | Ernst Widerberg | 2021-10-12 | 1 | -1/+1 |
| | | |||||
* | | Now possible to get data based on a single key. | Kristofer Hallin | 2021-10-13 | 1 | -2/+8 |
|/ | |||||
* | Support bulk transactions. | Kristofer Hallin | 2021-10-07 | 1 | -8/+5 |
| | |||||
* | Better indexes. | Kristofer Hallin | 2021-10-07 | 1 | -1/+5 |
| | |||||
* | Fixed db.get() and commented things somewhat. | Kristofer Hallin | 2021-10-07 | 1 | -1/+29 |
| | |||||
* | Create indexes when creating database, also make it possible to search based ↵ | Kristofer Hallin | 2021-10-06 | 3 | -19/+62 |
| | | | | on indexes. | ||||
* | Send back proper JSON to the user. | Kristofer Hallin | 2021-10-06 | 1 | -8/+16 |
| |