Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eureka server 500 when "overriddenstatus" is omitted from request body #1541

Open
bart-vmware opened this issue Apr 12, 2024 · 0 comments
Open

Comments

@bart-vmware
Copy link

bart-vmware commented Apr 12, 2024

I'm a developer on the Steeltoe team, which provides a .NET port of Spring Cloud Eureka (client only). The port was done many years ago before I joined the team, by someone who's no longer working for our company.

While refactoring/testing our code, I used an Eureka docker image, built on the latest Java bits. To optimize network traffic, I changed our code to only send relevant properties during register. It all works fine against docker. But when deploying to Cloud Foundry, register fails with a 500 error. Based on the logs, an unhandled exception is thrown when Eureka server renders the response body:

2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] 2024-04-11T14:09:53.984Z ERROR 25 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] java.lang.NullPointerException: Cannot invoke "com.netflix.appinfo.InstanceInfo$InstanceStatus.name()" because the return value of "com.netflix.appinfo.InstanceInfo.getOverriddenStatus()" is null
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.netflix.discovery.converters.Converters$InstanceInfoConverter.marshal(Converters.java:299) ~[eureka-client-2.0.1.jar:2.0.1]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:71) ~[xstream-1.4.20.jar:1.4.20]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:59) ~[xstream-1.4.20.jar:1.4.20]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:44) ~[xstream-1.4.20.jar:1.4.20]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:83) ~[xstream-1.4.20.jar:1.4.20]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) ~[xstream-1.4.20.jar:1.4.20]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.thoughtworks.xstream.XStream.marshal(XStream.java:1303) ~[xstream-1.4.20.jar:1.4.20]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.thoughtworks.xstream.XStream.marshal(XStream.java:1292) ~[xstream-1.4.20.jar:1.4.20]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.thoughtworks.xstream.XStream.toXML(XStream.java:1280) ~[xstream-1.4.20.jar:1.4.20]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at com.netflix.discovery.converters.EntityBodyConverter.write(EntityBodyConverter.java:74) ~[eureka-client-2.0.1.jar:2.0.1]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at io.pivotal.spring.cloud.eurekaserver.jersey.AddInstanceMetadataFilter.doFilterInternal(AddInstanceMetadataFilter.java:47) ~[classes/:3.2.3]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[tomcat-embed-core-10.1.19.jar:10.1.19]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[tomcat-embed-core-10.1.19.jar:10.1.19]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.cloud.netflix.eureka.server.EurekaServerAutoConfiguration$1.doFilterInternal(EurekaServerAutoConfiguration.java:306) ~[spring-cloud-netflix-eureka-server-4.0.4.jar:4.0.4]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:174) ~[tomcat-embed-core-10.1.19.jar:10.1.19]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:149) ~[tomcat-embed-core-10.1.19.jar:10.1.19]
2024-04-11T09:09:53.987-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:108) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.FilterChainProxy.lambda$doFilterInternal$3(FilterChainProxy.java:231) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$FilterObservation$SimpleFilterObservation.lambda$wrap$1(ObservationFilterChainDecorator.java:479) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$AroundFilterObservation$SimpleAroundFilterObservation.lambda$wrap$1(ObservationFilterChainDecorator.java:340) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator.lambda$wrapSecured$0(ObservationFilterChainDecorator.java:82) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:128) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.access.intercept.AuthorizationFilter.doFilter(AuthorizationFilter.java:100) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:179) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.oauth2.server.resource.web.authentication.BearerTokenAuthenticationFilter.doFilterInternal(BearerTokenAuthenticationFilter.java:145) ~[spring-security-oauth2-resource-server-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.authentication.ui.DefaultLogoutPageGeneratingFilter.doFilterInternal(DefaultLogoutPageGeneratingFilter.java:58) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:189) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:175) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.oauth2.client.web.OAuth2AuthorizationRequestRedirectFilter.doFilterInternal(OAuth2AuthorizationRequestRedirectFilter.java:181) ~[spring-security-oauth2-client-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:107) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:93) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.header.HeaderWriterFilter.doHeadersAfter(HeaderWriterFilter.java:90) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:75) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.context.SecurityContextHolderFilter.doFilter(SecurityContextHolderFilter.java:82) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.context.SecurityContextHolderFilter.doFilter(SecurityContextHolderFilter.java:69) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:62) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:227) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.session.DisableEncodeUrlFilter.doFilterInternal(DisableEncodeUrlFilter.java:42) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:116) ~[spring-web-6.0.17.jar:6.0.17]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.wrapFilter(ObservationFilterChainDecorator.java:240) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$AroundFilterObservation$SimpleAroundFilterObservation.lambda$wrap$0(ObservationFilterChainDecorator.java:323) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$ObservationFilter.doFilter(ObservationFilterChainDecorator.java:224) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.ObservationFilterChainDecorator$VirtualFilterChain.doFilter(ObservationFilterChainDecorator.java:137) ~[spring-security-web-6.1.7.jar:6.1.7]
2024-04-11T09:09:53.988-05:00 [APP/PROC/WEB/0] [OUT] at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:233) ~[spring-security-web-6.1.7.jar:6.1.7]

This is the request body I'm sending:

{
  "instance": {
    "instanceId": "fortuneService.apps.dhaka.cf-app.com:4a432a73-ff1a-4eb2-5cd6-be6f",
    "app": "FORTUNESERVICE",
    "ipAddr": "192.168.50.231",
    "port": {
      "@enabled": "true",
      "$": 5000
    },
    "securePort": {
      "@enabled": "false",
      "$": 443
    },
    "homePageUrl": "http://fortuneService.apps.dhaka.cf-app.com:5000/",
    "statusPageUrl": "http://fortuneService.apps.dhaka.cf-app.com:5000/actuator/info",
    "healthCheckUrl": "http://fortuneService.apps.dhaka.cf-app.com:5000/actuator/health",
    "vipAddress": "fortuneService",
    "secureVipAddress": "fortuneService",
    "dataCenterInfo": {
      "@class": "com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo",
      "name": "MyOwn"
    },
    "hostName": "fortuneService.apps.dhaka.cf-app.com",
    "status": "UP",
    "leaseInfo": {
      "renewalIntervalInSecs": 30,
      "durationInSecs": 90
    },
    "metadata": {
      "cfAppGuid": "96dbc279-5eb8-4b2b-a3c7-5886f86b69b3",
      "cfInstanceIndex": "0",
      "instanceId": "4a432a73-ff1a-4eb2-5cd6-be6f",
      "zone": "unknown"
    },
    "lastUpdatedTimestamp": "1712957014863",
    "lastDirtyTimestamp": "1712957014863"
  }
}

When adding "overriddenstatus": "UNKNOWN" to the request body, it works on Cloud Foundry too. Is this a bug or expected behavior?

I'm concerned that sending along overriddenstatus periodically during renewal (ie when local configuration changed) potentially undoes an earlier overridden status, such as from Asgard as described here. Is that a justified concern or am I misunderstanding something?

In CloudFoundry, we run v3.2.3 of Spring Cloud Services, which contains the following release note for v3.2.0:

Service Registry has been upgraded to Netflix Eureka 2.0

Please let me know if you need more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant