@SuppressWarnings("deprecation")
    private HttpResponse postRequest(URI uri, Slime slime) {
        var postRequest = new HttpPost(uri);
        var data = uncheck(() -> SlimeUtils.toJsonBytes(slime));
        var entity = new ByteArrayEntity(data, ContentType.DEFAULT_BINARY);
        postRequest.setEntity(entity);
        try {
            return new ProxyResponse(httpClient.execute(postRequest));
        } catch (IOException e) {
            return HttpErrorResponse.internalServerError(
                    String.format("Failed to post request to %s: %s", uri, Exceptions.toMessageString(e))
            );
        }
    }
@author olaa
Takes the payload received from the controller and acts as a proxy for the AwsParameterStoreValidationHandler result
configserver/src/main/java/com/yahoo/vespa/config/server/http/SecretStoreValidator.java