Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed May 15, 2024
1 parent c7bc9c9 commit c9075ec
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions rst/cartridge_admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1751,6 +1751,28 @@ a broken cluster). To do it, perform next actions:
local clusterwide_config = confapplier.get_active_config()
return confapplier.apply_config(clusterwide_config)
.. _cartridge-membership-change-encription-key:

-------------------------------------------------------------------------------
Changing membership encryption key
-------------------------------------------------------------------------------

Since Cartridge 2.11.0 you can use hash of cluster cookie instead
of plian cookie as encryption key in membership.

To migrate to this feature, perform next actions:

#. Set new encryption key on each instance:

.. code-block:: lua
local cluster_cookie = require('cartridge.cluster-cookie')
local digest = require('digest')
local membership = require('membership')
membership.set_encryption_key(digest.md5_hex(cluster_cookie.cookie()))
#. Set param ``set_cookie_hash_membership`` in ``cartridge.cfg`` to ``true``.

.. _cartridge-fix-config:

Expand Down

0 comments on commit c9075ec

Please sign in to comment.