How to restrict access to restxq functions just for the same domain
Thursday, 12 May 2016 · 3 messages · last reply 13 May 2016
IF
Ioan Fericel12 May 2016 19:58 #
Hi,
I seemed that this is the behavior if disabling REST Service in web.xml (BaseX.war deploymented on Tomcat), but this does not happen. The surprise is that the functions are accessible from anywhere, if access is not protected by other methods.
I'm doing wrong, what should be setting? I use BaseX 8.3.
Thanks for any guidance!
Ioan
DK
Dirk Kirsten13 May 2016 10:42 #
Hello Ioan,
I am not sure whether I correctly understood your issue. So you want to start Tomcat in a way that it serves only to localhost? This is an issue with Tomcat and I am sure there are ways to handle this. However, I don't really get what is has to do with the REST services provided by Basex?
Using the build-in jetty web server from BaseX it is usually enough to bind the port to 127.0.0.1 in the jetty.xml. I would expect Tomcat to have a similar mechanism.
Cheers
Dirk
Quoted text · Ioan Fericel · 12 lines
On 05/12/2016 07:58 PM, Ioan Fericel wrote: > Hi, > > I seemed that this is the behavior if disabling REST Service in > web.xml (BaseX.war deploymented on Tomcat), but this does not happen. > The surprise is that the functions are accessible from anywhere, if > access is not protected by other methods. > > I'm doing wrong, what should be setting? I use BaseX 8.3. > > Thanks for any guidance! > Ioan
--
Dirk Kirsten, BaseX GmbH, http://basexgmbh.de
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22
IF
Ioan Fericel13 May 2016 18:04 #
Hello Dirk, thanks for the reply.
It's not a solution to limit Tomcat for acces only from localhost because he serves multiple applications.
I thought there would be a setting as
HTTPLOCAL to limit access to restxq functions. If not, I will try something session-based, as is used in dba.
Best regards,
IoanWritten for BaseX 8.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery