mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-21 00:48:38 +01:00
Clarification on historical power level handling
This commit is contained in:
parent
c4e54509db
commit
f443b3d5a9
|
|
@ -137,6 +137,7 @@ to send. The process overall is as follows:
|
||||||
{{% boxes/note %}}
|
{{% boxes/note %}}
|
||||||
The reasons we require `<hostname>` rather than `<delegated_hostname>` for SRV
|
The reasons we require `<hostname>` rather than `<delegated_hostname>` for SRV
|
||||||
delegation are:
|
delegation are:
|
||||||
|
|
||||||
1. DNS is insecure (not all domains have DNSSEC), so the target of the delegation
|
1. DNS is insecure (not all domains have DNSSEC), so the target of the delegation
|
||||||
must prove that it is a valid delegate for `<hostname>` via TLS.
|
must prove that it is a valid delegate for `<hostname>` via TLS.
|
||||||
2. Consistency with the recommendations in [RFC6125](https://datatracker.ietf.org/doc/html/rfc6125#section-6.2.1)
|
2. Consistency with the recommendations in [RFC6125](https://datatracker.ietf.org/doc/html/rfc6125#section-6.2.1)
|
||||||
|
|
@ -394,6 +395,25 @@ unspecified.
|
||||||
For an `m.room.member` state event, the user given by the `state_key` of
|
For an `m.room.member` state event, the user given by the `state_key` of
|
||||||
the event.
|
the event.
|
||||||
|
|
||||||
|
**Historical String Power Levels** \
|
||||||
|
|
||||||
|
In order to maintain backwards compatibility with early implementations,
|
||||||
|
power levels can optionally be represented in string format instead of
|
||||||
|
integer format. A homeserver must be prepared to deal with this by parsing
|
||||||
|
the power level from a string. In these cases, the following formatting of the
|
||||||
|
power level string is allowed:
|
||||||
|
|
||||||
|
- a single Base10 integer, no float values or decimal points, optionally with leading zeroes;
|
||||||
|
- optionally with leading or trailing whitespace characters;
|
||||||
|
- optionally prefixed with a single `-` or `+` character before the integer but after leading whitespace padding.
|
||||||
|
|
||||||
|
{{% boxes/warning %}}
|
||||||
|
This behaviour is preserved strictly for backward compatibility only. A
|
||||||
|
homeserver should take reasonable precautions to prevent users from
|
||||||
|
sending new power level events with string values and must never
|
||||||
|
populate the default power levels in a room as string values.
|
||||||
|
{{% /boxes/warning %}}
|
||||||
|
|
||||||
#### Authorization rules
|
#### Authorization rules
|
||||||
|
|
||||||
The rules governing whether an event is authorized depends on a set of
|
The rules governing whether an event is authorized depends on a set of
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue