Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix(elasticsearch): skip role fetching for OpenSearch with AWS IAM auth (#18302)

Vincent Huang15fdb95fae92
diff --git a/backend/plugin/db/elasticsearch/role.go b/backend/plugin/db/elasticsearch/role.go
index 311bdef8c2..6feeeec441 100644
--- a/backend/plugin/db/elasticsearch/role.go
+++ b/backend/plugin/db/elasticsearch/role.go
@@ -21,6 +21,11 @@ type UserResult struct {
}
func (d *Driver) getInstanceRoles() ([]*storepb.InstanceRole, error) {
+ // AWS IAM authentication doesn't use internal users - skip role fetching
+ if d.config.DataSource.GetAuthenticationType() == storepb.DataSource_AWS_RDS_IAM {
+ return nil, nil
+ }
+
var bytes []byte
if d.isOpenSearch && d.opensearchClient != nil {