Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Revert "Merge branch 'quenting/hotfix-delegated-auth-admin' of https:…
Browse files Browse the repository at this point in the history
…//github.com/matrix-org/synapse into quenting/hotfix-delegated-auth-admin"

This reverts commit b04af11, reversing
changes made to 10b4e12.
  • Loading branch information
hughns committed Sep 4, 2023
1 parent b04af11 commit 01597b8
Show file tree
Hide file tree
Showing 184 changed files with 1,688 additions and 2,097 deletions.
3 changes: 2 additions & 1 deletion .ci/scripts/calculate_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ def set_output(key: str, value: str):
"database": "sqlite",
"extras": "all",
}
for version in ("3.9", "3.10", "3.11", "3.12.0-rc.1")
for version in ("3.9", "3.10", "3.11")
)


trial_postgres_tests = [
{
"python-version": "3.8",
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/latest_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ jobs:
# `pip install matrix-synapse[all]` as closely as possible.
- run: poetry update --no-dev
- run: poetry run pip list > after.txt && (diff -u before.txt after.txt || true)
- name: Remove unhelpful options from mypy config
run: sed -e '/warn_unused_ignores = True/d' -e '/warn_redundant_casts = True/d' -i mypy.ini
- name: Remove warn_unused_ignores from mypy config
run: sed '/warn_unused_ignores = True/d' -i mypy.ini
- run: poetry run mypy
trial:
needs: check_repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/twisted_trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
poetry remove twisted
poetry add --extras tls git+https://github.com/twisted/twisted.git#${{ inputs.twisted_ref || 'trunk' }}
poetry install --no-interaction --extras "all test"
- name: Remove unhelpful options from mypy config
run: sed -e '/warn_unused_ignores = True/d' -e '/warn_redundant_casts = True/d' -i mypy.ini
- name: Remove warn_unused_ignores from mypy config
run: sed '/warn_unused_ignores = True/d' -i mypy.ini
- run: poetry run mypy

trial:
Expand Down
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion changelog.d/15816.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16008.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16099.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16113.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16121.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16135.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16136.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16155.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16168.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16170.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16171.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16172.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16175.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16178.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16179.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16180.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16183.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16184.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16185.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16186.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16187.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16188.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16201.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16205.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16210.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16211.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16212.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16213.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16220.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/16241.misc

This file was deleted.

2 changes: 0 additions & 2 deletions docs/admin_api/account_validity.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Account validity API

**Note:** This API is disabled when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)

This API allows a server administrator to manage the validity of an account. To
use it, you must enable the account validity feature (under
`account_validity`) in Synapse's configuration.
Expand Down
2 changes: 0 additions & 2 deletions docs/admin_api/register_api.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Shared-Secret Registration

**Note:** This API is disabled when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)

This API allows for the creation of users in an administrative and
non-interactive way. This is generally used for bootstrapping a Synapse
instance with administrator accounts.
Expand Down
10 changes: 1 addition & 9 deletions docs/admin_api/user_admin_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ The following parameters should be set in the URL:
- `name` - Is optional and filters to only return users with user ID localparts
**or** displaynames that contain this value.
- `guests` - string representing a bool - Is optional and if `false` will **exclude** guest users.
Defaults to `true` to include guest users. This parameter is not supported when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)
Defaults to `true` to include guest users.
- `admins` - Optional flag to filter admins. If `true`, only admins are queried. If `false`, admins are excluded from
the query. When the flag is absent (the default), **both** admins and non-admins are included in the search results.
- `deactivated` - string representing a bool - Is optional and if `true` will **include** deactivated users.
Expand Down Expand Up @@ -390,8 +390,6 @@ The following actions are **NOT** performed. The list may be incomplete.

## Reset password

**Note:** This API is disabled when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)

Changes the password of another user. This will automatically log the user out of all their devices.

The api is:
Expand All @@ -415,8 +413,6 @@ The parameter `logout_devices` is optional and defaults to `true`.

## Get whether a user is a server administrator or not

**Note:** This API is disabled when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)

The api is:

```
Expand All @@ -434,8 +430,6 @@ A response body like the following is returned:

## Change whether a user is a server administrator or not

**Note:** This API is disabled when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)

Note that you cannot demote yourself.

The api is:
Expand Down Expand Up @@ -729,8 +723,6 @@ delete largest/smallest or newest/oldest files first.

## Login as a user

**Note:** This API is disabled when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)

Get an access token that can be used to authenticate as that user. Useful for
when admins wish to do actions on behalf of a user.

Expand Down
4 changes: 2 additions & 2 deletions docs/development/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Note that this schedule might be modified depending on the availability of the
Synapse team, e.g. releases may be skipped to avoid holidays.

Release announcements can be found in the
[release category of the Matrix blog](https://matrix.org/category/releases).
[release category of the Matrix blog](https://matrix.org/blog/category/releases).

## Bugfix releases

Expand All @@ -34,4 +34,4 @@ be held to be released together.

In some cases, a pre-disclosure of a security release will be issued as a notice
to Synapse operators that there is an upcoming security release. These can be
found in the [security category of the Matrix blog](https://matrix.org/category/security).
found in the [security category of the Matrix blog](https://matrix.org/blog/category/security).
2 changes: 0 additions & 2 deletions docs/usage/administration/admin_api/registration_tokens.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Registration Tokens

**Note:** This API is disabled when MSC3861 is enabled. [See #15582](https://github.com/matrix-org/synapse/pull/15582)

This API allows you to manage tokens which can be used to authenticate
registration requests, as proposed in
[MSC3231](https://github.com/matrix-org/matrix-doc/blob/main/proposals/3231-token-authenticated-registration.md)
Expand Down
15 changes: 0 additions & 15 deletions docs/usage/configuration/config_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -3420,7 +3420,6 @@ Has the following sub-options:
to style the login flow according to the identity provider in question.
See the [spec](https://spec.matrix.org/latest/) for possible options here.
* `server_url`: The URL of the CAS authorization endpoint.
* `protocol_version`: The CAS protocol version, defaults to none (version 3 is required if you want to use "required_attributes").
* `displayname_attribute`: The attribute of the CAS response to use as the display name.
If no name is given here, no displayname will be set.
* `required_attributes`: It is possible to configure Synapse to only allow logins if CAS attributes
Expand All @@ -3434,7 +3433,6 @@ Example configuration:
cas_config:
enabled: true
server_url: "https://cas-server.com"
protocol_version: 3
displayname_attribute: name
required_attributes:
userGroup: "staff"
Expand Down Expand Up @@ -3867,19 +3865,6 @@ Example configuration:
```yaml
forget_rooms_on_leave: false
```
---
### `exclude_rooms_from_sync`
A list of rooms to exclude from sync responses. This is useful for server
administrators wishing to group users into a room without these users being able
to see it from their client.

By default, no room is excluded.

Example configuration:
```yaml
exclude_rooms_from_sync:
- !foo:example.com
```

---
## Opentracing
Expand Down
9 changes: 9 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,18 @@ ignore_missing_imports = True
[mypy-saml2.*]
ignore_missing_imports = True

[mypy-service_identity.*]
ignore_missing_imports = True

[mypy-srvlookup.*]
ignore_missing_imports = True

# https://github.com/twisted/treq/pull/366
[mypy-treq.*]
ignore_missing_imports = True

[mypy-incremental.*]
ignore_missing_imports = True

[mypy-setuptools_rust.*]
ignore_missing_imports = True
Loading

0 comments on commit 01597b8

Please sign in to comment.