Applications cannot access the configuration via config server with Vault backend, in config server logs, there are error messages as following:
[Request processing failed; nested exception is org.springframework.web.client.ResourceAccessException: I/O error on POST request for "http://127.0.0.1:8200/v1/auth/token/renew-self": Connect to 127.0.0.1:8200 [/127.0.0.1] failed: Connection refused (Connection refused)
Spring Cloud Services for VMware Tanzu 3.1.54
This issue is caused by a code change in SCS 3.1.54.
In order to work around the issue, please follow the two steps as below:
1- In the composite remove vault.
So instead of a composite config,
{
"name": "foo",
"profiles": [
"default"
],
"label": null,
"version": null,
"state": null,
"propertySources": [
{
"name": "vault:foo",
"source": {
"foo": "vault"
}
}
]
}
2- Enter the configutarion for a vault and a git:
{
"vault":{
"scheme":"https",
"port":"xx",
"host":"mydomain.com",
"backend":"mybackend folder",
"....."
},
"git":{
"url:":"http://mygit.com"
"...."
}
}
You will have a git and a vault, that will workaround the issue until a patch is released.
The patch is being worked and it will be released on a new version of the spring cloud services tile.
A patch will be confirmed on the following SCS version.