Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16489

[GSS](7.2.x) Standalone native git SSH support clarification

    XMLWordPrintable

Details

    • Bulk 102 - Sep 22 - Oct 6, Bulk 103- Oct 7 - Oct 22, Bulk 104- Oct 23 - Nov 5

    Description

      1. What is the nature and description of the bug?
      Official documentation[1] is saying:

      Although Git supports SSH authentication, Elytron does not; therefore, only default SSH authentication is supported using private keys without a password.

      It's kind of confusing. Is it able to deal SSH connection if keys are set or not?
      I've done a test setting the SSH keys, I'm able to clone without a password, but not using it with JBoss EAP. For example:

      ./standalone.sh --git-repo=git@github.com:imptrck/jboss-configuration.git

      10:08:54,253 INFO  [org.jboss.modules] (main) JBoss Modules version 1.8.6.Final-redhat-00001
      java.lang.RuntimeException: WFLYSRV0269: Failed to initialize the repository git@github.com:imptrck/jboss-configuration.git
      	at org.jboss.as.server.controller.git.GitRepository.<init>(GitRepository.java:139)
      	at org.jboss.as.server.ServerEnvironment.<init>(ServerEnvironment.java:539)
      	at org.jboss.as.server.Main.determineEnvironment(Main.java:388)
      	at org.jboss.as.server.Main.main(Main.java:96)
      	at org.jboss.modules.Module.run(Module.java:352)
      	at org.jboss.modules.Module.run(Module.java:320)
      	at org.jboss.modules.Main.main(Main.java:593)
      Caused by: org.eclipse.jgit.api.errors.TransportException: git@github.com:imptrck/jboss-configuration.git: Auth fail
      	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:254)
      	at org.eclipse.jgit.api.PullCommand.call(PullCommand.java:290)
      	at org.jboss.as.server.controller.git.GitRepository.<init>(GitRepository.java:133)
      	... 6 more
      Caused by: org.eclipse.jgit.errors.TransportException: git@github.com:imptrck/jboss-configuration.git: Auth fail
      	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:183)
      	at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:140)
      	at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:280)
      	at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:170)
      	at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:137)
      	at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:123)
      	at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1271)
      	at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:243)
      	... 8 more
      Caused by: com.jcraft.jsch.JSchException: Auth fail
      	at com.jcraft.jsch.Session.connect(Session.java:519)
      	at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:137)
      	... 15 more
      10:08:56,130 FATAL [org.jboss.as.server] (main) WFLYSRV0239: Aborting with exit code 1
      

      I'm not sure if it's meant to work when SSH keys are set or the documentation should be fixed/clarified;

      https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.2/html-single/configuration_guide/index#using_git_to_manage_configuration_data

      Attachments

        Issue Links

          Activity

            People

              amehenda@redhat.com Ashwin Mehendale
              rhn-support-pdelbell Patrick Del Bello
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: