Git Product home page Git Product logo

Comments (17)

mlbiam avatar mlbiam commented on June 11, 2024

lets start with the JSPs. There are no JSPs directly in the openunison-k8s-login-activedirectory project. Their all inherited from the war from this section of pom.xml:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-war-plugin</artifactId>
        <version>2.6</version>
        <configuration>
          <overlays>
            <overlay>
              <groupId>com.tremolosecurity.unison</groupId>
              <artifactId>open-unison-webapp</artifactId>
            </overlay>
          </overlays>
        </configuration>
      </plugin>

so there won't be any JSPs in your own project except what you add and cli-login-finished.jsp. What are you expecting to see that you don't? When you run mvn clean package and look in target/war/work/com.tremolosecurity.unison/open-unison-webapp/auth/forms you should see all the jsps:

ls target/war/work/com.tremolosecurity.unison/open-unison-webapp/auth/forms 
acknowledge.jsp              error.jsp                    jump.jsp                     pwdResetEmail.jsp            u2fAuth.jsp                
chooseLogin.jsp              firstRunError.jsp            loginTest.jsp                pwdResetNoUser.jsp           u2fRegistrationComplete.jsp
clearLogin.jsp               font/                        loginTestSimple.jsp          pwdResetSplash.jsp           u2fRegistration.jsp        
css/                         fonts/                       logout.jsp                   resetChain.jsp               userOnlyLogin.jsp          
defaultFailedLogin.jsp       images/                      noUser.jsp                   resetChooseLogin.jsp                                    
default-form.jsp             img/                         otp.jsp                      saml2_metadata.jsp                                      
defaultForm.jsp              js/                          postPreservation.jsp         secretQuestions.jsp                                     
duo/                         jumbotron-narrow.css         pwdResetBadKey.jsp           smsKey.jsp     

For the exception, that was fixed in 1.0.20 to make sure that the cacerts certificates were properly trusted. In addition to upgrading to 1.0.20, you'll need to add -Djavax.net.ssl.trustStore=/etc/openunison/unisonKeyStore.p12 to the JAVA_OPTS envionment variable defined in the openunison-orchestra Deployment in the openunison namespace.

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on June 11, 2024

sorry @vbottu i said 1.0.21 because thats the version we're working on now. its 1.0.20 you want

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on June 11, 2024

Thanks @mlbiam , I have tried customizing the webapp. But when I do a docker build all my changes are overridden from the overlay part. How do I customize the look and feel . In 1.0.18 i just changed the files under webapp and rebuilt the application and image and it worked.

Thanks.

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on June 11, 2024

it's the same process. if you do mvn clean package are your custom jsps in target/war/work/com.tremolosecurity.unison/open-unison-webapp/auth/forms ?

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on June 11, 2024

They are but they are getting replaced somehow by the default pages.

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on June 11, 2024

ok, can you verify the container you are running is the new one? Both the orchestra openunison object and the openunison-orchestra Deployment?

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on June 11, 2024

It is running the new containers for both openunison and orchestra.

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on June 11, 2024

if you exec into the openunison pod is your jsp there?

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on June 11, 2024

When I place the modified jsps in auth/forms under webapp and do a clean package then in the target folder under war/work/com.tremolosecurity.unison/open-unison-webapp folder all the files does not have my changes. They are the default files and logos.

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on June 11, 2024

i'm sorry. i pointed you at the wrong directory. thats where maven pull files out from the original war. are your customizations in target/openunison-k8s-login-activedirectory-1.0.20/auth/forms/?

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on June 11, 2024

Yes, I can see my changes in that folder. But when the image is built and I deploy orchestra i somehow see the default pages and icons.

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on June 11, 2024

odd. only thing i can think of is the image isn't being pulled. do you have a specific tag you can use when building the new image?

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on June 11, 2024

I am just using tag 1.0.20 for building the image

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on June 11, 2024

please try this:

  1. mvn clean package
  2. set your image to tag 1.0.20-fresh
  3. mvn compile jib:build
  4. update the CR to point to 1.0.20-fresh
  5. verify the openunison-orchestra Deployment is running 1.0.20-fresh
  6. verify the openunison-orchestra-aaaa pods are running 1.0.20-fresh
  7. remote shell into the openunison-orchestra-aaaa pod, check if your customizations are there
  8. In chrome, enable developer tools and check "disable cache"
  9. try logging in to openunison

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on June 11, 2024

Sure, let me try that and get back.

from openunison-k8s-login-activedirectory.

vbottu avatar vbottu commented on June 11, 2024

It worked. Thanks. However I am getting ERR_SSL_KEY_USAGE_INCOMPATIBLE in chrome(Version 85.0.4183.83 (Official Build) (64-bit)) and edge (Version 85.0.564.44 (Official build) (64-bit)) on windows 10 64 bit

from openunison-k8s-login-activedirectory.

mlbiam avatar mlbiam commented on June 11, 2024

great! since we're tracking the cert issue in #75 i'll close this thread down

from openunison-k8s-login-activedirectory.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.