Compare commits

...

10 Commits

Author SHA1 Message Date
Girish Ramakrishnan
ebfe474a79 Version 1.5.0 2020-07-02 09:22:54 -07:00
Girish Ramakrishnan
0c3a909ef3 Update synapse to 1.15.2 2020-07-02 08:38:03 -07:00
Girish Ramakrishnan
1d941ef1c2 Fixup postinstall 2020-07-02 08:37:51 -07:00
Girish Ramakrishnan
f9c7799381 Add forumUrl 2020-07-02 08:32:35 -07:00
Girish Ramakrishnan
37e0405972 Version 1.4.0 2020-06-16 08:49:16 -07:00
Girish Ramakrishnan
429683194f Update synapse to 1.15.1 2020-06-16 08:27:47 -07:00
Girish Ramakrishnan
b2bc129d47 Update synapse to 1.15.0
doesn't work: https://github.com/matrix-org/matrix-synapse-ldap3/issues/92
2020-06-11 14:51:10 -07:00
Girish Ramakrishnan
5e74f21865 Version 1.3.0 2020-06-09 22:21:04 -07:00
Girish Ramakrishnan
070d306838 Add non-sso tests 2020-06-09 22:20:42 -07:00
Girish Ramakrishnan
c9f1071363 Enable optional sso 2020-06-09 21:38:27 -07:00
6 changed files with 89 additions and 13 deletions

View File

@@ -130,3 +130,21 @@
* Update Synapse to 1.14.0
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.14.0)
[1.3.0]
* Add optional sso support
[1.4.0]
* Update Synapse to 1.15.1
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.15.0)
* Advertise support for Client-Server API r0.6.0 and remove related unstable feature flags. (#6585)
* Add an option to disable autojoining rooms for guest accounts. (#6637)
* Add admin APIs to allow server admins to manage users' devices. Contributed by @dklimpel. (#7481)
* Add support for generating thumbnails for WebP images. Previously, users would see an empty box instead of preview image. Contributed by @WGH-. (#7586)
* Support the standardized m.login.sso user-interactive authentication flow. (#7630)
[1.5.0]
* Update Synapse to 1.15.2
* [Full changelog](https://github.com/matrix-org/synapse/releases/tag/v1.15.2)
* A malicious homeserver could force Synapse to reset the state in a room to a small subset of the correct state. This affects all Synapse deployments which federate with untrusted servers. (96e9afe6)
* HTML pages served via Synapse were vulnerable to clickjacking attacks. This predominantly affects homeservers with single-sign-on enabled, but all server administrators are encouraged to upgrade. (ea26e9a9)

View File

@@ -5,7 +5,7 @@
"description": "file://DESCRIPTION.md",
"changelog": "file://CHANGELOG",
"tagline": "Secure & decentralized communication",
"version": "1.2.0",
"version": "1.5.0",
"healthCheckPath": "/",
"httpPort": 8008,
"memoryLimit": 536870912,
@@ -19,9 +19,9 @@
"manifestVersion": 2,
"website": "https://matrix.org",
"contactEmail": "support@cloudron.io",
"icon": "logo.png",
"icon": "file://logo.png",
"tags": [
"im", "collaboration", "voip", "videochat", "chat"
"im", "collaboration", "voip", "videochat", "chat", "slack"
],
"mediaLinks": [
"https://cloudron-app-screenshots.s3.amazonaws.com/org.matrix.synapse/606cd9d4ccc3bee11a49f91444a2dad8947cbc7c/1.png",
@@ -30,6 +30,8 @@
],
"changelog": "file://CHANGELOG",
"postInstallMessage": "file://POSTINSTALL.md",
"minBoxVersion": "5.1.4",
"documentationUrl": "https://cloudron.io/documentation/apps/synapse/"
"minBoxVersion": "5.3.0",
"forumUrl": "https://forum.cloudron.io/category/50/matrix-synapse-riot",
"documentationUrl": "https://cloudron.io/documentation/apps/synapse/",
"optionalSso": true
}

View File

@@ -1,4 +1,4 @@
This app packages Synapse <upstream>1.14.0</upstream>.
This app packages Synapse <upstream>1.15.2</upstream>.
**This package only provides the Matrix backend. A variety of clients are available
[here](https://matrix.org/clients/). Riot is a popular web frontend for Matrix and

View File

@@ -4,7 +4,7 @@ RUN mkdir -p /app/pkg
WORKDIR /app/code
ARG VERSION=v1.14.0
ARG VERSION=v1.15.2
# https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
RUN virtualenv -p python3 /app/code/env

View File

@@ -1,8 +1,8 @@
<sso>
This app integrates with the Cloudron User Management. Cloudron users can register
themselves using any client and use Matrix Synapse.
</sso>
Account ids are created with the username and the second level domain under which the
app is installed e.g. `@username@domain.com`.
**IMPORTANT: See the [docs](https://cloudron.io/documentation/apps/synapse/) on
how to complete setup and start using this app.**
For federation to work, the second level domain has to be configured to serve up the
`.well-known/domain.com/matrix` URI. See the
[federation docs](https://cloudron.io/documentation/apps/synapse/) on
how to do this.

View File

@@ -58,6 +58,37 @@ describe('Application life cycle test', function () {
});
}
// https://matrix.org/docs/spec/client_server/latest#user-interactive-api-in-the-rest-api
function registerUser(done) {
superagent.post('https://' + app.fqdn + '/_matrix/client/r0/register?kind=user').send({
username: username,
password: password,
inhibit_login: false
}).end(function (error, result) {
// we will first get a 401
let session = result.body.session;
console.log('session is', session);
if (result.statusCode !== 401) return done(new Error('Expecting a 401 ' + result.statusCode));
superagent.post('https://' + app.fqdn + '/_matrix/client/r0/register?kind=user').send({
auth: {
type: 'm.login.dummy',
session: session
},
username: username,
password: password,
inhibit_login: false
}).end(function (error, result) {
if (error) return done(error);
if (result.statusCode !== 200) return done(new Error('Login failed with status ' + result.statusCode));
console.log('registered user with id', result.user_id);
done();
});
});
}
// https://matrix.org/docs/spec/client_server/latest
function checkLogin(done) {
superagent.post('https://' + app.fqdn + '/_matrix/client/r0/login').send({
@@ -114,6 +145,31 @@ describe('Application life cycle test', function () {
execSync('cloudron build', { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
});
// No SSO
it('install app (no sso)', function () {
execSync('cloudron install --no-sso --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
});
it('can get app information', function () {
var inspect = JSON.parse(execSync('cloudron inspect'));
app = inspect.apps.filter(function (a) { return a.location === LOCATION; })[0];
expect(app).to.be.an('object');
});
it('check landing page', checkLandingPage);
it('can register new user', registerUser);
it('can login', checkLogin);
it('check autojoin', checkAutoJoinRoom);
it('create room', createRoom);
it('check room', checkRoom);
it('uninstall app', function () {
execSync('cloudron uninstall --app ' + app.id, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
});
// SSO
it('install app', function () {
execSync('cloudron install --location ' + LOCATION, { cwd: path.resolve(__dirname, '..'), stdio: 'inherit' });
});