Skip to content

Jetty SSL connector ignoring server.address #12031

@mtrejo-zz

Description

@mtrejo-zz

Version: 1.5.6.RELEASE

pom.xml

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jetty</artifactId>
        </dependency>

application.yml

server:
  address: 10.0.2.15
  port: 8443
  ssl:
    enabled: true
    key-store: classpath:keys/server.jks
    key-store-password: *********

Even though I'm explicitly setting the binding address, when I run the application, I see the following in the console:

13:54:46.048 [main] INFO  o.e.jetty.server.AbstractConnector - Started ServerConnector@77049094{SSL,[ssl, http/1.1]}{0.0.0.0:8443}
13:54:46.060 [main] INFO  o.s.b.c.e.j.JettyEmbeddedServletContainer - Jetty started on port(s) 8443 (ssl, http/1.1)

Which means the server is listening on every available address on the host, unless there's a good reason to ignore the value of server.address when setting up SSL for Jetty, I would think this is a bug. I believe the issue is around here https://github.com/spring-projects/spring-boot/blob/v1.5.6.RELEASE/spring-boot/src/main/java/org/springframework/boot/context/embedded/jetty/JettyEmbeddedServletContainerFactory.java#L180.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: supersededAn issue that has been superseded by another

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions