Andras Timar
090c246be4
bccu#1696 - enable WOPI connection from the same host (by IP address) by default
2016-04-19 15:32:34 +02:00
Andras Timar
69c156e6dd
bccu#1696 enable WOPI connection from the same host by default
2016-04-19 10:17:50 +02:00
Miklos Vajna
17de53981e
Storage: fix missing underscore for non-static members
...
Change-Id: Ibde55358c9640344e8bb4e6e24b287b1e7d8c6b5
2016-04-19 09:10:28 +02:00
Ashod Nakashian
23003c455c
bccu#1696 - enable WOPI connection from the same host by default
...
Since auto-discovery is problematic, this patch implements
support for both regex patterned hostnames/IPs to allow,
and those to block/deny.
A hostname/IP must be both allowed, and not denied, to
be accepted.
By setting ranges of allowed hostnames/IPs, and others
to block/deny, an admin can configure Online with
great flexibility.
Defaults updated with same values, but not exhaustive.
Change-Id: Iedfcafe41d07d905b549fb450c3fe625ad44599e
Reviewed-on: https://gerrit.libreoffice.org/24233
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-19 01:41:51 +00:00
Ashod Nakashian
ea223f14d2
loolwsd: storage validation should throw BadRequest on failure
...
Change-Id: I8e9eca96e3e9cef7391a74d72db806e6d1085b01
Reviewed-on: https://gerrit.libreoffice.org/24161
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-17 15:26:38 +00:00
Ashod Nakashian
b50a7d507c
loolwsd: wopi trusted hosts are stored in set to warn about conflicting config
...
Change-Id: If27e173ffee753e655057d8516f4f3b3ecda5d3b
Reviewed-on: https://gerrit.libreoffice.org/24159
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-17 15:24:58 +00:00
Ashod Nakashian
a76e9a2b21
loolwsd: check WOPI host against configured whitelist and cleanup factory
...
Change-Id: I1dd45a9b1332754a33b2f190b7f6244e8e3b1dff
Reviewed-on: https://gerrit.libreoffice.org/24136
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-16 17:58:18 +00:00
Ashod Nakashian
115e654d63
bccu#1648: Limit trusted WOPI hosts
...
Control allowed/trusted wopi hosts from config.
Change-Id: I730b4be8ef0d47bdb5e490926486184777de4eb0
Reviewed-on: https://gerrit.libreoffice.org/24135
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2016-04-16 17:58:01 +00:00
Miklos Vajna
0a92e811dc
Storage: const auto -> const auto& where it would create a tmp copy
...
Change-Id: I0ec42200e19654ee2e1c9b0fc293668847a5b965
2016-04-15 08:49:35 +02:00
Tor Lillqvist
0140b1cd43
Always define ENABLE_DEBUG and _SSL in config.h, as 1 or 0
...
Correspondingly always use #if, not #ifdef, to test.
2016-04-14 13:43:31 +03:00
Michael Meeks
b308792801
Add infrastructure to inject test pieces into loolforkit.
2016-04-09 18:17:12 +01:00
Tor Lillqvist
407f688cb6
Include config.h to get ENABLE_SSL
2016-04-08 14:49:33 +03:00
Andras Timar
f75a27e3db
loolwsd: --disable-ssl option
2016-04-08 13:16:49 +02:00
Michael Meeks
7d62c74b83
Fix segv on failure to create a storage, and add unit test infra.
2016-04-07 22:21:14 +01:00
Pranav Kant
f1ede0c4ba
loolwsd: Split Storage, Auth classes into header/impl files
...
Change-Id: I5d8990db8f8f4aa7a88bbb0cc84b97149cf4f8c0
2016-03-31 12:57:44 +05:30