# BMA protégé derrière le SSO depuis YunoHost v3.7?

**URL:** https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409
**Category:** Self-hosting
**Tags:** duniter, bma, yunohost
**Created:** [20 June 2020 09:48 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409 "2020-06-20T09:48:43Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![vincentux](https://forum.duniter.org/user_avatar/forum.duniter.org/vincentux/32/172_2.png) [@vincentux](https://forum.duniter.org/u/vincentux)
#### Post date: [20 June 2020 09:48 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/1 "2020-06-20T09:48:43Z")

</div>

J’ai suivi le même [processus](https://forum.duniter.org/t/installation-paquet-duniter-pour-yunohost/6734/49) que @Galuel mais Césium me dit que c’est un nœud miroir…

Pourtant dans la fiche de pair et dans la web-ui, c’est bien ma clé membre qui apparaît. 🤔

 ![ksnip_20200620-113856](https://forum.duniter.org/uploads/default/original/2X/b/b1c2aab4a65db04e5afd1450ea641484c1289881.png)

Les logs  
en ssh :

> **[Alternatives to](https://alt.framasoft.org/framabin/)**
>
> Framasoft is at full capacity, but we are not leaving you:
> we are part of the collective CHATONS and other members of the network will
> be delighted to welcome you.

dans la web-ui :

> **[Alternatives to](https://alt.framasoft.org/framabin/)**
>
> Framasoft is at full capacity, but we are not leaving you:
> we are part of the collective CHATONS and other members of the network will
> be delighted to welcome you.

---

<div class="post-metadata">

### Author: ![fdrubigny](https://forum.duniter.org/user_avatar/forum.duniter.org/fdrubigny/32/8678_2.png) [@fdrubigny](https://forum.duniter.org/u/fdrubigny)
#### Post date: [20 June 2020 13:17 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/2 "2020-06-20T13:17:37Z")

</div>

Bizarrement, je me trouve avec le même problème que @vincentux alors que jusqu’à présent mon noeud était en mode accès privé.  
Je viens de réussir à configurer comme il faut pour qu’il passe en noeud accessible publiquement, il calcul bien les blocs, la clef affichée est bien la mienne, etc. mais dans Césium si je clique sur mon noeud il dit que c’est un noeud miroir…

---

<div class="post-metadata">

### Author: ![Moul](https://forum.duniter.org/user_avatar/forum.duniter.org/moul/32/9145_2.png) [@Moul](https://forum.duniter.org/u/Moul)
#### Post date: [20 June 2020 16:01 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/3 "2020-06-20T16:01:38Z")

</div>

Vous remontez un bug que j’ai constaté lors de la [mise à jour vers YunoHost 3.7 dans laquelle il y a eu des changements dans le mécanisme de permission du SSO](https://forum.yunohost.org/t/yunohost-3-7-release-sortie-de-yunohost-3-7/10648). Du coup, l’API BMA n’est accessible que lorsque vous êtes connectés et ne l’est plus publiquement. Il faut regarder en détails le problème et voir ce qui a changé.

[https://duniter.vincentux.fr/node/summary](https://duniter.vincentux.fr/node/summary)  
[https://adnlife.nohost.me/node/summary](https://adnlife.nohost.me/node/summary)  
redirigent vers le SSO quand vous n’êtes pas connectés.

Si vous voulez créer un ticket, ça me fera déjà ça de moins à faire.

---

<div class="post-metadata">

### Author: ![fdrubigny](https://forum.duniter.org/user_avatar/forum.duniter.org/fdrubigny/32/8678_2.png) [@fdrubigny](https://forum.duniter.org/u/fdrubigny)
#### Post date: [20 June 2020 16:44 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/4 "2020-06-20T16:44:12Z")

</div>

Salut, je ne comprends pas en fait… j’ai parcouru la discussion, je comprends l’histoire des permissions qui ont changées, cela veut-il dire qu’il faut que l’on rajoute duniter dans les permissions par exemple visiteurs ou tout utilisateurs ?  
Dans le fil de la discussion je ne comprends pas le lien avec notre souci, désolé de faire ma «&nbsp;blonde&nbsp;» mais c’est compliqué un peu pour moi. 🙂  
Tu veux qu’on ouvre un ticket où ? Ici ou sur le forum YunoHost ?

Du coup entre temps, blasé, j’ai recommencé l’opération de supprimer les datas et je refais une synchro…  
De ce que j’ai pu voir dans Césium, lorsque je clique sur le noeud de @vincentux il n’a plus ce problème d’apparaître en mode miroir… mais bon c’est peut-être temporaire finalement en fonction de comme tu nous explique si l’on est connecté ou pas.

---

<div class="post-metadata">

### Author: ![vincentux](https://forum.duniter.org/user_avatar/forum.duniter.org/vincentux/32/172_2.png) [@vincentux](https://forum.duniter.org/u/vincentux)
#### Post date: [20 June 2020 17:47 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/5 "2020-06-20T17:47:44Z")

</div>

> [@Moul](#):
>
> [https://duniter.vincentux.fr/node/summary](https://duniter.vincentux.fr/node/summary)  
> [https://adnlife.nohost.me/node/summary](https://adnlife.nohost.me/node/summary)  
> redirigent vers le SSO quand vous n’êtes pas connectés.

Moi j’ai une **502 Bad Gateway** sur cette page.

Peux-tu ressayer de ton côté ? J’ai mis Duniter dans le groupe “visiteur” de Yunohost.

---

<div class="post-metadata">

### Author: ![elois](https://forum.duniter.org/user_avatar/forum.duniter.org/elois/32/1541_2.png) [@elois](https://forum.duniter.org/u/elois)
#### Post date: [20 June 2020 18:21 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/6 "2020-06-20T18:21:59Z")

</div>

> [@Moul](#):
>
> [YunoHost Portal](https://duniter.vincentux.fr/node/summary)

> [@Installation paquet Duniter pour YunoHost](https://forum.duniter.org/t/installation-paquet-duniter-pour-yunohost/6734/62):
>
> Moi j’ai une **502 Bad Gateway** sur cette page.

idem 🙂

---

<div class="post-metadata">

### Author: ![fdrubigny](https://forum.duniter.org/user_avatar/forum.duniter.org/fdrubigny/32/8678_2.png) [@fdrubigny](https://forum.duniter.org/u/fdrubigny)
#### Post date: [20 June 2020 18:25 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/7 "2020-06-20T18:25:18Z")

</div>

Moi quand j’ai un 502 c’est quand le noeud c’est arrêté pour x raison… je relance duniter via la console de commande en ssh, ensuite j’actualise la page et ça re-fonctionne.

---

<div class="post-metadata">

### Author: ![fdrubigny](https://forum.duniter.org/user_avatar/forum.duniter.org/fdrubigny/32/8678_2.png) [@fdrubigny](https://forum.duniter.org/u/fdrubigny)
#### Post date: [20 June 2020 18:26 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/8 "2020-06-20T18:26:28Z")

</div>

Pour l’instant je re-tente une synchro et je changerai les permissions dans YunoHost.

---

<div class="post-metadata">

### Author: ![fdrubigny](https://forum.duniter.org/user_avatar/forum.duniter.org/fdrubigny/32/8678_2.png) [@fdrubigny](https://forum.duniter.org/u/fdrubigny)
#### Post date: [21 June 2020 06:50 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/9 "2020-06-21T06:50:40Z")

</div>

Bonjour,  
le noeud n’apparaît plus en miroir ! Donc a priori la gestion de permission depuis l’extérieur pour les App tierces a fonctionné…  
Maintenant je ne sais pas comment remédier au fait que l’interface du SSO soit accessible à tout le monde…

[YunoHost Portal](https://duniter.adn.life/node/summary) indique :

 ![Capture d’écran 2020-06-21 à 08.53.40](https://forum.duniter.org/uploads/default/original/2X/e/edc2f19373692233734d5f744a0cdd99e15ffa0c.png)

Par contre [https://duniter.adn.life](https://duniter.adn.life) redirige automatiquement vers la page login du SSO… ☹

---

<div class="post-metadata">

### Author: ![Moul](https://forum.duniter.org/user_avatar/forum.duniter.org/moul/32/9145_2.png) [@Moul](https://forum.duniter.org/u/Moul)
#### Post date: [21 June 2020 11:27 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/10 "2020-06-21T11:27:22Z")

</div>

Bon, excusez-moi. J’ai cru ce que j’ai dis. Mais, après vérification, BMA est toujours bien accessible publiquement. J’ai dû avoir un problème temporaire de mon côté. C’est de nouveau fonctionnel sur mon nœud.

Concernant le problème rencontré avec Césium, je sais pas.

> [@fdrubigny](#):
>
> Par contre [https://duniter.adn.life](https://duniter.adn.life) redirige automatiquement vers la page login du SSO

Oui, c’est bien ainsi, l’interface d’administration n’est accessible qu’à toi, l’administrateur du nœud Duniter. Tu peux t’y connecter si tu ne connais pas cette interface d’administration.

---

<div class="post-metadata">

### Author: ![fdrubigny](https://forum.duniter.org/user_avatar/forum.duniter.org/fdrubigny/32/8678_2.png) [@fdrubigny](https://forum.duniter.org/u/fdrubigny)
#### Post date: [21 June 2020 15:50 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/11 "2020-06-21T15:50:11Z")

</div>

Ah ! Super 👍 Merci pour l’info, bon du coup je ne touche plus ! CooL ✌✅👍

---

<div class="post-metadata">

### Author: ![elois](https://forum.duniter.org/user_avatar/forum.duniter.org/elois/32/1541_2.png) [@elois](https://forum.duniter.org/u/elois)
#### Post date: [21 June 2020 16:41 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/12 "2020-06-21T16:41:40Z")

</div>

> [@Moul](#):
>
> l’interface d’administration n’est accessible qu’à toi, l’administrateur du nœud Duniter.

ha bon ?? Pourtant j’y accède :

 ![image](https://forum.duniter.org/uploads/default/original/2X/0/00040a53fe952a9ea832dbd0c5bb42c10f4948ba.png)

---

<div class="post-metadata">

### Author: ![fdrubigny](https://forum.duniter.org/user_avatar/forum.duniter.org/fdrubigny/32/8678_2.png) [@fdrubigny](https://forum.duniter.org/u/fdrubigny)
#### Post date: [21 June 2020 19:11 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/13 "2020-06-21T19:11:29Z")

</div>

Punaise ! Les boules, je croyais que c’était tout bon !..  
Du coup, sais-tu comment dois-je procéder pour que l’interface SSO ne soit effectivement accessible que par moi ?  
Enfin, déjà est-ce possible ?

---

<div class="post-metadata">

### Author: ![elois](https://forum.duniter.org/user_avatar/forum.duniter.org/elois/32/1541_2.png) [@elois](https://forum.duniter.org/u/elois)
#### Post date: [21 June 2020 20:44 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/14 "2020-06-21T20:44:09Z")

</div>

> [@fdrubigny](#):
>
> sais-tu comment dois-je procéder pour que l’interface SSO ne soit effectivement accessible que par moi ?

Non je ne suis pas utilisateur de ynh

---

<div class="post-metadata">

### Author: ![Thatoo](https://forum.duniter.org/letter_avatar/thatoo/32/5_5575768a8748004e209b776fc1b2916d.png) [@Thatoo](https://forum.duniter.org/u/Thatoo)
#### Post date: [29 August 2020 23:11 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/15 "2020-08-29T23:11:06Z")

</div>

Moi aussi, sur [https://g1.leprette.fr/node/summary](https://g1.leprette.fr/node/summary), passé aujourd’hui sous Yunohost v4, j’ai une méchante 502 bad gateway.  
Mon noeud aussi apparaît en privé sous Cesium.  
Il faut mettre Duniter dans le groupe visiteur c’est ça?  
Edit : NON, ça ne change rien…

---

<div class="post-metadata">

### Author: ![Thatoo](https://forum.duniter.org/letter_avatar/thatoo/32/5_5575768a8748004e209b776fc1b2916d.png) [@Thatoo](https://forum.duniter.org/u/Thatoo)
#### Post date: [6 September 2020 10:56 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/16 "2020-09-06T10:56:41Z")

</div>

C’est bien qu’il faille s’identifier pour accéder à la webui!

Ce que je ne comprends pas c’est que identifié ou non, les pages  
[https://g1.leprette.fr/network/peering](https://g1.leprette.fr/network/peering)  
ou  
[https://g1.leprette.fr/blockchain/current](https://g1.leprette.fr/blockchain/current)  
ou  
[https://g1.leprette.fr/node/summary](https://g1.leprette.fr/node/summary)  
sont des page 502 bad gateway de nginx au lieu d’afficher des informations json comme chez  
[https://g1.presles.fr/blockchain/current](https://g1.presles.fr/blockchain/current)  
[https://g1.presles.fr/node/summary](https://g1.presles.fr/node/summary)  
[https://g1.presles.fr/network/peering](https://g1.presles.fr/network/peering)

peut-être que ça n’a rien à voir mais je préfère le mentionner car si c’est en lien, je me dis que ça peut aider à debugger.

---

<div class="post-metadata">

### Author: ![Moul](https://forum.duniter.org/user_avatar/forum.duniter.org/moul/32/9145_2.png) [@Moul](https://forum.duniter.org/u/Moul)
#### Post date: [3 October 2020 10:24 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/17 "2020-10-03T10:24:32Z")

</div>

@vincentux, @Thatoo, I fixed Duniter package for YunoHost. You should now be able to access BMA. Please let me know if you still have any issues.  
If you want to check what changed: [https://github.com/YunoHost-Apps/duniter\_ynh/issues/89](https://github.com/YunoHost-Apps/duniter_ynh/issues/89)  
The module support have been removed, and the package is still not using the new permission system since there is support missing to protect two paths.

---

<div class="post-metadata">

### Author: ![Thatoo](https://forum.duniter.org/letter_avatar/thatoo/32/5_5575768a8748004e209b776fc1b2916d.png) [@Thatoo](https://forum.duniter.org/u/Thatoo)
#### Post date: [5 October 2020 16:52 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/18 "2020-10-05T16:52:41Z")

</div>

> [@Moul](#):
>
> The module support have been removed, and the package is still not using the new permission system since there is support missing to protect two paths.

J’avais lu ça dans github er je me demandais ce que ça signifiait.  
Je vais tester la nouvelle version et je vous dis.

---

<div class="post-metadata">

### Author: ![Thatoo](https://forum.duniter.org/letter_avatar/thatoo/32/5_5575768a8748004e209b776fc1b2916d.png) [@Thatoo](https://forum.duniter.org/u/Thatoo)
#### Post date: [8 October 2020 20:12 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/19 "2020-10-08T20:12:26Z")

</div>

Je n’ai pas eu l’impression que le problème du privé était résolu, même après la relance d’une synchro au cas où…

---

<div class="post-metadata">

### Author: ![Thatoo](https://forum.duniter.org/letter_avatar/thatoo/32/5_5575768a8748004e209b776fc1b2916d.png) [@Thatoo](https://forum.duniter.org/u/Thatoo)
#### Post date: [11 November 2020 20:15 UTC](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409/20 "2020-11-11T20:15:32Z")

</div>

Je viens de refaire

```auto
yunohost app upgrade duniter -u https://github.com/YunoHost-Apps/duniter_ynh

```

et pas d’amélioration,  
[https://g1.leprette.fr/network/peering](https://g1.leprette.fr/network/peering) m’affiche une 502 bad gateway que je sois deconnecté ou pas d’ailleurs. Même en étant connecté au portail yunohost, j’ai cette erreur et j’apparais toujours en privé dans Cesium…  
Est-ce que je peux faire un test pour aider à débugger?

[Next page](https://forum.duniter.org/t/bma-protege-derriere-le-sso-depuis-yunohost-v3-7/7409.md?page=2)
