Skip to content

Commit

Permalink
merge from head
Browse files Browse the repository at this point in the history
  • Loading branch information
invisig0th committed Jun 14, 2024
2 parents 1d1d305 + 6f18bfd commit 09c1224
Show file tree
Hide file tree
Showing 43 changed files with 528,289 additions and 426 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 2.169.0
current_version = 2.171.0
commit = True
tag = True
tag_message =
Expand Down
138 changes: 137 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,142 @@ Synapse Changelog
*****************


v2.171.0 - 2024-06-07
=====================

Features and Enhancements
-------------------------
- Update ``synapse.test.utils.SynTest`` helpers to disable sysctl checks
for test services by default.
(`#3741 <https://github.com/vertexproject/synapse/pull/3741>`_)

Bugfixes
--------
- Fix a key positioning error in the LMDBSlab when scanning backwards
by prefix.
(`#3739 <https://github.com/vertexproject/synapse/pull/3739>`_)
- Fix a bug in the ``str`` type normalization routine for handling floating
point values. The floating point values are now also run through the
string norming logic.
(`#3742 <https://github.com/vertexproject/synapse/pull/3742>`_)
- Add missing beholder messages for view layer modifications.
(`#3743 <https://github.com/vertexproject/synapse/pull/3743>`_)

Improved Documentation
----------------------
- Update Devops documentation to add additional information about low downtime
service updates, Rapid Power-Up updates, and release cadence information.
Update references from ``docker-compose`` to use ``docker compose``.
(`#3722 <https://github.com/vertexproject/synapse/pull/3722>`_)

v2.170.0 - 2024-06-04
=====================

Automatic Migrations
--------------------
- Populate an additional index of buids by form in Layers.
(`#3729 <https://github.com/vertexproject/synapse/pull/3729>`_)
- See :ref:`datamigration` for more information about automatic migrations.

Model Changes
-------------
- Updates to the ``infotech`` and ``file`` models.
(`#3702 <https://github.com/vertexproject/synapse/pull/3702>`_)
(`#3725 <https://github.com/vertexproject/synapse/pull/3725>`_)
(`#3732 <https://github.com/vertexproject/synapse/pull/3732>`_)

**New Forms**

``file:mime:lnk``
Metadata pulled from a Windows shortcut or LNK file.

``it:mitre:attack:datasource``
A MITRE ATT&CK Datasource ID.

``it:mitre:attack:data:component``
A MITRE ATT&CK data component.

**New Properties**

``it:mitre:attack:technique``
The form had the following property added to it:

``data:components``
An array of MITRE ATT&CK data components that detect the ATT&CK technique.

``it:prod:hardware``
The form had the following properties added to it:

``manufacturer``
The organization that manufactures this hardware.

``manufacturer:name``
The name of the organization that manufactures this hardware.

**Deprecated Properties**

``it:prod:hardware``
The ``it:prod:hardware`` form had the following property marked as deprecated:

* ``make``

Features and Enhancements
-------------------------
- Added ``$lib.model.migration.s.riskHasVulnToVulnerable`` migration helper
to create ``risk:vulnerable`` nodes from ``risk:hasvuln`` nodes.
(`#3734 <https://github.com/vertexproject/synapse/pull/3734>`_)
- Added ``$lib.model.migration.s.itSecCpe_2_170_0()`` migration helper to update
``it:sec:cpe`` nodes created before this release. Details about the migration
helper can be found in the help (``help -v $lib.model.migration.s.itSecCpe_2_170_0``)
(`#3515 <https://github.com/vertexproject/synapse/pull/3515>`_)
- Update Storm lift optimization for tag filters to also allow hinting
based on runtsafe variable values.
(`#3733 <https://github.com/vertexproject/synapse/pull/3733>`_)
- Log an info message with the current Cell and Synapse version on startup.
(`#3723 <https://github.com/vertexproject/synapse/pull/3723>`_)
- Add per-Cell version checks to prevent accidental downgrades of services.
(`#3728 <https://github.com/vertexproject/synapse/pull/3728>`_)
- Add a check to Cells that will warn when performance related sysctl values
are not configured correctly on the host. This warning can be disabled with
the ``health:sysctl:checks`` configuration option.
(`#3712 <https://github.com/vertexproject/synapse/pull/3712>`_)
- Add ``forms`` and ``interfaces`` type options to the ``ndef`` type, which
require the value to be one of the specified forms, or inherit one of the
specified interfaces.
(`#3724 <https://github.com/vertexproject/synapse/pull/3724>`_)
- Add support for pivoting from an ``ndef`` secondary prop to specific form.
(`#3715 <https://github.com/vertexproject/synapse/pull/3715>`_)
- Add support for pivoting to or from ``ndef`` array properties.
(`#3720 <https://github.com/vertexproject/synapse/pull/3720>`_)
- Add an index of buids by form to Layers. A ``getStorNodesByForm()`` API has
been added to Storm Layer objects to retrieve storage nodes using this index.
(`#3729 <https://github.com/vertexproject/synapse/pull/3729>`_)
- Storm Dmon APIs called on a Cortex mirror now call up to the leader to
retrieve their result.
(`#3735 <https://github.com/vertexproject/synapse/pull/3735>`_)
- Add a ``insertParentFork()`` API on Storm View objects to insert a new
View between an existing fork and its parent View.
(`#3731 <https://github.com/vertexproject/synapse/pull/3731>`_)
- Quorum merge requests are now allowed on Views which have forks.
(`#3738 <https://github.com/vertexproject/synapse/pull/3738>`_)

Bugfixes
--------
- Fix a formatting issue in an error message that could be raised during
JSON decoding in a Storm ``http:api:request`` object.
(`#3730 <https://github.com/vertexproject/synapse/pull/3730>`_)
- Fix an issue where ``inet:url`` norming did not handle IPv6 addresses
in the host portion of the URL correctly.
(`#3727 <https://github.com/vertexproject/synapse/pull/3727>`_)
- Fix an issue where executing the ``view.exec`` command from within a
privileged Storm runtime still checked user permissions for the specified
view.
(`#3726 <https://github.com/vertexproject/synapse/pull/3726>`_)
- Update logic for parsing CPE 2.2 and CPE 2.3 strings to be more compliant with
the specification. This resulted in better conversions from CPE 2.2 to CPE 2.3
and CPE 2.3 to CPE 2.2.
(`#3515 <https://github.com/vertexproject/synapse/pull/3515>`_)

v2.169.0 - 2024-05-10
=====================

Expand Down Expand Up @@ -96,7 +232,7 @@ Bugfixes
flag as well. Previously this flag was not cleared, and offline services
could still report as ``ready``.
(`#3705 <https://github.com/vertexproject/synapse/pull/3705>`_)
- Add misisng sleep statements to callers of ``Layer.syncNodeEdits2()``.
- Add missing sleep statements to callers of ``Layer.syncNodeEdits2()``.
(`#3700 <https://github.com/vertexproject/synapse/pull/3700>`_)

Improved Documentation
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Example docker-compose file for a temporary core listening on port 47322
version: '3'
# Example Compose file for a temporary core listening on port 47322
services:
core:
build:
Expand Down
4 changes: 4 additions & 0 deletions docs/synapse/datamodel_deprecation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,7 @@ Properties
- `it:exec:proc`
- `:user`
- Please use the `:account` `it:exec:proc` property to link processes to users.

- `it:prod:hardware`
- `:make`
- The `:make` property has been superseded by the properties `it:prod:hardware:manufacturer` and `it:prod:hardware:manufacturer:name`, which are typed as `ou:org` and `ou:name` respectively.
41 changes: 18 additions & 23 deletions docs/synapse/deploymentguide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ This guide will also walk you through deploying all Synapse services using TLS t
servers and clients using client-certificates to minimize the need for secrets management by eliminating
passwords from all telepath URLs.

For the purposes of this guide, we will use ``docker-compose`` as a light-weight orchestration mechanism.
For the purposes of this guide, we will use ``docker compose`` as a light-weight orchestration mechanism.
The steps, configurations, and volume mapping guidance given in this guide apply equally to other container
orchestration mechanisms such as Kubernetes but for simplicity's sake, this guide will only cover
``docker-compose`` based deployments.
``docker compose`` based deployments.

.. note::
Due to `known networking limitations of docker on Mac`_ we do **not** support or recommend the use
of Docker for Mac for testing or deploying production Synapse instances. Containers run within
separate ``docker-compose`` commands will not be able to reliably communicate with each other.
separate ``docker compose`` commands will not be able to reliably communicate with each other.

Synapse services **require persistent storage**. Each ``docker`` container expects persistent storage to be available
within the directory ``/vertex/storage`` which should be a persistent mapped volume. Only one container may run from a
Expand Down Expand Up @@ -97,7 +97,6 @@ Create the container directory::

Create the ``/srv/syn/aha/docker-compose.yaml`` file with contents::

version: "3.3"
services:
aha:
user: "999"
Expand All @@ -121,20 +120,20 @@ Change ownership of the storage directory to the user you will use to run the co

chown -R 999 /srv/syn/aha/storage

Start the container using ``docker-compose``::
Start the container using ``docker compose``::

docker-compose -f /srv/syn/aha/docker-compose.yaml pull
docker-compose -f /srv/syn/aha/docker-compose.yaml up -d
docker compose --file /srv/syn/aha/docker-compose.yaml pull
docker compose --file /srv/syn/aha/docker-compose.yaml up -d

To view the container logs at any time you may run the following command on the *host* from the
``/srv/syn/aha`` directory::

docker-compose logs -f
docker compose logs -f

You may also execute a shell inside the container using ``docker-compose`` from the ``/srv/syn/aha``
You may also execute a shell inside the container using ``docker compose`` from the ``/srv/syn/aha``
directory on the *host*. This will be necessary for some of the additional provisioning steps::

docker-compose exec aha /bin/bash
docker compose exec aha /bin/bash


.. _deploy_axon:
Expand Down Expand Up @@ -179,7 +178,6 @@ Create the container directory::

Create the ``/srv/syn/00.axon/docker-compose.yaml`` file with contents::

version: "3.3"
services:
00.axon:
user: "999"
Expand All @@ -199,8 +197,8 @@ Create the ``/srv/syn/00.axon/docker-compose.yaml`` file with contents::

Start the container::

docker-compose --file /srv/syn/00.axon/docker-compose.yaml pull
docker-compose --file /srv/syn/00.axon/docker-compose.yaml up -d
docker compose --file /srv/syn/00.axon/docker-compose.yaml pull
docker compose --file /srv/syn/00.axon/docker-compose.yaml up -d

Deploy JSONStor Service
=======================
Expand All @@ -224,7 +222,6 @@ Create the container directory::

Create the ``/srv/syn/00.jsonstor/docker-compose.yaml`` file with contents::

version: "3.3"
services:
00.jsonstor:
user: "999"
Expand All @@ -244,8 +241,8 @@ Create the ``/srv/syn/00.jsonstor/docker-compose.yaml`` file with contents::

Start the container::

docker-compose --file /srv/syn/00.jsonstor/docker-compose.yaml pull
docker-compose --file /srv/syn/00.jsonstor/docker-compose.yaml up -d
docker compose --file /srv/syn/00.jsonstor/docker-compose.yaml pull
docker compose --file /srv/syn/00.jsonstor/docker-compose.yaml up -d

Deploy Cortex Service
=====================
Expand All @@ -269,7 +266,6 @@ Create the container directory::

Create the ``/srv/syn/00.cortex/docker-compose.yaml`` file with contents::

version: "3.3"
services:
00.cortex:
user: "999"
Expand All @@ -295,12 +291,12 @@ Create the ``/srv/syn/00.cortex/docker-compose.yaml`` file with contents::

Start the container::

docker-compose --file /srv/syn/00.cortex/docker-compose.yaml pull
docker-compose --file /srv/syn/00.cortex/docker-compose.yaml up -d
docker compose --file /srv/syn/00.cortex/docker-compose.yaml pull
docker compose --file /srv/syn/00.cortex/docker-compose.yaml up -d

Remember, you can view the container logs in real-time using::

docker-compose --file /srv/syn/00.cortex/docker-compose.yaml logs -f
docker compose --file /srv/syn/00.cortex/docker-compose.yaml logs -f

.. _deployment-guide-mirror:

Expand All @@ -326,7 +322,6 @@ Create the container storage directory::

Create the ``/srv/syn/01.cortex/docker-compose.yaml`` file with contents::

version: "3.3"
services:
01.cortex:
user: "999"
Expand All @@ -348,8 +343,8 @@ Create the ``/srv/syn/01.cortex/docker-compose.yaml`` file with contents::

Start the container::

docker-compose --file /srv/syn/01.cortex/docker-compose.yaml pull
docker-compose --file /srv/syn/01.cortex/docker-compose.yaml up -d
docker compose --file /srv/syn/01.cortex/docker-compose.yaml pull
docker compose --file /srv/syn/01.cortex/docker-compose.yaml up -d

.. note::

Expand Down
Loading

0 comments on commit 09c1224

Please sign in to comment.