-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f132db1
commit 2adf177
Showing
3 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
There is a new optional Boolean option, `multiSFT.enabled`, in `brig.yaml`, | ||
allowing calls between federated SFT servers. If provided, the field | ||
`is_federating` in the response of `/calls/config/authenticated` will reflect | ||
`multiSFT.enabled`'s value. | ||
|
||
Example: | ||
|
||
``` | ||
# [brig.yaml] | ||
multiSFT: | ||
enabled: true | ||
``` | ||
|
||
Also, the optional object `sftToken` with its fields `ttl`, `secret`, and | ||
`secondsBeforeNew` define whether an SFT credential would be rendered in the | ||
response of `/calls/config/authenticated`. The field `ttl` determines the | ||
seconds for the credential to be valid, `secondsBeforeNew` determines the amount | ||
of time which has to pass before a new token will be generated, preventing one | ||
client to create too many new credentials, and `secret` is the path to the | ||
secret shared with SFT to create credentials. | ||
|
||
Example: | ||
|
||
``` | ||
# [brig.yaml] | ||
sft: | ||
sftBaseDomain: sft.wire.example.com | ||
sftSRVServiceName: sft | ||
sftDiscoveryIntervalSeconds: 10 | ||
sftListLength: 20 | ||
sftToken: | ||
ttl: 120 | ||
secret: /path/to/secret | ||
secondsBeforeNew: 60 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
The new endpoint `/calls/config/authenticated` returns the same data as | ||
`/calls/config/v2` and in addition features a new optional field `is_federating` | ||
which reflects whether SFT federation is enabled or not. Also, the new optional | ||
fields `username` and `credential` in the `sft_servers_all` object of the | ||
endpoint's response provide the SFT credential which the authenticated client | ||
should use for connecting to SFT. The credential will only be generated if a | ||
secret shared between SFT and Brig has been configured for Brig. Repeated calls | ||
to the endpoint will not lead to newly issued SFT credentials until a configured | ||
timespan has been elapsed. During this timespan, the already provided SFT | ||
credential will be replayed in the endpoint's response. For this to work, | ||
clients have to send the `Z-Client` header in their requests to this new | ||
endpoint. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters