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

wellknown : Centraliser les infos de configuration serveur #297

Open
odelcroi opened this issue Mar 26, 2024 · 2 comments
Open

wellknown : Centraliser les infos de configuration serveur #297

odelcroi opened this issue Mar 26, 2024 · 2 comments
Labels
P2 Priority Medium

Comments

@odelcroi
Copy link
Member

odelcroi commented Mar 26, 2024

Détailler la demande avec des users story par exemple ou du contexte

Why

Simplifier la maintenance
Reutiliser la conf par serveur et pas dans les clients

What

utiliser le wellknow

Le well-known sur Android attend ces infos : (https://github.com/tchapgouv/tchap-android/blob/c433cfe03720001c3dfca582eb02e5aff2cb22e1/matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/auth/data/HomeServerConnectionConfig.kt#L55)

  • private lateinit var homeServerUri: Uri // The URI to use to connect to the homeserver
  • private var identityServerUri: Uri? = null // The URI to use to manage identity
  • private var antiVirusServerUri: Uri? = null // Update the anti-virus server URI
  • private val allowedFingerprints: MutableList = ArrayList() // If using SSL, allow server certs that match these fingerprints
  • private var shouldPin: Boolean = false // If true only allow certs matching given fingerprints, otherwise fallback to
    * standard X509 checks
  • private val tlsVersions: MutableList = ArrayList()
  • private val tlsCipherSuites: MutableList = ArrayList()
  • private var shouldAcceptTlsExtensions: Boolean = true
  • private var allowHttpExtension: Boolean = false
  • private var forceUsageTlsVersions: Boolean = false // Force the usage of TlsVersion. This can be usefull for device on Android version < 20

How

à définir

@yostyle
Copy link

yostyle commented Mar 26, 2024

On peut utiliser le well-known pour configurer l'url de l'Antivirus et l'url des maps pour les styles (geoloc)

@NicolasBuquet
Copy link

Des commentaires dans le code iOS parlent de valeurs supplémentaires : https://github.com/tchapgouv/tchap-ios/blob/1c281a8a9d9154efbed46b7d4af276d2d5671638/Riot/Model/HomeserverConfiguration/HomeserverConfigurationBuilder.swift#L30

TODO : dresser une carte complète des valeurs et sous-valeurs potentiellement fournies par le well-known.

@Delphgateau Delphgateau added the P2 Priority Medium label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Priority Medium
Projects
None yet
Development

No branches or pull requests

4 participants