YunoHost-Apps / mautrix_signal_ynh

Matrix signal package for YunoHost
GNU Affero General Public License v3.0
4 stars 10 forks source link

You are not whitelisted to use this bridge. #58

Closed Thatoo closed 1 year ago

Thatoo commented 1 year ago

Describe the bug

After joining the room, the bot leave immediately saying

You are not whitelisted to use this bridge.

If you are the owner of this bridge, see the bridge.permissions section in your config file.

Context

Steps to reproduce

If you are the owner of this bridge, see the bridge.permissions section in your config file.


### Expected behavior

The bot should accept the invitation and remain in the room

### Other information

In /opt/yunohost/mautrix_telegram/config.yaml, the `bridge.permissions` are as follow : 

Homeserver details

homeserver:

The address that this appservice can use to connect to the homeserver.

 address: https://matrix.MYDOMAIN.fr
 # The domain of the homeserver (for MXIDs, etc).
 domain: MYDOMAIN.fr

 # Permissions for using the bridge.
 # Permitted values:
 #      relay - Allowed to be relayed through the bridge, no access to commands.
 #       user - Use the bridge with puppeting.
 #      admin - Use and administrate the bridge.
 # Permitted keys:
 #        * - All Matrix users
 #   domain - All users on that homeserver
 #     mxid - Specific user
 permissions:
     '*': relay
     domain: user
     xxxx@MYDOMAIN.fr: admin


and the user inviting the bot is thatoo@MYDOMAIN.fr so it is one of the user on that homeserver.

Any idea what I can do to solve my issue?
Thatoo commented 1 year ago

sudo tail -f /var/log/mautrix_signal/mautrix_signal.log gives :

[2022-10-17 02:40:35,107] [INFO@aiohttp.access] 127.0.0.1 [17/Oct/2022:00:40:35 +0000] "PUT /transactions/25?access_token=<TOKEN> HTTP/1.1" 200 158 "-" "Synapse/1.67.0"
[2022-10-17 02:40:35,697] [INFO@aiohttp.access] 127.0.0.1 [17/Oct/2022:00:40:35 +0000] "PUT /transactions/26?access_token=<TOKEN> HTTP/1.1" 200 158 "-" "Synapse/1.67.0"
[2022-10-17 02:40:36,126] [INFO@aiohttp.access] 127.0.0.1 [17/Oct/2022:00:40:36 +0000] "PUT /transactions/27?access_token=<TOKEN> HTTP/1.1" 200 158 "-" "Synapse/1.67.0"
[2022-10-17 02:40:36,588] [INFO@aiohttp.access] 127.0.0.1 [17/Oct/2022:00:40:36 +0000] "PUT /transactions/28?access_token=<TOKEN> HTTP/1.1" 200 158 "-" "Synapse/1.67.0"
Thatoo commented 1 year ago

Comparing with other config.yaml of other bridges, I understood that it should not be

permissions:
         '*': relay
         domain: user
         xxxx@MYDOMAIN.fr: admin

but it should be

permissions:
         '*': relay
         MYDOMAIN.fr: user
         xxxx@MYDOMAIN.fr: admin

I guess, at install I did not write MYDOMAIN.fr and I instead let domain written...