Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] New UI problems with reverse proxy

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] New UI problems with reverse proxy


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Darren Boss <>, "" <>
  • Subject: RE: [grouper-users] New UI problems with reverse proxy
  • Date: Wed, 20 Sep 2017 14:12:29 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Ironport-phdr: 9a23:XHqF6xWydEVVU+3QbOQNOjy1nf3V8LGtZVwlr6E/grcLSJyIuqrYZRSBvqdThVPEFb/W9+hDw7KP9fuxCSpYud6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxhEiCCzbL52Lxi6txndutULioZ+N6g9zQfErGFVcOpM32NoIlyTnxf45siu+ZNo7jpdtfE8+cNeSKv2Z6s3Q6BWAzQgKGA1+dbktQLfQguV53sTSXsZnxxVCAXY9h76X5Pxsizntuph3SSRIMP7QawoVTmk8qxmUwHjhjsZODEl8WHXks1wg7xdoBK9vBx03orYbJiIOPZiYq/ReNUXTndDUMlMTSxMGoOyYZUSAeodM+hWrIf9qFkPrRSiCgahH/ngxiNUinLswaE2z+YsHAfb1wIgBdIOt3HUoc37OKkQUeG0zbfHzS/bY/hLxzr96JLIchE6of2CQLl9ds/RxlUvFwLFj1Sft5blMiiU1uQWr2eX9fdgVfqxhG4hrQF9uCagydoxioTQgI8e117K9SJ8wIkvJN24TlZ2bsK+H5tUqy6aKo92Td84TGFuoik116cJtYSncycQ0JgnyBnfa/uIc4iM/B3vTvqeITB9hH59ebK/gQqy/la6yu36SMa0zEhGojBbndbRq3ABzwDc6s+CSvtl40ehxSiA2BzJ5eFCO087iLDUJ4Q9zbEqkJcYrEfNHjfulUnokKObdF8o9+ep5uj9f7nrp5GRO5Vphgz/Kqgih8KyDfgiPgUKQmSX4/qw2KDn8EHjXblHjPw7n6/Eu57AP8sbvLS2AwpN34Yj9Rm/CzCm3cwAk3QbK1xJZByKg5HnNV/JLv30FPC/jE+ynztxwPDGI6HhDY7KLnjelrfuYKxx61ZGyAo00dBQ+Y5bCq0AIPL0XE/9rtvYDgIlMwywxObnD9Z92pkCVmKIB6+VKKLSsVmW6eIzO+SAepMZtTTnJ/Uq5vPil2I1lF4TcKWzwJcaaWi0HvF8LEWYZXrsjM0BEWAPvgcmSezllF2CUD5SZnmsRaIx/TA7CJm6AovZW4CtmKKO3CG9HpFMeG9JF02MHW/yd4qYQ/cMdD6SIsh5nzwLT7ihTJIh1Qmwuw/g0rZnM/HU9TMCtZL4z9V14+zTlQou9TxvEciRyWCNT2donmwWXT822r5woVBjxluZz6d3nuFYRpRv4KZlWx0gOJiU5ethEJimVgvbZNqPDlyhWc6OCjY0Vs8tztQHZU9xEpOph0aHl2ClGbgIj7GRQYEv/7jH93n3O8tnzXvaju8sg0RsCp9AL2q7nqNlshXICpTSu0Sfi6uwc6kAhmjA+HrVnkSUu0QNGi5hQ6jfGTg0ZlHXtp6xskbJT668BK4PMxBKj9OaJ61MLNDlkAMVF7/YJN3CbjfpyC+LDhGSy+bJNdKydg==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

There is a file that keeps track of which patches are installed.  patch status properties.  It seems like the patches are in the container, but the file that keeps track of those patches is not updated?  So some patches appear to be there but grouper doesn’t know it so dependent patches would not be installed either.

 

Would be cleanest to make sure that file is up to date in the image.  You could also try putting this in the grouper.installer.properties:

 

# autorun, Problem installing patch since this patch file: <filename> is not the same as what the patch expects:

# Do you want to force install this patch (t|f)? [f]:

grouperInstaller.autorun.forceInstallPatch = t

 

Im looking at the release notes and I don’t think your issue is fixed in a patch, but definitely getting them installed is the first step:

 

https://spaces.internet2.edu/display/Grouper/v2.3+Release+Notes

 

Thanks

Chris

 

From: Darren Boss [mailto:]
Sent: Tuesday, September 19, 2017 9:07 AM
To: Hyzer, Chris <>;
Subject: Re: [grouper-users] New UI problems with reverse proxy

 

Some discussion occured just between Chris and myself. It does appear that not all patches are getting applied when building the Grouper UI Docker image. The Dockerfile does the war build and applies patching using this grouper.installer-ui.properties file:

 

grouperInstaller.autorun.useDefaultsAsMuchAsAvailable = true

grouperInstaller.autorun.continueAfterDeleteUiWorkDirectory = true

grouperInstaller.autorun.actionEgInstallUpgradePatch = patch

grouperInstaller.autorun.tarballDirectory = /tmp/grp-ui

grouperInstaller.autorun.appToUpgrade = ui

grouperInstaller.autorun.grouperWhereInstalled = /opt/apache-tomcat-6.0.44/webapps/grouper/

grouperInstaller.autorun.patchAction = install

grouper.version = 2.3.0

 

Right off the bat there is a problem appling a the first api patch:

Downloading from URL: http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_api_patch_0.tar.gz to file: /tmp/grp-ui/patches/grouper_v2_3_0_api_patch_0.tar.Cannot apply patch since this patch file:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil$2.class

  /tmp/grp-ui/patches/grouper_v2_3_0_api_patch_0/new/classes/edu/internet2/middleware/grouper/util/GrouperUtil$2.class

  is supposed to be new, but it already exists:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil$2.class

Problem applying patch since this file:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil$MaskingThread.class

  should not exist yet

  Do you want to force install this patch (t|f)? [f]: 

<using default which is blank due to grouperInstaller.autorun.useDefaultsAsMuchAsAvailable and grouperInstaller.autorun.forceInstallPatch>: 

Cannot apply patch since this patch file:

  /tmp/grp-ui/patches/grouper_v2_3_0_api_patch_0/new/classes/edu/internet2/middleware/grouper/util/GrouperUtil$MaskingThread.class

  is supposed to be new, but it already exists:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil$MaskingThread.class

Problem applying patch since this file:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil.class

  should not exist yet

  Do you want to force install this patch (t|f)? [f]: 

<using default which is blank due to grouperInstaller.autorun.useDefaultsAsMuchAsAvailable and grouperInstaller.autorun.forceInstallPatch>: 

Cannot apply patch since this patch file:

  /tmp/grp-ui/patches/grouper_v2_3_0_api_patch_0/new/classes/edu/internet2/middleware/grouper/util/GrouperUtil.class

  is supposed to be new, but it already exists:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil.class

Problem applying patch since this file:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil.java

  should not exist yet

  Do you want to force install this patch (t|f)? [f]: 

<using default which is blank due to grouperInstaller.autorun.useDefaultsAsMuchAsAvailable and grouperInstaller.autorun.forceInstallPatch>: 

Cannot apply patch since this patch file:

  /tmp/grp-ui/patches/grouper_v2_3_0_api_patch_0/new/classes/edu/internet2/middleware/grouper/util/GrouperUtil.java

  is supposed to be new, but it already exists:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil.java

Problem applying patch since this file:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil$DaemonThreadFactory.class

  should not exist yet

  Do you want to force install this patch (t|f)? [f]: 

<using default which is blank due to grouperInstaller.autorun.useDefaultsAsMuchAsAvailable and grouperInstaller.autorun.forceInstallPatch>: 

Cannot apply patch since this patch file:

  /tmp/grp-ui/patches/grouper_v2_3_0_api_patch_0/new/classes/edu/internet2/middleware/grouper/util/GrouperUtil$DaemonThreadFactory.class

  is supposed to be new, but it already exists:

  /opt/apache-tomcat-6.0.44/webapps/grouper/WEB-INF/classes/edu/internet2/middleware/grouper/util/GrouperUtil$DaemonThreadFactory.class

 - added to end of property file: grouper_v2_3_0_api_patch_0.state = error

 

Does someone understand what might be happening? Are the patches being applied but detected as errors because of the force installation and then subsequent patches not being applied because it's detected that previous dependent patches have not applied?

 

 

On Mon, Sep 18, 2017 at 10:13 AM Hyzer, Chris <> wrote:

> Full disclousure, I'm running Grouper in containers under Kubernetes with an nginx ingress

> controller which is terminating TLS at the ingress. When I use "kubectl port-forward pod-name"

> and access the ui over localhost:8080 I have no issues in accessing the interface.

 

So you are saying it works when you are not load balancing?  But it doesn’t work with load balancing?  Is the load balancing sticky by cookie?  Does it work if it is load balancing with one node in the pool?

 

What the X-Grouper-path response http header coming back from the server?

 

Are you sure there are no errors in any of the logs?

 

Thanks

Chris

 

 

From: [mailto:] On Behalf Of Darren Boss
Sent: Monday, September 18, 2017 9:58 AM
To:
Subject: [grouper-users] New UI problems with reverse proxy

 

Question about the New UI and OWASP csrfguard and accessing the UI behind a nginx reverse proxy.

 

Took me a little while to figure out the additions to make to Tomcat to fix the major issue of accessing the UI after which the admin ui works. This is a common solution when running tomcat behind a reverse proxy. I have another tweak for Jetty that accomplished the same.

 

<Valve className="org.apache.catalina.valves.RemoteIpValve"

        internalProxies="my.nginx.proxy.address"

        remoteIpHeader="x-forwarded-for"

        requestAttributesEnabled="true"

        protocolHeader="x-forwarded-proto"

        protocolHeaderHttpsValue="https"/>

 

Now when I click on any link in the new ui I end up in an infinite redirect loop with &csrfExtraParam=xyz being added to the existing url on every redirect. I've tried to search through the mailing list to find a resolution. I know there are lots of deployments behind reverse proxies so this should be a solved issue.

 

Full disclousure, I'm running Grouper in containers under Kubernetes with an nginx ingress controller which is terminating TLS at the ingress. When I use "kubectl port-forward pod-name" and access the ui over localhost:8080 I have no issues in accessing the interface.

 

I'm also incredably new to deploying grouper but had been using the deployment at Duke when I was a staff member there and I believe their deployment was running under OpenShift so probably a similar deployment to what I'm doing now.

--

Darren Boss

Senior Programmer/Analyst
Programmeur-analyste principal

(o) 416.228.1234 x
230

(c) 919.525.0083

--

Darren Boss

Senior Programmer/Analyst
Programmeur-analyste principal

(o) 416.228.1234 x
230

(c) 919.525.0083


155 University Ave, Suite 302 Toronto, ON M5H 3B7
www.computecanada.ca / www.calculcanada.ca 
@ComputeCanada 




Archive powered by MHonArc 2.6.19.

Top of Page