Skip to content

Commit b49986d

Browse files
authored
Changes in docs for v2.7.0 (#581)
1 parent 90be383 commit b49986d

6 files changed

+65
-14
lines changed
6.92 KB
Loading

docs/integration-guide.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ Webhooks can be used to automatically analyze the uploaded file in sandbox. The
171171
Check out `mwdb-plugin-drakvuf <https://github.com/CERT-Polska/mwdb-plugin-drakvuf>`_ on Github!
172172

173173
Available hooks
174-
--------------
174+
---------------
175+
175176
A lot of hooks have been implemented in MWDB. Each of these hooks is triggered when particular event occurs in system.
176177

177178

docs/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Sphinx==3.2.1
1+
Sphinx==4.5.0
22
sphinx-rtd-theme==0.5.2
33
jsx-lexer==1.0.0
44
# FIX: https://github.com/readthedocs/sphinx_rtd_theme/issues/1115

docs/setup-and-configuration.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,9 @@ Registration feature settings:
303303

304304

305305
Rate limit configuration
306-
----------------------
306+
------------------------
307+
308+
.. versionadded:: 2.7.0
307309

308310
mwdb-core service has implemented rate limiting feature. Each limit for HTTP method can contain a few conditions (space separated).
309311

docs/user-guide/7-Lucene-search.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Remember that exclusive range is not allowed for date-time field so this is not
158158
upload_time:>2020-09-01
159159
160160
Query syntax: relative timestamps
161-
------------------------
161+
---------------------------------
162162

163163
.. versionadded:: 2.7.0
164164

docs/whats-changed.rst

+58-10
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,54 @@ have compatibility problems after minor mwdb-core upgrade.
77

88
For upgrade instructions, see :ref:`Upgrade mwdb-core to latest version`.
99

10+
v2.7.0
11+
------
12+
13+
Release includes few improvements of security, integration and search capabilities.
14+
15+
Complete changelog can be found here: `v2.7.0 changelog <https://github.com/CERT-Polska/mwdb-core/releases/tag/v2.7.0>`_.
16+
17+
[Important change] Changed API key generation and handling
18+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19+
20+
MWDB Core uses JWT tokens for various resources that require special authorization. One of them is managed
21+
directly by the end user: API keys. In this release, we slightly changed the implementation to improve security and
22+
make them more compliant with `RFC7519 <https://datatracker.ietf.org/doc/html/rfc7519>`_.
23+
24+
That's why it's recommended to regenerate your API keys at some point after upgrade. All previously generated API keys
25+
will be honored by further 2.x.x releases of MWDB Core, but should be considered deprecated.
26+
27+
The next important change is that API key token is shown **only just after creation** and token can't be regenerated for
28+
existing API key.
29+
30+
[New feature] Configurable rate limits
31+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32+
33+
From now, you doesn't have to rely on arbitrary hardcoded rate limits like before 2.7.0. Now, you're open to configure it
34+
depending on your needs. You can use different limits for specific endpoints and HTTP methods.
35+
36+
For more information, read :ref:`Rate limit configuration` section.
37+
38+
[New feature] Relative date-time ranges in search
39+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
40+
41+
v2.7.0 comes with the next improvements in search. The new thing is support for relative date-time ranges.
42+
43+
.. code-block::
44+
45+
upload_time:>=2h or upload_time:[2h TO *]
46+
47+
For more information, read :ref:`Query syntax: relative timestamps`.
48+
49+
[Improvement] New object hooks accessible for plugins
50+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51+
52+
In previous versions, MWDB Core was able to notify your plugins only of limited set of simple actions like creation of
53+
the new object, added tag or comment. From v2.7.0 you are able to integrate with much broader set of actions including
54+
object removals, changes in attributes and even administrative actions like creation of new user account.
55+
56+
Complete list of hooks can be found in :ref:`Available hooks` section.
57+
1058
v2.6.0
1159
------
1260

@@ -44,19 +92,19 @@ That's why we decided to migrate from plain strings to `JSONB type <https://www.
4492
in internal attribute value representation. We also designed a new Attribute API to operate on JSON objects rather than
4593
simple values.
4694

47-
.. image:: ../_static/json-attribute-add.png
48-
:target: ../_static/json-attribute-add.png
95+
.. image:: _static/json-attribute-add.png
96+
:target: _static/json-attribute-add.png
4997
:alt: Adding JSON attribute
5098

51-
.. image:: ../_static/json-attribute.png
52-
:target: ../_static/json-attribute.png
99+
.. image:: _static/json-attribute.png
100+
:target: _static/json-attribute.png
53101
:alt: JSON attribute
54102

55103
Attribute API is the new set of endpoints and request fields. You can easily recognize them as we name them `attributes`
56104
instead of `meta(keys)`.
57105

58-
.. image:: ../_static/attribute-swagger.png
59-
:target: ../_static/attribute-swagger.png
106+
.. image:: _static/attribute-swagger.png
107+
:target: _static/attribute-swagger.png
60108
:alt: Attribute API in Docs
61109

62110
For compatibility reasons: deprecated Metakey API just coerces object values to strings. Keep in mind that strings
@@ -69,8 +117,8 @@ when we try to add the same value twice, the second one won't be added.
69117
Attribute API exposes attribute value identifier that can be used for removing the specific attribute value. Metakeys were identified directly by `key, value` tuple
70118
but it wasn't convenient for objects because these values can be pretty huge.
71119

72-
.. image:: ../_static/json-attribute-response.png
73-
:target: ../_static/json-attribute-response.png
120+
.. image:: _static/json-attribute-response.png
121+
:target: _static/json-attribute-response.png
74122
:alt: Attribute API response with exposed id
75123

76124
More information can be found in `#413 feature draft on Github <https://github.com/CERT-Polska/mwdb-core/issues/413>`_. At the time of
@@ -103,8 +151,8 @@ Default Web timeout is now a bit longer and set to 20 seconds instead of 8 secon
103151

104152
MWDB stores all unique names for sample that it was uploaded with. They are exposed via "Variant file names" field in Web UI object view.
105153

106-
.. image:: ../_static/alt_names.png
107-
:target: ../_static/alt_names.png
154+
.. image:: _static/alt_names.png
155+
:target: _static/alt_names.png
108156
:alt: Variant file names in sample view
109157

110158
[New feature] Transactional tag adding along with object upload

0 commit comments

Comments
 (0)