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

Merge #3

Merged
merged 156 commits into from
Dec 24, 2020
Merged

Merge #3

merged 156 commits into from
Dec 24, 2020

Commits on Nov 12, 2020

  1. Upgrade appservice-discord

    spantaleev committed Nov 12, 2020
    Configuration menu
    Copy the full SHA
    fe7bed5 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2020

  1. Configuration menu
    Copy the full SHA
    6dbb902 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2020

  1. Add some notes about recent Jitsi changes

    A bit late, but still better than nothing.
    spantaleev committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    d64ad91 View commit details
    Browse the repository at this point in the history
  2. Add matrix_services_autostart_enabled variable for preventing service…

    …s autostart
    
    Some people requested that `--tags=start` not set up service autostart.
    
    One can now do `--tags=start --extra-vars="matrix_services_autostart_enabled=false"`
    to just start services ones and not set up autostarting.
    spantaleev committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    90078dd View commit details
    Browse the repository at this point in the history

Commits on Dec 1, 2020

  1. Update matrix-mautrix-facebook config a bit

    This also disables presence if it's disabled for Synapse.
    spantaleev committed Dec 1, 2020
    Configuration menu
    Copy the full SHA
    04da1bd View commit details
    Browse the repository at this point in the history
  2. Create FUNDING.yml

    spantaleev authored Dec 1, 2020
    Configuration menu
    Copy the full SHA
    694e6fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    06ade5e View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2020

  1. Configuration menu
    Copy the full SHA
    edd4081 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'discord-v1.0'

    This may be a bit premature, because the bridge didn't work for me
    the last time I tried it (RC3).
    
    Some bugs have been fixed to make our config compatible with v1.0.0
    though, so it may work for some people (especially those starting
    fresh).
    
    I'm not for shipping potentially broken things, but given that we were
    using `docker.io/halfshot/matrix-appservice-discord:latest` and that
    points to v1.0.0 already (with no other tag we can use), our setup was
    already broken in any case.
    
    Now, at least it has some chance of running.
    spantaleev committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    05cecb5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b3d91ed View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a5ae7e9 View commit details
    Browse the repository at this point in the history

Commits on Dec 6, 2020

  1. Configuration menu
    Copy the full SHA
    ec2a9d4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #744 from hardye/jitsi-recording

    Remove the recording button from the Jitsi UI if recording is disabled.
    spantaleev authored Dec 6, 2020
    Configuration menu
    Copy the full SHA
    cc683a8 View commit details
    Browse the repository at this point in the history
  3. Properly serialize some ma1sd configuration values

    We've had a report of the `connection` value getting cut off,
    supposedly because it contains something that breaks off the string.
    
    Using `|to_json` takes care of it.
    spantaleev committed Dec 6, 2020
    Configuration menu
    Copy the full SHA
    7372480 View commit details
    Browse the repository at this point in the history
  4. fixes config.js

    comments in config.js must begin with two slashes
    wabuMike authored Dec 6, 2020
    Configuration menu
    Copy the full SHA
    9713ac9 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #745 from wabuMike/patch-1

    fixes config.js
    spantaleev authored Dec 6, 2020
    Configuration menu
    Copy the full SHA
    1e0777f View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2020

  1. Update docker-ce.repo to not hardcode $releasever=7

    This keeps it in line with https://download.docker.com/linux/centos/docker-ce.repo
    
    Whether or not Docker works well on CentOS 8 for our purposes
    hasn't been verified yet.
    
    Related to #300
    spantaleev committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    d556aa9 View commit details
    Browse the repository at this point in the history
  2. Upgrade services

    spantaleev committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    8c02f7b View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2020

  1. Automatically enable openid listeners when ma1sd enabled

    ma1sd requires the openid endpoints for certain functionality.
    Example: https://github.com/ma1uta/ma1sd/blob/90b2b5301c34168346fdc5e7eccc09d6958e999f/src/main/java/io/kamax/mxisd/auth/AccountManager.java#L67-L99
    
    If federation is disabled, we still need to expose these openid APIs on the
    federation port.
    
    Previously, we were doing similar magic for Dimension.
    As per its documentation, when running unfederated, one is to enable
    the openid listener as well. As per their recommendation, people
    are advised to do enable it on the Client-Server API port
    and use the `federationUrl` variable to override where the federation
    port is (making federation requests go to the Client-Server API).
    
    Because ma1sd always uses the federation port (unless you do some
    DNS overwriting magic using its configuration -- which we'd rather not
    do), it's better if we just default to putting the `openid` listener
    where it belongs - on the federation port.
    
    With this commit, we retain the "automatically enable openid APIs" thing
    we've been doing for Dimension, but move it to the federation port instead.
    We also now do the same thing when ma1sd is enabled.
    spantaleev committed Dec 8, 2020
    Configuration menu
    Copy the full SHA
    c07c927 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2020

  1. updated matrix-sms-bridge

    benkuly committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    ad92c61 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #747 from benkuly/master

    updated matrix-sms-bridge
    spantaleev authored Dec 9, 2020
    Configuration menu
    Copy the full SHA
    f453d28 View commit details
    Browse the repository at this point in the history
  3. Upgrade Synapse (v1.23.0 -> v1.24.0)

    Because the ARM images are not pushed yet, we hold back to v1.23.0
    for now.
    spantaleev committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    aa86e0d View commit details
    Browse the repository at this point in the history
  4. Upgrade Synapse for ARM (v1.23.0 -> v1.24.0)

    Continuation of aa86e0d, now that ARM images are out.
    spantaleev committed Dec 9, 2020
    Configuration menu
    Copy the full SHA
    245b749 View commit details
    Browse the repository at this point in the history

Commits on Dec 10, 2020

  1. Correct inabillity for appservice-discord to connect

    After recently updating my matrix-docker-ansible-deploy installation, matrix-appservice-discord would refuse to start, logging ECONNREFUSED to https://matrix.[mydomain]:443, which was resolving to 172.18.0.2 due to the `--hostname` in mailer grabbing that hostname.
    
    Curious why the IRC bridge didn't have this issue, I looked into it, and it was connecting to `http://matrix-synapse:8008`.  Correcting this one to that URL resolved the issue.
    jgoerzen authored Dec 10, 2020
    Configuration menu
    Copy the full SHA
    673e19f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #748 from jgoerzen/patch-1

    Correct inabillity for appservice-discord to connect
    spantaleev authored Dec 10, 2020
    Configuration menu
    Copy the full SHA
    327ca84 View commit details
    Browse the repository at this point in the history
  3. Fix systemd services autostart problem with Docker 20.10

    The Docker 19.04 -> 20.10 upgrade contains the following change
    in `/usr/lib/systemd/system/docker.service`:
    
    ```
    -BindsTo=containerd.service
    -After=network-online.target firewalld.service containerd.service
    +After=network-online.target firewalld.service containerd.service multi-user.target
    -Requires=docker.socket
    +Requires=docker.socket containerd.service
    Wants=network-online.target
    ```
    
    The `multi-user.target` requirement in `After` seems to be in conflict
    with our `WantedBy=multi-user.target` and `After=docker.service` /
    `Requires=docker.service` definitions, causing the following error on
    startup for all of our systemd services:
    
    > Job matrix-synapse.service/start deleted to break ordering cycle starting with multi-user.target/start
    
    A workaround which appears to work is to add `DefaultDependencies=no`
    to all of our services.
    spantaleev committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    d08b277 View commit details
    Browse the repository at this point in the history
  4. WIP: postgres: create databases for all services

    If a service is enabled, a database for it is created in postgres with a uniqque password. The service can then use this database for data storage instead of relying on sqlite.
    jdreichmann committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    d9f4914 View commit details
    Browse the repository at this point in the history
  5. Make matrix-mailer not occupy matrix_server_fqn_matrix

    Starting with Docker 20.10, `--hostname` seems to have the side-effect
    of making Docker's internal DNS server resolve said hostname to the IP
    address of the container.
    
    Because we were giving the mailer service a hostname of `matrix.DOMAIN`,
    all requests destined for `matrix.DOMAIN` originating from other
    services on the container network were resolving to `matrix-mailer`.
    This is obviously wrong.
    
    Initially reported here: #748
    
    We normally try to not use the public hostname (and IP address) on the
    container network and try to make services talk to one another locally,
    but it sometimes could happen.
    
    With this, we use a `matrix-mailer` hostname for the matrix-mailer
    container. My testing shows that it doesn't cause any trouble with
    email deliverability.
    spantaleev committed Dec 10, 2020
    Configuration menu
    Copy the full SHA
    7593d96 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    eae4f67 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3c2a644 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #749 from aaronraimist/synapse-admin-0.6.1

    Upgrade synapse-admin (v0.5.0 -> 0.6.1)
    spantaleev authored Dec 10, 2020
    Configuration menu
    Copy the full SHA
    7f1f3fd View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2020

  1. Use latest/master version of matrix-registration

    v0.7.0 is broken right now, because it calls
    `/_matrix/client/r0/admin/register`, which is now at
    `/_synapse/admin/v1/register`.
    
    This has been fixed here: zeratax/matrix-registration@6b26255
    
    .. but it's not part of any release.
    
    Switching to `master` (`docker.io/devture/zeratax-matrix-registration:latest`) until it gets resolved.
    
    Reported upstream here: zeratax/matrix-registration#43
    spantaleev committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    0a91097 View commit details
    Browse the repository at this point in the history
  2. Switch matrix-registration to v0.7.1

    Now that a new release has been made, we no longer need to use
    `latest` / `master`.
    
    Related to 0a91097 and zeratax/matrix-registration#43
    spantaleev committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    86988ae View commit details
    Browse the repository at this point in the history
  3. Remove synapse-janitor support

    Fixes #746
    spantaleev committed Dec 11, 2020
    Configuration menu
    Copy the full SHA
    47613e5 View commit details
    Browse the repository at this point in the history
  4. Adding jitsi as well

    chagai95 authored Dec 11, 2020
    Configuration menu
    Copy the full SHA
    d96d7f2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bae4113 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #750 from chagai95/patch-1

    Adding jitsi as well
    spantaleev authored Dec 11, 2020
    Configuration menu
    Copy the full SHA
    9dc023c View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2020

  1. Configuration menu
    Copy the full SHA
    77a5c7c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dac0d3a View commit details
    Browse the repository at this point in the history
  3. Relocate Postgres additional database creation logic

    Moving it above the "uninstalling" set of tasks is better.
    Extracting it out to another file at the same time, for readability,
    especially given that it will probably have to become more complex in
    the future (potentially installing `jq`, etc.)
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    527d5f5 View commit details
    Browse the repository at this point in the history
  4. Allow username of additional Postgres databases to be different

    We'll most likely use one that matches the database name, but
    it's better to have it configurable.
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    0641106 View commit details
    Browse the repository at this point in the history
  5. Fix syntax issues in matrix_postgres_additional_databases

    Quotes are necessary around dictionary field names.
    
    There was a missing `}` as well.
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    d251764 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f47e8a9 View commit details
    Browse the repository at this point in the history
  7. Determine matrix-postgres IP address without relying on jq

    To avoid needing to have `jq` installed on the machine, we could:
    - try to run jq in a Docker container using some small image providing
    that
    - better yet, avoid `jq` altogether
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    e2952f1 View commit details
    Browse the repository at this point in the history
  8. Prevent weird loop error

    > Invalid data passed to 'loop', it requires a list, got this instead: matrix_postgres_additional_databases. Hint: If you passed a list/dict of just one element, try adding wantlist=True to your lookup invocation or use q/query instead of lookup.
    
    Well, or working around it, as I've done in this commit (which seems
    more sane than `wantlist=True` stuff).
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    c765ceb View commit details
    Browse the repository at this point in the history
  9. Do not execute additional databases creation code if not necessary

    The tasks in `create_additional_databases.yml` will likely
    ensure `matrix-postgres.service` is started, etc.
    
    If no additional databases are defined, we'd rather not execute that
    file and all these tasks that it may do in the future.
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    bbc09d0 View commit details
    Browse the repository at this point in the history
  10. Do not use the postgresql_user/postgresql_db modules

    While these modules are really nice and helpful, we can't use them
    for at least 2 reasons:
    
    - for us, Postgres runs in a container on a private Docker network
    (`--network=matrix`) without usually being exposed to the host.
    These modules execute on the host so they won't be able to reach it.
    
    - these modules require `psycopg2`, so we need to install it before
    using it. This might or might not be its own can of worms.
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    da4cb2f View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3a037a5 View commit details
    Browse the repository at this point in the history
  12. Use "password" for additional Postgres databases, not "pass"

    Being more explicit sounds better.
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    46a4034 View commit details
    Browse the repository at this point in the history
  13. Make appservice-discord support both SQLite and Postgres

    People can toggle between them now. The playbook also defaults
    to using SQLite if an external Postgres server is used.
    
    Ideally, we'd be able to create databases/users in external Postgres
    servers as well, but our initialization logic (and `docker run` command,
    etc.) hardcode too many things right now.
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    a374d30 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    183d2a1 View commit details
    Browse the repository at this point in the history
  15. Simplify password for additional Postgres databases

    Using the result of `password_hash` works for creating them,
    but authentication seems to be failing with some tools like pgloader.
    
    It's possible that we're not escaping things properly somewhere.
    Ideally, it'd be nice to solve that. But the easier (and still
    relatively safe/good) solution is to just turn that password hash
    into a UUID that's safe for passing around without worrying about
    escaping.
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    dd99499 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    b87b754 View commit details
    Browse the repository at this point in the history
  17. Rename some doc files and commands related to importing

    Since we'll likely have generic SQLite database importing
    via [pgloader](https://pgloader.io/) for migrating bridge
    databases from SQLite to Postgres, we'd rather avoid
    calling the "import Synapse SQLite database" command
    as just `--tags=import-sqlite-db`.
    
    Similarly, for the media store, we'd like to mention that it's
    related to Synapse as well.
    
    We'd like to be more explicit, so as to be less confusing,
    especially in light of other homeserver implementations
    coming in the future.
    spantaleev committed Dec 13, 2020
    Configuration menu
    Copy the full SHA
    6e1dfb6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    c66c084 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2020

  1. Add --tags=import-generic-sqlite-db (pgloader import)

    This can be used by various bridges, etc., to import an SQLite
    (or some other supported) database into Postgres.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    cb969c6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4617984 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b217a2e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f1e85f7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d91aa5a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c0edacb View commit details
    Browse the repository at this point in the history
  7. Rename Postgres-related variables (matrix*database_* -> `matrix*pos…

    …tgres_*`)
    
    `matrix_SERVICE_database_engine` remains as it is - the only one with a
    `_database_` infix. Postgres-related ones move to `_postgres_`.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    2a99e84 View commit details
    Browse the repository at this point in the history
  8. Make --tags=import-generic-sqlite-db commands not pass a sensitive co…

    …nnection string around
    
    Instead of passing the connection string, we can now pass a name of a
    variable, which contains a connection string.
    
    Both are supported for having extra flexibility.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    5dba0c0 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2d99ade View commit details
    Browse the repository at this point in the history
  10. Move some things around

    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    a3406a1 View commit details
    Browse the repository at this point in the history
  11. Add (Postgres + SQLite) support to matrix-mautrix-telegram bridge

    I don't use this bridge, so this is completely untested.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    9bf8ce8 View commit details
    Browse the repository at this point in the history
  12. Rename _database_hostname to _postgres_hostname

    Should have been done during 2a99e84, but I've missed it.
    
    Because of this, 9bf8ce8 was also incomplete and would have caused
    an error.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    05dd091 View commit details
    Browse the repository at this point in the history
  13. Fix typo (matrix_telegram_facebook_postgres_hostname -> matrix_mautri…

    …x_telegram_postgres_hostname)
    
    Related to 9bf8ce8.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    6a2dd80 View commit details
    Browse the repository at this point in the history
  14. Remove some remaining _database_password usage in favor of `_postgr…

    …es_pasword`
    
    The only one that remains is `matrix_synapse_database_password`, but
    that's something old and should be dealt with separately in the future
    (unless it remains as it is).
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    2848322 View commit details
    Browse the repository at this point in the history
  15. Add (Postgres + SQLite) support to matrix-mautrix-whatsapp bridge

    I don't use this bridge, so this is completely untested.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    6c77eae View commit details
    Browse the repository at this point in the history
  16. Fix sqlite usage for mautrix-facebook/mautrix-telegram

    Regression since 2d99ade and 9bf8ce8, respectively.
    
    When SQLite is to be used, these bridges expect an `sqlite://`
    connection string, and not a plain file name (path), like Appservice
    Discord and mautrix-whatsapp do.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    43d6ff2 View commit details
    Browse the repository at this point in the history
  17. Add (Postgres + SQLite) support to matrix-mautrix-hangouts bridge

    I don't use this bridge, so this is completely untested.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    ce21ea3 View commit details
    Browse the repository at this point in the history
  18. Rename matrix_*_postgres_* back to matrix_*_database_*

    I was thinking that it makes sense to be more specific,
    and using `_postgres_` also separated these variables
    from the `_database_` variables that ended up in bridge configuration.
    
    However, @jdreichmann makes a good point
    (#740 (comment))
    that we don't need to be so specific and can allow for other engines (like MySQL) to use these variables.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    087dbe4 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    5d70bc1 View commit details
    Browse the repository at this point in the history
  20. Rename some remaining matrix_*_postgres_* vars back to `matrix_*_da…

    …tabase_*`
    
    Looks like there are some that I missed in 087dbe4
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    b9a04a7 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    aa828ff View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    dde1c9f View commit details
    Browse the repository at this point in the history
  23. Add (Postgres + SQLite) support to matrix-reminder-bot

    This has been tested and appears to work.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    e3a0c9a View commit details
    Browse the repository at this point in the history
  24. add postgres support mx-appservice-[slack|irc] with fallback to nedb …

    …in role and migration notice
    jdreichmann committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    54da61f View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    bc376c2 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    dc7850e View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    ac37091 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    c1431b2 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    bbc0872 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    3ba8520 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    86a8091 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    13f84e2 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    cba973d View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    7248eb3 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    0ca48f3 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    af3ea67 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    3ab7dd1 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    13d8a9b View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    516ccb2 View commit details
    Browse the repository at this point in the history
  40. Prepare matrix-registation for (SQLite + Postgres) support

    Auto-migration and everything seems to work. It's just that
    matrix-registration cannot load the Python modules required
    for talking to a Postgres database.
    
    Tracked here: zeratax/matrix-registration#44
    
    Until this gets fixed, we'll continue default to 'sqlite'.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    8d74593 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    374f437 View commit details
    Browse the repository at this point in the history
  42. Add support for matrix_dimension_systemd_{required,wanted}_services_list

    We were referencing them from `group_vars/matrix_servers` since
    recently, but there were no such variables and they weren't being put to
    use.
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    0790a7b View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    2a502db View commit details
    Browse the repository at this point in the history
  44. Fix Postgres database importing/upgrading conflicts

    We were running into conflicts, because having initialized
    the roles (users) and databases, trying to import leads to
    errors (role XXX already exists, etc.).
    
    We were previously ignoring the Synapse database (`homeserver`)
    when upgrading/importing, because that one gets created by default
    whenever the container starts.
    
    For our additional databases, it's a similar situation now.
    It's not created by default as soon as Postgres starts with an empty
    database, but rather we create it as part of running the playbook.
    
    So we either need to skip those role/database creation statements
    while upgrading/importing, or to avoid creating the additional database
    and rely on the import for that. I've gone for the former, because
    it's already similar to what we were doing and it's simpler
    (it lets `setup_postgres.yml` be the same in all scenarios).
    spantaleev committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    dd797ba View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    e2ba46b View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2020

  1. Configuration menu
    Copy the full SHA
    6a3f6fb View commit details
    Browse the repository at this point in the history
  2. Merge pull request #754 from straend/patch-1

    Missing ` in traefik domains instructions
    spantaleev authored Dec 15, 2020
    Configuration menu
    Copy the full SHA
    6ebebca View commit details
    Browse the repository at this point in the history
  3. Upgrade matrix-registration (v0.7.1 -> 0.7.2) and use official image

    This switches us to a container image maintained by the
    matrix-registration developer.
    
    0.7.2 also supports a `base_url` configuration option we can use to
    make it easier to reverse-proxy at a different base URL.
    
    We still keep some workarounds, because of this issue:
    zeratax/matrix-registration#47
    spantaleev committed Dec 15, 2020
    Configuration menu
    Copy the full SHA
    69f71f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3289298 View commit details
    Browse the repository at this point in the history
  5. Add support for executing additional DB migration statements

    In cases where pgloader is not enough and we need to do some additional
    migration work after it, we can now use
    `additional_psql_statements_list` and
    `additional_psql_statements_db_name`.
    
    This is to be used when migrating `matrix-registration`'s data at the
    very least.
    spantaleev committed Dec 15, 2020
    Configuration menu
    Copy the full SHA
    1bd5c24 View commit details
    Browse the repository at this point in the history
  6. Make matrix-registration use Postgres by default

    Now that 0.7.2 is out, the Docker image supports Postgres
    and we can do the (SQLite -> Postgres) migration.
    
    I've also found out that we needed to fix up the `tokens.ex_date` column
    data type a bit to prevent matrix-registration from raising exceptions
    when comparing `datetime.now()` with `ex_date` coming from the database.
    
    Example:
    
    > File "/usr/local/lib/python3.8/site-packages/matrix_registration/tokens.py", line 58, in valid
    > expired = self.ex_date < datetime.now()
    > TypeError: can't compare offset-naive and offset-aware datetimes
    spantaleev committed Dec 15, 2020
    Configuration menu
    Copy the full SHA
    a197968 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2020

  1. Fix inability to send (Matrix -> Discord) messages via appservice-dis…

    …cord
    
    Revert "Correct inabillity for appservice-discord to connect"
    This reverts commit 673e19f.
    
    While certain things do work even with such a local URL, sending
    messages leads to an error like this:
    
    > [DiscordBot] verbose: DiscordAPIError: Invalid Form Body
    > avatar_url: Not a well formed URL.
    
    Fixes matrix-org/matrix-appservice-discord#649
    
    The sample configuration file for appservice-discord
    https://github.com/Half-Shot/matrix-appservice-discord/blob/c29cfc72f55f1f81e43e2d71f5c080d752d1a884/config/config.sample.yaml#L8
    explicitly says that we need a public URL.
    spantaleev committed Dec 16, 2020
    Configuration menu
    Copy the full SHA
    a4b8bae View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0f4649a View commit details
    Browse the repository at this point in the history
  3. Do not recommend usePrivilegedIntents for appservice-discord

    We're getting reports of it being broken and I can confirm that the
    bridge works well without it, so I don't see why we'd be asking
    people to enable it.
    
    Fixes #751
    spantaleev committed Dec 16, 2020
    Configuration menu
    Copy the full SHA
    db69a51 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e2e6cfa View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2020

  1. Move matrix_architecture to matrix-base

    We were only defining this in `group_vars/matrix_servers`, which is
    inconsistent with how we normally do things.
    spantaleev committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    ed159cc View commit details
    Browse the repository at this point in the history
  2. Do not hardcode amd64 in setup_debian.yml

    Until now, we've only supported non-amd64 on Raspbian.
    
    Seems like there are now people running Debian/Ubuntu on ARM,
    so we were forcing them into amd64 Docker packages.
    
    I've gotten a report that this change fixes support
    for Ubuntu Server 20.04 on RPi 4B.
    spantaleev committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    55f252a View commit details
    Browse the repository at this point in the history
  3. Do not hardcode "ubuntu" for the Docker APT key URL

    Well, `ubuntu` or `debian`, the same key is served right now,
    so it doesn't really matter.
    
    This seems cleaner and less prone to breakage though.
    spantaleev committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    f545de5 View commit details
    Browse the repository at this point in the history
  4. Ensure gnupg installed on Raspbian

    It's likely installed by default, but it doesn't hurt to specify it.
    It also makes us more the same with `setup_debian.yml`.
    spantaleev committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    a09ed58 View commit details
    Browse the repository at this point in the history
  5. Do not hardcode armhf for Raspbian

    Raspbian doesn't seem to support arm64, so this is somewhat pointless
    right now.
    
    However, they might in the future. Doing this should also unify us
    some more with `setup_debian.yml` with the ultimate goal of
    eliminating `setup_raspbian.yml`.
    spantaleev committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    349fbb6 View commit details
    Browse the repository at this point in the history
  6. Move python{,3}-docker installation to another task

    This also adds support for installing python3-docker (not python-docker)
    in systems that run Python 3.
    spantaleev committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    8748f3d View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2020

  1. Configuration menu
    Copy the full SHA
    d0ee86e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dcd4716 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #757 from 0x46616c6b/disable-nginx-logging-option

    add option to disable nginx access log
    spantaleev authored Dec 21, 2020
    Configuration menu
    Copy the full SHA
    ca06621 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2020

  1. Relocate some tasks

    spantaleev committed Dec 22, 2020
    Configuration menu
    Copy the full SHA
    6488e11 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b4bf73 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    149872e View commit details
    Browse the repository at this point in the history
  4. Add missing restart task

    Should have been part of 149872e
    spantaleev committed Dec 22, 2020
    Configuration menu
    Copy the full SHA
    e64758c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    44c9f4d View commit details
    Browse the repository at this point in the history
  6. Ensure mx-puppet-discord directories are created before attempting mi…

    …gration
    
    Our old (base-path -> data-path) SQLite migration can't work otherwise.
    
    It's probably not necessary to keep it anymore, but since we still do,
    at least we should take care to ensure it works.
    spantaleev committed Dec 22, 2020
    Configuration menu
    Copy the full SHA
    d135cd9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    10e0fa1 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #760 from thedanbob/nginx-1.19.6

    Update nginx (1.19.5 -> 1.19.6)
    spantaleev authored Dec 22, 2020
    Configuration menu
    Copy the full SHA
    c180fa4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c3b63c6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    e49eb07 View commit details
    Browse the repository at this point in the history
  11. Merge pull request #761 from thedanbob/element-1.7.16

    Update element-web (1.7.15 -> 1.7.16)
    spantaleev authored Dec 22, 2020
    Configuration menu
    Copy the full SHA
    a80b5b2 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    262a25f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    69cc214 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    ab6563c View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    15f4cc9 View commit details
    Browse the repository at this point in the history
  16. Fix alignment issues

    spantaleev committed Dec 22, 2020
    Configuration menu
    Copy the full SHA
    815a80c View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    715bdf2 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    9b95e19 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    8675ded View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2020

  1. Configuration menu
    Copy the full SHA
    ad1425e View commit details
    Browse the repository at this point in the history
  2. Merge pull request #740 from jdreichmann/postgres-per-default

    postgres: create databases for all services
    spantaleev authored Dec 23, 2020
    Configuration menu
    Copy the full SHA
    f19b298 View commit details
    Browse the repository at this point in the history
  3. Announce the big move to all-on-Postgres

    Related to
    - #740
    - #686
    spantaleev committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    3475b98 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4fe1248 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c5f8b1f View commit details
    Browse the repository at this point in the history
  6. Update updating-users-passwords.md

    Fixed markdown error
    KloolK authored Dec 23, 2020
    Configuration menu
    Copy the full SHA
    4675c8a View commit details
    Browse the repository at this point in the history
  7. Do not use salts longer than 16 characters

    We've hit this problem before as well. Certain Ansible installations
    choke on it.
    spantaleev committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    9f00970 View commit details
    Browse the repository at this point in the history
  8. Merge pull request #764 from KloolK/patch-1

    Update updating-users-passwords.md
    spantaleev authored Dec 23, 2020
    Configuration menu
    Copy the full SHA
    f3fc832 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8b61747 View commit details
    Browse the repository at this point in the history
  10. Do not use underscore in salts passed to sha512

    Some Ansible installations choke on it, it seems.
    Similar to 9f00970
    spantaleev committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    ea804f2 View commit details
    Browse the repository at this point in the history
  11. Feed more slashes to mautrix bridges when using SQLite

    This makes the `sqlite://` URI match what we were using before
    and what the config expects.
    spantaleev committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    be0c599 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    019a4d7 View commit details
    Browse the repository at this point in the history
  13. Merge pull request #765 from Cadair/fix-db

    Use role relative paths for references to matrix-postgres role
    spantaleev authored Dec 23, 2020
    Configuration menu
    Copy the full SHA
    a284b6f View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    21662af View commit details
    Browse the repository at this point in the history
  15. Fixup all Dimension boolean fields after pgloader import

    This is 8b61747 done right. There were many more fields
    that we had to account for.
    spantaleev committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    80c7261 View commit details
    Browse the repository at this point in the history
  16. Make mautrix-python-based bridges E2EE happier

    Fixes a problem like this:
    > File "/usr/lib/python3.8/site-packages/mautrix/bridge/e2ee.py", line 79, in __init__
    > raise RuntimeError("Unsupported database scheme")
    
    mautrix-python's e2ee.py module expects to find `postgres://` instead of
    `postgresql://`.
    spantaleev committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    a2a4218 View commit details
    Browse the repository at this point in the history
  17. Fix concatenation of additional databases

    Otherwise the postgres upgrade fails with the following error:
    
    Unexpected templating type error occurred on ({{
      [matrix_postgres_connection_username]
      +
      matrix_postgres_additional_databases|map(attribute='username')
    }}
    ): can only concatenate list (not "generator") to list
    lxp committed Dec 23, 2020
    Configuration menu
    Copy the full SHA
    befffa9 View commit details
    Browse the repository at this point in the history
  18. Merge pull request #766 from lxp/fix-postgres-upgrade

    Fix concatenation of additional databases
    spantaleev authored Dec 23, 2020
    Configuration menu
    Copy the full SHA
    067f12b View commit details
    Browse the repository at this point in the history