Skip to content

Releases: zeratax/matrix-registration

v0.9.1

11 Apr 19:57
ac02917
Compare
Choose a tag to compare

Fixes

  • add element-logo.png
  • updated important keys in config.py to reflect new property names

v0.9.0

09 Apr 17:43
987efea
Compare
Choose a tag to compare

Features

  • now uses alembic to up- or downgrade the database scheme

Please run the following after every update to make sure your database scheme is uptodate

alembic upgrade head
  • #55 instead of one time token you can now set arbitrary amounts of usage per token via
 -m, --maximum INTEGER     times token can be used
  • #38 new option in the config file to log IPs to the database
    these are viewable by checking the status of individual token via the cli or web api

Fixes

  • #58 by renaming shared_secret to registration_shared_secret and
    admin_secret to admin_api_shared_secret

Changes

  • addresses #16 by changing the web api:
    • every endpoint is now under the /api/ subdirectory
    • added a version endpoint /api/version that respons with e.g. {"version":"0.9.0.dev0"}
    • PUT -> PATCH for /api/token
  • renaming the following properties
    • valid -> active
    • one_time -> max_usage
    • ex_date -> expiration_date

v0.9.0.dev0

07 Apr 18:27
f9fb40f
Compare
Choose a tag to compare
v0.9.0.dev0 Pre-release
Pre-release

Features

  • now uses alembic to up- or downgrade the database scheme

Please run the following after every update to make sure your database scheme is uptodate

alembic upgrade head
  • #55 instead of one time token you can now set arbitrary amounts of usage per token via
 -m, --maximum INTEGER     times token can be used

Fixes

  • #58 by renaming shared_secret to registration_shared_secret and
    admin_secret to admin_api_shared_secret
  • #38 by giving an option in the config file to log IPs to the database
    these are viewable by checking the status of individual token via the cli or web api

Changes

  • addresses #16 by changing the web api:
    • every endpoint is now under the /api/ subdirectory
    • added a version endpoint /api/version that respons with e.g. {"version":"0.9.0.dev0"}
    • PUT -> PATCH for /api/token
  • renaming the following properties
    • valid -> active
    • one_time -> max_usage
    • ex_date -> expiration_date

v0.8.0

16 Dec 02:36
9fc351c
Compare
Choose a tag to compare

Features

Fixes

  • base_url should now also apply to css, see #47

v0.7.2

15 Dec 11:08
96b0efb
Compare
Choose a tag to compare

Features

Fixes

  • #44 issue where docker builds could not connect to a postgres db

v0.7.2.dev1

14 Dec 20:37
df46663
Compare
Choose a tag to compare
v0.7.2.dev1 Pre-release
Pre-release

This is mostly a test release

Features

Fixes

  • hopefully addresses #44

v0.7.1

11 Dec 20:39
ee664d7
Compare
Choose a tag to compare

Fixes

  • #40, now uses the correct api endpoint thanks to #39 #41
  • Waitress has a vulnerability below v1.4.2, see CVE-2019-16789

Notice

the new endpoint might not be exposed by some setups. make sure /_synapse is reachable on your homeserver.

v0.7.0

12 Jul 20:47
b370c24
Compare
Choose a tag to compare

Features

  • #35 dockerfile image size reduced to <100Mb
  • #34 install a testing enviroment via pip with pip install -e .[testing]

Changes

  • #34 cli app renamed: matrix_registration => matrix-registration
  • #33 introduces a new config option admin_secret to choose a secret for the api
    previously this just reused the matrix homeserver's shared_secret, so if your api
    is publicly reachable please change this value

v0.6.1

12 Jul 20:34
e2c2920
Compare
Choose a tag to compare

Features

  • #35 dockerfile image size reduced to <100Mb
  • #34 install a testing enviroment via pip with pip install -e .[testing]

Changes

  • #34 cli app renamed: matrix_registration => matrix-registration

v0.6.0

12 Jul 20:06
588dc1c
Compare
Choose a tag to compare

Features

  • now uses SQLAlchemy and therefore supports postgres and other database schemes
  • added docker image
  • added nix shell support
  • use waitress to serve application as a proper production wsgi server

Changes

  • commands have slightly changed
    • gen => generate
    • api => serve

Troubleshooting

SQLAlchemy complains that a value isn't in a DateTime value

Before #17 introduced SQLAlchemy support the sqlite database incorrectly stored the expire dates, to fix this you have to manually run:

update tokens set ex_date=null where ex_date='None';

on your database once, or just delete your current database.