Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V5.38 documentation #4914

Merged
merged 19 commits into from
Aug 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 32 additions & 21 deletions source/comply/data-retention-policy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,40 @@ Data Retention Policy (E20)

By default, Mattermost stores all message history providing an unlimited search history to admins and end users.

In Mattermost Enterprise E20, you can set a custom policy to manage how long messages and file uploads are kept in Mattermost channels and direct messages.
In Mattermost Enterprise E20, you can set a global retention policy as well as custom retention policies to manage how long messages and file uploads are kept in Mattermost channels and Direct Messages

.. warning::
Once a message or a file is deleted, the action is irreversible. Please use caution when setting up a custom data retention policy.
Once a message or a file is deleted, the action is irreversible. Please use caution when setting up global or custom data retention policies.

Configuring a Data Retention Policy
------------------------------------
Configuring a Global Data Retention Policy
-------------------------------------------

To set a custom data retention policy:
To set a global data retention policy in Mattermost v5.38 and later:

1. Go to **System Console > Compliance > Data Retention Policy**.
2. Select a **Message Retention** option. When a time is specified, messages, including file attachments, older than the duration you set will be deleted at the specified time. The minimum retention period is one day.
3. Select a **File Retention** option. When a time is specified uploaded files which are older than the duration you set will be deleted from your file storage system (either from your local disk or your Amazon S3 service as specified in **System Console > Environment > File Storage** at the specified time. The minimum retention period is one day.
4. Set the start time of the daily scheduled data retention job. Choose a time when fewer people are using your system. Must be a 24-hour time stamp in the form HH:MM.
1. Go to **System Console > Compliance > Data Retention Policies**.
2. Select **Edit** from the menu located to the right of the **Global retention policy** table.
3. Specify a global retention policy for channel messages and Direct Messages by selecting a **Channel & direct message retention** option from the dropdown, then set how long to keep those messages. When a time is set, messages and file attachments older than the duration you set will be deleted. The minimum retention period is one day.
4. Select a **File retention** option from the dropdown. Set the number of days or ears to keep files. When a time is set, uploaded files which are older than the duration you set will be deleted from your file storage system (either from your local disk or your Amazon S3 service as specified in **System Console > Environment > File Storage**. The minimum retention period is one day. The global file policy deletes all files regardless of whether they're in a direct message, private, or public channel.
5. Under the **Policy log** section, select **Edit** to specify the start time of the daily scheduled data retention job. Choose a time when fewer people are using your system.

Save the settings and restart your server. Messages and files older than the duration you set will be deleted at the specified server time, if applicable.
Select **Save**. Messages and files older than the duration you set will be deleted at the specified server time, as applicable.

Configuring a Custom Data Retention Policy
-------------------------------------------

To set a custom data retention policy in Mattermost v5.38 and later:

1. Go to **System Console > Compliance > Data Retention Policies**.
2. Select **Add policy** to the right of the **Custom retention policies** table.
3. Specify a name for your policy.
4. Specify a custom retention policy for channel and Direct Messages by selecting a **Channel & direct message retention** option from the dropdown, then set how long to keep uploaded files. When a time is set, messages and file attachments older than the duration you set will be deleted. The minimum retention period is one day.
5. Assign teams and channels to this policy by selecting **Add teams** and searching for a specific team, or by selecting **Add channels** and searching for a specific channel. If only teams are specified, all channels for selected teams will be included in the a policy.
6. Under the **Policy log** section, select **Edit** to specify the start time of the daily scheduled data retention job. Choose a time when fewer people are using your system. If a time is already set for a global retention policy, then the same time applies to custom data retention policies.

Save the settings. Messages and files older than the duration you set will be deleted at the specified server time, as applicable.

Running a Deletion Job Manually
--------------------------------
You can also run the deletion job manually at any time by selecting **Run Deletion Job Now** in **System Console > Compliance > Data Retention Policy**.

.. note::
Expand All @@ -33,12 +50,14 @@ Frequently Asked Questions (FAQs)
What happens when a message is deleted?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The message is removed from the Mattermost user interface and deleted from the ``Posts`` table. The message is no longer searchable and cannot be retrieved in pinned posts or saved posts lists.
The message is removed from the Mattermost user interface and deleted from the ``Posts`` table. The message is no longer searchable and cannot be retrieved in pinned posts or saved posts lists.

Replies that did not exceed the message duration are still displayed in the user interface. However, further replies are no longer possible.

What happens when a file is deleted?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If there was a file attached to the message, it will be removed from the user interface only.

What happens when a file is deleted by the file retention policy?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The file attachment is removed from the Mattermost user interface, deleted from the ``FileInfo`` table, and from your local disk or Amazon S3 service as specified in **System Console > Environment > File Storage**.

Expand All @@ -59,14 +78,6 @@ Why do I see ``Pending`` in the deletion job table with no details?

This usually means another data retention job is in progress. You can verify this in the deletion job table in **System Console > Compliance > Data Retention Policy**.

If no jobs are in progress and the job has stayed ``Pending`` for more than 2 minutes, then you may not have restarted your server after enabling the data retention policy. Restart your server and try again.

How do I set a custom policy per team or channel?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Setting custom policies for each team and channel are in the roadmap but not yet supported.

If you are interested in this feature, consider upvoting the `existing feature proposal <https://mattermost.uservoice.com/forums/306457-general/suggestions/31731844-ee-data-retention-policy-for-individual-teams-and>`__ and share your feedback in the comments.

How is data retention handled in the mobile apps?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,9 @@ def setup(app):
# built documents.
#
# The short X.Y version.
# version = '5.37'
# version = '5.38'
# The full version, including alpha/beta/rc tags.
# release = '5.37'
# release = '5.38'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
40 changes: 27 additions & 13 deletions source/configure/configuration-settings.rst
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
Configuration Settings
======================

.. note::
The order of the configuration settings below are reflective of a reorganization of the System Console in version 5.12 released on June 16th, 2019. To view the configuration settings based on the organization of the System Console in versions prior to version 5.12, please see `this documentation <https://docs.mattermost.com/administration/prev-config-settings.html>`_ instead.

Mattermost configuration settings are maintained in the ``config.json`` configuration file, located in the ``mattermost/config`` directory. You can modify the configuration file using the System Console, or by using a text editor to modify it directly.

Mattermost must have write permissions to ``config.json``, otherwise changes made in the System Console will have no effect.
.. important::

Mattermost must have write permissions to ``config.json``, otherwise changes made in the System Console will have no effect.

On new installations from v5.14, the ``default.json`` file used to create the initial ``config.json`` has been removed from the binary and replaced with a build step that generates a fresh ``config.json``. This is to ensure the initial configuration file has all the correct defaults provided in the server code. Existing ``config.json`` files are not affected by this change.

On new installations starting from v5.14, the ``default.json`` file used to create the initial ``config.json`` has been removed from the binary and replaced with a build step that generates a fresh ``config.json``. This is to ensure the initial configuration file has all the correct defaults provided in the server code. Existing ``config.json`` files are not affected by this change.
From Mattermost v5.38 (released August 16, 2021), the “config watcher” (the mechanism that automatically reloads the ``config.json`` file) has been deprecated in favor of the mmctl command `mmctl config reload <https://docs.mattermost.com/manage/mmctl-command-line-tool.html#mmctl-config-reload>`__ that must be run to apply configuration changes after they're made. This change will improve configuration performance and robustness.

Configuration in Database
--------------------------
Expand Down Expand Up @@ -1274,7 +1275,7 @@ Where:
- Advanced logging supports hot-reloading of logger configuration.

+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| This feature’s ``config.json`` setting is ``LogSettings.AdvancedLoggingConfig`` which can contain a filespec to another config file, a database DSN, or JSON. |
| This feature’s ``config.json`` setting is ``LogSettings.AdvancedLoggingConfig`` which can contain a filespec to another config file, a database DSN, or JSON. |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Options outlined in `this text file <https://github.com/mattermost/docs/files/5066579/Log.Settings.Options.txt>`__ are described in the following table.
Expand Down Expand Up @@ -1380,7 +1381,7 @@ Options outlined in `this text file <https://github.com/mattermost/docs/files/50
.. Note::
Filenames for ``AdvancedLoggingConfig`` can contain an absolute filename, a relative filename, or embedded JSON.

See the :download:`Advanced Logging Options Sample JSON ZIP file <../samples/advanced-logging-options-sample-json.zip>` for a sample configuration file.
See the :download:`Advanced Logging Options Sample JSON ZIP file <../samples/advanced-logging-options-sample-json.zip>` for a sample configuration file.

Standard Logging
~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -1436,7 +1437,7 @@ Changes to this setting require a server restart before taking effect.
Colorize plain text console logs
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This setting can only be changed from ``config.json`` file, it cannot be changed from the System Console user interface.
This setting can only be changed from ``config.json`` file, it cannot be changed from the System Console user interface.

**True**: When logged events are output to the console as plain text, colorize log levels details.

Expand Down Expand Up @@ -3834,9 +3835,22 @@ Signature Public Key Files

In addition to the Mattermost plugin signing key built into the server, each public key specified here is trusted to validate plugin signatures.

+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| This feature's ``config.json`` setting is ``"SignaturePublicKeyFiles": {}`` with with string array input consisting of contents that are relative or absolute paths to signature files. |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| This feature's ``config.json`` setting is ``"SignaturePublicKeyFiles": {}`` with string array input consisting of contents that are relative or absolute paths to signature files. |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Chimera OAuth Proxy URL
^^^^^^^^^^^^^^^^^^^^^^^

Specify the `Chimera <https://github.com/mattermost/chimera>`__ URL used by Mattermost plugins to connect with pre-created OAuth applications.

+-------------------------------------------------------------------------------------------------------------------------+
| This feature's ``config.json`` setting is ``"ChimeraOAuthProxyUrl": {}`` with string input. |
+-------------------------------------------------------------------------------------------------------------------------+

.. note::

This setting isn't available in the System Console and can only be set in ``config.json``.

Autolink
~~~~~~~~
Expand Down Expand Up @@ -5186,7 +5200,7 @@ Replica Lag Settings
Specifies a connection string and user-defined SQL queries on the database to measure replica lag for a single replica instance. These settings monitor absolute lag based on binlog distance/transaction queue length, and the time taken for the replica to catch up.

+-------------------------------------------------------------------------------------------------------+
| This feature’s ``config.json`` setting is ``"ReplicaLagSettings": []`` with string array input. |
| This feature’s ``config.json`` setting is ``"ReplicaLagSettings": []`` with string array input. |
+-------------------------------------------------------------------------------------------------------+

String array input consists of:
Expand Down Expand Up @@ -5412,7 +5426,7 @@ Enable Reliable Websockets
Enable this setting to make websocket messages more reliable by buffering messages during a connection loss and then re-transmitting all unsent messages when the connection is revived.

+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| This feature's ``config.json`` setting is ``"EnableReliableWebsockets": false`` with options ``true`` and ``false``. |
| This feature's ``config.json`` setting is ``"EnableReliableWebsockets": true`` with options ``true`` and ``false``. |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Remote Clusters
Expand Down
3 changes: 2 additions & 1 deletion source/guides/setup-onboard-manage-comply.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ Cloud Workspaces
:maxdepth: 1
:glob:

/manage/cloud-team-channel.rst
/manage/cloud-billing.rst
/manage/cloud-reporting.rst
/manage/cloud-user-satisfaction-surveys.rst
Expand Down Expand Up @@ -159,4 +160,4 @@ Cloud Workspaces
/comply/cloud-compliance-and-oversight.rst
/comply/cloud-compliance-export.rst
/comply/cloud-data-retention-policy.rst
/comply/cloud-custom-terms-of-service.rst
/comply/cloud-custom-terms-of-service.rst
Loading