grafana / opensearch-datasource

Apache License 2.0
27 stars 21 forks source link

Pass context in Lucene and PPL query requests #507

Closed idastambuk closed 3 days ago

idastambuk commented 3 days ago

What this PR does / why we need it:

We had a bug report that oauth authorization headers weren't being passed if Forward OAuth Identity was selected. Resource requests were passing them fine, but query requests failed. It seems like not passing the context made it so that the appropriate headers weren't being applied in plugin-sdk. User provided us with a docker-compose file where it was clear the the Authorization header was empty:

Screenshot 2024-11-18 at 20 58 08

After this fix:

Screenshot 2024-11-18 at 20 51 32

Which issue(s) this PR fixes:

Fixes https://github.com/grafana/opensearch-datasource/issues/487

Special notes for your reviewer: