1. Describe your incident:
I’m running Graylog on AWS fargate with AWS OpenSearch and enabled authentication. However, when Graylog starts up, it mentioned as unauthoized.
In the config file:
elasticsearch_hosts =https://username:password@vpc-xxx.es.amazonaws.com:443
Previously, when I have not enable the OpenSearch Authentication, Graylog was able to connect to OpenSearch via https.
Note that the password only contain special characters of - or _ only
2. Describe your environment:
-
OS Information: RedHat 9
-
Package Version: Graylog 5.0.2
-
Service logs, configurations, and environment variables:
ERROR: org.graylog2.storage.versionprobe.VersionProbe - Unable to retrieve version from Elasticsearch node vpc-xxxx.es.amazonaws.com:-1: unknown error - an exception occurred while deserializing error response: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'Unauthorized': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 1, column: 13]
3. What steps have you already taken to try and solve the problem?
Did a “curl https://username:password@vpc-xxx.es.amazonaws.com:443” within the fargate that hosted Graylog, it return with a successful response.
{
"name" : "xxxxx",
"cluster_name" : "xxx:x",
"cluster_uuid" : "xxx",
"version" : {
"distribution" : "opensearch",
"number" : "2.3.0",
"build_type" : "tar",
"build_hash" : "unknown",
"build_date" : "2023-04-20T07:23:19.274646Z",
"build_snapshot" : false,
"lucene_version" : "9.3.0",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
4. How can the community help?
Can anyone point me a direction i should be looking at?