[ 
https://issues.apache.org/jira/browse/SOLR-15484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792412#comment-17792412
 ] 

Vincent Privat edited comment on SOLR-15484 at 12/2/23 5:53 PM:
----------------------------------------------------------------

Is it possible to update the certificate to allow 
"{color:#cccccc}kubernetes.docker.internal"? This is the only failing test I 
face while setting up my environment:{color}


{code:java}
2> org.apache.solr.common.SolrException: Well-known config could not be read 
from url 
+https://kubernetes.docker.internal:61103/default/.well-known/openid-configuration+
 2> at 
org.apache.solr.security.jwt.JWTIssuerConfig$WellKnownDiscoveryConfig.parse(JWTIssuerConfig.java:536)
 ~[main/:?]
 2> ...
 2> Caused by: javax.net.ssl.SSLHandshakeException: No name matching 
kubernetes.docker.internal found
 2> at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) 
~[?:?]
 2> ...
 2> Caused by: java.security.cert.CertificateException: No name matching 
kubernetes.docker.internal found
 2> at 
java.base/sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:234) 
~[?:?]
{code}
 


was (Author: don-vip):
Is it possible to update the certificate to allow 
"{color:#cccccc}{color:#ebebeb}kubernetes.docker.internal"? This is the only 
failing test I face while setting up my environment:{color}{color}

 
{color:#ebebeb} 2> org.apache.solr.common.SolrException: Well-known config 
could not be read from url 
{color}+https://kubernetes.docker.internal:61103/default/.well-known/openid-configuration+

{color:#ebebeb} 2> at 
org.apache.solr.security.jwt.JWTIssuerConfig$WellKnownDiscoveryConfig.parse(JWTIssuerConfig.java:536)
 ~[main/:?]{color}
{color:#ebebeb} 2> ...{color}
{color:#ebebeb} 2> Caused by: javax.net.ssl.SSLHandshakeException: No name 
matching kubernetes.docker.internal found{color}
{color:#ebebeb} 2> at 
java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) 
~[?:?]{color}

{color:#ebebeb} 2> ...{color}

{color:#ebebeb} 2> Caused by: java.security.cert.CertificateException: No name 
matching kubernetes.docker.internal found{color}

{color:#ebebeb} 2> at 
java.base/sun.security.util.HostnameChecker.matchDNS(HostnameChecker.java:234) 
~[?:?]{color}

> Frequent test failures for JWTAuthPluginIntegrationTest
> -------------------------------------------------------
>
>                 Key: SOLR-15484
>                 URL: https://issues.apache.org/jira/browse/SOLR-15484
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 9.0
>            Reporter: Jan Høydahl
>            Assignee: Jan Høydahl
>            Priority: Major
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Example:
> Build: [https://ci-builds.apache.org/job/Solr/job/Solr-Check-main/1053/]
> {code}
> 1 tests failed.
> FAILED:  
> org.apache.solr.security.JWTAuthPluginIntegrationTest.mockOAuth2Server
> Error Message:
> org.junit.ComparisonFailure: Should have received 401 code expected:<[401]> 
> but was:<[200]>
> Stack Trace:
> org.junit.ComparisonFailure: Should have received 401 code expected:<[401]> 
> but was:<[200]>
>  at __randomizedtesting.SeedInfo.seed([7827798BF4D91EFE:FF2798DB9165E212]:0)
>  at org.junit.Assert.assertEquals(Assert.java:117)
>  at 
> org.apache.solr.security.JWTAuthPluginIntegrationTest.mockOAuth2Server(JWTAuthPluginIntegrationTest.java:143)
> ...
> {code}
> The other test failure is
> {code}
> org.apache.solr.security.JWTAuthPluginTest.initWithInvalidTrustedCertsFile
> Failing for the past 1 build (Since #924 )
> Took 7 ms.
> Error Message
> junit.framework.AssertionFailedError: Expected exception SolrException but no 
> exception was thrown
> Stacktrace
> junit.framework.AssertionFailedError: Expected exception SolrException but no 
> exception was thrown
>       at 
> __randomizedtesting.SeedInfo.seed([8651FF5FA6DE29A1:91C33C9AFD0459B5]:0)
>       at 
> org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2863)
>       at 
> org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2849)
>       at 
> org.apache.solr.security.JWTAuthPluginTest.initWithInvalidTrustedCertsFile(JWTAuthPluginTest.java:521)
> ...
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to