Disable RestXqTrigger in collection configuration#5998
Conversation
Comment out RestXqTrigger configuration in collection.xconf.init
|
LGTM, and documentation-wise, we could perhaps add a sentence to https://exist-db.org/exist/apps/doc/xquery#restxq (source at https://github.com/eXist-db/documentation/blob/master/src/main/xar-resources/data/xquery/xquery.xml#L1069-L1083) to say:
|
|
We need to adjust the restxq test for the containers. |
|
Guys, just to check that - you realise of course that that will break soooo many people's apps when they upgrade to eXist-db 7? |
|
We are aware that this is a breaking change. There is however a clear and easy to document way to either
|
Okay, good. Out of interest - what is the perceived advantage(s) of disabling it by default? |
|
I expect apps mostly to have their own collection.xconf anyway, effectively voiding the definition on toplevel. So I think the impact is little. |
|
@dizzzz That's not what I have often seen in the wild. Do you know what is the perceived advantage(s) of disabling it by default? |
|
@adamretter perceived advantage(s) (more) secure by default. If an apps wants to expose the REST API, it must explicitly state that. No good reason to expose it for all apps on the host. |
@chakl Do you mean - Disabling this API helps reduce the external attack service? If so, I think you can find many bigger fish to fry, e.g.: the RESTServer which exposes the entire database by default to the guest user. |
|
The one does not exclude the other.... |
Exactly. Disabling unused APIs reduces attack surface.
Agree. We (with my existsolutions.com hat on) have gone to the habit of recommending to deploy reverse proxies in front of Internet facing eXist-db systems, in order to address this and other issues. But perfectly reasonable to disable that by default in eXist-db as well. |
for upcoming changes see eXist-db/exist#5998
Comment out RestXqTrigger configuration in collection.xconf.init