Commit Graph

615 Commits (763ab4198e019a72c9de8ba48aa6236a7162d123)

Author SHA1 Message Date
Raphaël Vinot 763ab4198e fix: Strip API key before setting it. 2024-03-22 15:47:15 +01:00
Raphaël Vinot 65ea540bc4 fix: Python 3.8 support & typing. 2024-03-22 11:45:40 +01:00
Raphaël Vinot b11aa31048 fix: Typing for Python < 3.10 2024-03-22 11:40:45 +01:00
Raphaël Vinot 2b66a3eabd new: Support X-MISP-AUTH Header
Also, improve HTTP headers init

Fix #1179
2024-03-22 11:39:19 +01:00
Raphaël Vinot df9c20c86e chg: Bump deps 2024-03-22 09:59:32 +01:00
Raphaël Vinot 94ff206f67 fix: Disable WL when calling the disable method, not toggle.
Fix #1159
2024-02-22 14:29:45 +01:00
Raphaël Vinot 685ef22d0a fix: revert typing changes. 2024-02-02 15:05:15 +01:00
Raphaël Vinot 9d4d083e46 Revert "fix: More responses athat are lists"
This reverts commit 709a10c64c.
2024-02-02 14:28:04 +01:00
Raphaël Vinot 709a10c64c fix: More responses athat are lists 2024-02-02 13:24:29 +01:00
Raphaël Vinot e91a7922a7 fix: another call that cn be a list or a dict. 2024-02-02 13:07:37 +01:00
Raphaël Vinot b5b4a5ef52 fix: More fixes to support responses from MISP 2024-02-01 17:24:24 +01:00
Raphaël Vinot c3a3868f42 fix: handle list responses properly 2024-02-01 15:32:00 +01:00
Raphaël Vinot 1da0d5adc1 chg: Add more strict typing, not done yet. 2024-02-01 14:40:12 +01:00
Raphaël Vinot 298e2f9035 chg: First batch of changes for strict typing 2024-01-30 12:51:23 +01:00
Raphaël Vinot d8850c59ea
Merge pull request #1134 from JakubOnderka/orjson
orjson and small fixes and optimizations
2024-01-17 13:43:21 +01:00
Raphaël Vinot a298245fd2 fix: Python < 3.10 support on typing, for good. 2024-01-17 13:40:10 +01:00
Raphaël Vinot f11681af52 fix: Python < 3.10 support on typing 2024-01-17 13:38:00 +01:00
Raphaël Vinot 0562c63cec chg: Initial changes to use new annotations 2024-01-17 13:28:51 +01:00
Jakub Onderka 292948aa58 chg: [internal] Simplify code 2024-01-16 21:57:30 +01:00
Raphaël Vinot d329a5e095 new: relationship_type in tag
Fix https://github.com/MISP/MISP/issues/9483
2024-01-10 14:08:48 +01:00
Jakub Onderka fca0b233cd new: [internal] Add support for orjson
orjson is much faster library for decoding and encoding JSON formats
2024-01-07 18:34:20 +01:00
Steven 00df6e23fb
Fix api ssl verify typing 2023-12-15 11:19:28 +01:00
Steven 51433ff08a
Add HTTPS Adapter
Add the ability to provide a custom HTTPS adapter to the PyMISP class. With M2Crypto and m2requests, this can enable mutual TLS with hardware tokens.
2023-12-15 10:38:01 +01:00
Raphaël Vinot 09f55f5167 fix: Avoid confusing error when an auth key is limited to an IP
Fix #1099
2023-11-14 12:26:23 +01:00
Raphaël Vinot 5d39d81152 chg: Bump version, make __version__ dynamic 2023-10-24 15:09:25 +02:00
Raphaël Vinot 507b8195ae chg: Make mypy happy 2023-10-04 15:13:44 +02:00
Raphaël Vinot 0a63ab8cc8 fix: Avoid exception when data is an empty iterator
Fix #1053
2023-09-04 17:33:28 +02:00
Raphaël Vinot 1597669ea6 fix: Update Sharing group info from full object
Fix #1049
2023-08-23 10:52:57 +02:00
Raphaël Vinot 4085e0faef fix: maybe fixing a CakePHP issue
Maybe fixing #1014
2023-06-15 10:55:20 +02:00
Raphaël Vinot c8989c2ab2 fix: Use proper endpoint to unpublish event
Fix #1012
2023-06-13 14:47:31 +02:00
Stefano Ortolani 565447ce36 Allow search by 'event_tags' and improve the handling of galaxy clusters.
Changes:
- Add 'event_tags' parameter when searching for events
- Add new method to search for galaxies by value
- Add new parameter to fetch cluster information when retrieving clusters
- Add new parameter to hard-delete object references
2023-05-16 11:15:46 +01:00
Raphaël Vinot 0ac719fd7c chg: Remove old setup files, bump deps. 2023-05-11 17:48:01 +02:00
Luciano Righetti d3c304a844 add: support breakOnDuplicate option for attributes:add() 2023-03-23 16:34:46 +01:00
Raphaël Vinot cca73e4c4e fix: invalid check if taxo is enabled 2023-03-17 15:44:03 +01:00
Raphaël Vinot a40d91666b fix: Use proper parameter to trigger the request in search_galaxy_clusters 2023-03-17 14:02:29 +01:00
Raphaël Vinot 4363b3f43b fix: use POST in search galaxy cluster 2023-03-17 13:32:40 +01:00
Raphaël Vinot 8b1ae28cc9 fix: undefined variable in event delegation 2023-02-10 13:44:30 +01:00
Raphaël Vinot 8da684aad3
Merge pull request #877 from dragsu/feat/exception-when-tag-without-name
Graceful handling of tagging when name attribute is missing
2022-12-22 11:03:16 +01:00
Raphaël Vinot 2de22871d1 new: Basic support for listing, enabling and disabling decaying models 2022-11-22 14:48:23 +01:00
Sura De Silva 0f79e760c6 Graceful handling of tagging when name attribute is missing 2022-11-17 21:06:59 +11:00
Raphaël Vinot fd05292d7c chg: Bump mypy 2022-11-09 13:29:06 +01:00
Raphaël Vinot f1517dbf22 chg: Add links to doc 2022-11-07 15:04:15 +01:00
Tom King b438c27b5e new: Add in ability to set a taxonomies required status 2022-09-14 10:29:38 +01:00
Raphaël Vinot c47e235a4e
Merge pull request #858 from tomking2/feature/index_sort_limit
Sort/desc for sorting results and limit/page for pagination
2022-09-09 11:16:26 +02:00
Raphaël Vinot e2f9a7c6f9 new: Pass arbitrary headers to a PyMISP request. 2022-09-08 10:54:54 +02:00
Tom King eb33a9deb9 chg: Add in sort/desc for sorting results and limit/page for pagination 2022-09-06 16:29:22 +01:00
Raphaël Vinot a5f9ac996c fix: make keepalive configuration linux only
Bump deps
2022-08-09 21:27:47 +02:00
Raphaël Vinot 5a0080289f fix: Improper json check on non-json responses
Fix #854
2022-08-03 11:38:24 +02:00
Raphaël Vinot 58976dc35c fix: make flake8 happy 2022-07-28 15:12:40 +02:00
Derekt2 b36d1ba89f
Update api.py 2022-07-25 09:13:28 -05:00