-
Bug
-
Resolution: Done
-
Major
-
7.2.0.GA
-
2
-
-
-
-
-
-
+
-
https://gitlab.cee.redhat.com/red-hat-jboss-enterprise-application-platform-documentation/eap-documentation/-/merge_requests/5140, https://gitlab.cee.redhat.com/red-hat-jboss-enterprise-application-platform-documentation/eap-documentation/-/merge_requests/5155, https://gitlab.cee.redhat.com/red-hat-jboss-enterprise-application-platform-documentation/eap-documentation/-/merge_requests/5162
-
-
Bulk 102 - Sep 22 - Oct 6, Bulk 103- Oct 7 - Oct 22, Bulk 104- Oct 23 - Nov 5
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;
- is cloned by
-
JBEAP-20453 7.4 Standalone native git SSH support clarification
-
- Closed
-