1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

Fix upgrade issue if macaroon_secret_key is undefined

This commit is contained in:
Josué Tille 2024-04-15 10:51:23 +02:00
parent bb18bd7fb2
commit a6c090bd9b
No known key found for this signature in database
GPG key ID: 5F259226AD51F2F5

View file

@ -1604,7 +1604,7 @@ room_prejoin_state:
# For more detail about this issue you can see : https://matrix.org/blog/2019/01/15/further-details-on-critical-security-update-in-synapse-affecting-all-versions-prior-to-0-34-1-cve-2019-5885/ # For more detail about this issue you can see : https://matrix.org/blog/2019/01/15/further-details-on-critical-security-update-in-synapse-affecting-all-versions-prior-to-0-34-1-cve-2019-5885/
# The problem is that we can't just say generate a new value if the package has not already defined a value. The reason is that changing this value logout all user. And in case of a user has enabled the encryption, the user might lost all conversation !! # The problem is that we can't just say generate a new value if the package has not already defined a value. The reason is that changing this value logout all user. And in case of a user has enabled the encryption, the user might lost all conversation !!
# So for the old install we just leave this as it is. And for the new install we use a real macaroon. # So for the old install we just leave this as it is. And for the new install we use a real macaroon.
{%- if macaroon_secret_key %} {%- if macaroon_secret_key is defined %}
macaroon_secret_key: '{{ macaroon_secret_key }}' macaroon_secret_key: '{{ macaroon_secret_key }}'
{%- endif %} {%- endif %}