Problem:
Reading all environment variables might "pollute" the configuration with values that are meant for other applications. Most notably the $PORT variable used in containers for the main web server.
Potential solution:
final JsonObject envConfig = new JsonObject().put("keys", new JsonArray("[\"color\",\"taste\"]"));
final ConfigStoreOptions env = new ConfigStoreOptions().setType("env").setConfig(envConfig);
Problem: Reading all environment variables might "pollute" the configuration with values that are meant for other applications. Most notably the $PORT variable used in containers for the main web server.
Potential solution:
This requires to overwrite https://github.com/vert-x3/vertx-config/blob/master/vertx-config/src/main/java/io/vertx/config/impl/spi/EnvVariablesConfigStore.java like this:
Something along that lines