Re: Adding custom REST service to gateway

2015-11-16 Thread Kevin Minder
Inspired by this question I created this blog. http://kminder.github.io/knox/2015/11/16/adding-a-service-to-knox.html On 11/16/15, 11:34 AM, "Kevin Minder" wrote: >I will note that the choice can be more subtle that it seems. > It also intrinsically affects the way the rewrite rules are wri

[jira] [Commented] (KNOX-625) Provide a template topology file for UI proxy services

2015-11-16 Thread ASF subversion and git services (JIRA)
[ https://issues.apache.org/jira/browse/KNOX-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15007200#comment-15007200 ] ASF subversion and git services commented on KNOX-625: -- Commit fa56190a

[jira] [Created] (KNOX-625) Provide a template topology file for UI proxy services

2015-11-16 Thread Sumit Gupta (JIRA)
Sumit Gupta created KNOX-625: Summary: Provide a template topology file for UI proxy services Key: KNOX-625 URL: https://issues.apache.org/jira/browse/KNOX-625 Project: Apache Knox Issue Type: Im

White space in user assertion config

2015-11-16 Thread Willem Van Asperen
Hi all I noticed that whitespace in the user assertion settings are not disregarded. I'll create a fix for it and submit through jira. Regards Willem

Re: Adding custom REST service to gateway

2015-11-16 Thread Balaji Ganesan
Hi Adam, Can you create a JIRA on the improvements you would like to see in the documentation? -Balaji On Mon, Nov 16, 2015 at 8:42 AM, Adam Davidson < adam.david...@bigdatapartnership.com> wrote: > Hi, > > after a little tweaking with Sumit's answer I got it to work, thanks a lot > guys! I gue

Re: Adding custom REST service to gateway

2015-11-16 Thread Adam Davidson
Hi, after a little tweaking with Sumit's answer I got it to work, thanks a lot guys! I guess as a Knox beginner I found the developer docs difficult to understand. The next step will require some more expansive rewrite rules so if the documentation around those (patterns, names, templates etc.) ca

Re: Adding custom REST service to gateway

2015-11-16 Thread Kevin Minder
I will note that the choice can be more subtle that it seems. It also intrinsically affects the way the rewrite rules are written. The routes in service.xml need be unique across all of the services that may be deployed within the gateway. Therefore it is important to carefully consider th

[jira] [Updated] (KNOX-623) Gateway provider rewriter doesn't support boolean attributes in HTML.

2015-11-16 Thread Christopher Jackson (JIRA)
[ https://issues.apache.org/jira/browse/KNOX-623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher Jackson updated KNOX-623: - Resolution: Fixed Status: Resolved (was: Patch Available) [~kminder] < Verified. Th

Re: Adding custom REST service to gateway

2015-11-16 Thread Kevin Minder
Adam, The details from Sumit seem correct. As another example I took the OpenWeatherMap example from the DevGuide and turned it into a config based example and tested it. Here is the result below. This really needs to be in the dev-guide with a detailed breakdown of how everything fits togeth

Re: Adding custom REST service to gateway

2015-11-16 Thread Sumit Gupta
Hey Adam, We clearly need to improve our docs :). A simpler example to follow may be something like the falcon service and rewrite files in the codebase. In any case, you can try something like this for service xml And this for rewrite: And in the t

[jira] [Commented] (KNOX-623) Gateway provider rewriter doesn't support boolean attributes in HTML.

2015-11-16 Thread Kevin Minder (JIRA)
[ https://issues.apache.org/jira/browse/KNOX-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006794#comment-15006794 ] Kevin Minder commented on KNOX-623: --- [~jackson] < If you could please verify that I've mer

[jira] [Commented] (KNOX-623) Gateway provider rewriter doesn't support boolean attributes in HTML.

2015-11-16 Thread Kevin Minder (JIRA)
[ https://issues.apache.org/jira/browse/KNOX-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006788#comment-15006788 ] Kevin Minder commented on KNOX-623: --- Commit e7d7516b0e25e6b4e1a3c1598b5cd411f2f84504 contr

[jira] [Commented] (KNOX-623) Gateway provider rewriter doesn't support boolean attributes in HTML.

2015-11-16 Thread ASF subversion and git services (JIRA)
[ https://issues.apache.org/jira/browse/KNOX-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15006785#comment-15006785 ] ASF subversion and git services commented on KNOX-623: -- Commit e7d7516b

Re: Adding custom REST service to gateway

2015-11-16 Thread Adam Davidson
Hi Sumit and Kevin, This is the command I'm using to access the demo REST app inside the sandbox: *curl 'http://localhost:8095/greeting '* This returns a simple JSON response like *'{"id":1,"content":"Hello, World!"}' . *BTW, it's the same app as described in a Spri

Re: Adding custom REST service to gateway

2015-11-16 Thread Kevin Minder
Hey Adam, You are very close. I think I’ll take this opportunity and possibly parts of your example (if you don’t mind) to beef up the dev-guide and of course help you along the way. The whole URL rewrite aspect is currently a large black hole. Can you show me the curl command you use “inside

Re: Adding custom REST service to gateway

2015-11-16 Thread Sumit Gupta
Hi Adam, Thanks for providing the the configuration and file contents. Can you also provide the exact URLs you are trying with the curl commands, both inside and outside the cluster? Thanks, Sumit On 11/16/15, 9:38 AM, "Adam Davidson" wrote: >Hi, > >As part of some client work I'm trying to ad

Adding custom REST service to gateway

2015-11-16 Thread Adam Davidson
Hi, As part of some client work I'm trying to add a service to a Knox topology in the Hortonworks HDP 2.3.1 sandbox; this includes Knox 0.6.0. My understanding is that I simply need to add the to the topology XML and then create directories under /data/services with new service and rewrite XML fi

Re: pac4j and Apache Knox

2015-11-16 Thread Jérôme LELEU
Hi, Thanks for providing this early documentation. I will study it carefully. Best regards, Jérôme 2015-11-14 19:03 GMT+01:00 larry mccay : > Here is a *very* early version of an integration guide for KnoxSSO: > > http://knox.apache.org/books/knox-0-7-0/knoxsso_integration.html > > It will wal

Re: pac4j and Apache Knox

2015-11-16 Thread Jérôme LELEU
Hi, Thanks for the explanations. I'll use the MessageFactory in the gateway-provider-security-pac4j and log4j for all pac4j components. Best regards, Jérôme 2015-11-13 15:51 GMT+01:00 Kevin Minder : > I’ll add a bit to the logging answer. I created that for several reasons. > 1) Localization