Skip to content

Config retriever doesn't get config for spring-cloud-config with HTTPS #149

Description

@minhaj86

Questions

Vertx config retriever does not work with spring-cloud-config server with HTTPS even if the spring-cloud-config server is configured with proper certificate (not self signed) . Underlying exception says "Connection closed"

Sample code:

    ConfigStoreOptions springCloudStore =
            new ConfigStoreOptions()
                    .setType("spring-config-server")
                    .setConfig(
                            new JsonObject()
                                    .put("url", String.format("https://some-cloud-config-server.com/application/profile", profile))
                                    .put("ssl", true)
                                    .put("timeout", 60000)
                                    .put("user", "dummy-user")
                                    .put("password", "secret")
                    );

    ConfigRetriever retriever =
            ConfigRetriever.create(
                    vertx,
                    new ConfigRetrieverOptions()
                            .addStore(springCloudStore)
            );
    retriever.getConfig(json -> {
        if (json.failed()) {
            log.error("failed to retrieve config {}", json.cause().getMessage());
            return;
        }

Version

4.3.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions