Skip to content

[8.18] [Connectors] Fix Bedrock connector not using the action proxy configuration (#224130)#224328

Merged
spong merged 1 commit intoelastic:8.18from
spong:backport/8.18/pr-224130
Jun 17, 2025
Merged

[8.18] [Connectors] Fix Bedrock connector not using the action proxy configuration (#224130)#224328
spong merged 1 commit intoelastic:8.18from
spong:backport/8.18/pr-224130

Conversation

@spong
Copy link
Member

@spong spong commented Jun 17, 2025

Backport

This will backport the following commits from main to 8.18:

Questions ?

Please refer to the Backport tool documentation

…ration (elastic#224130)

## Summary

Similar to elastic#219617, this PR fixes
an issue with the `BedrockConnector` not using the configured
`xpack.actions.proxyUrl`.

To test, add the following
[`xpack.actions.proxyUrl`](https://p.elstc.co/paste/DaM71BUP#iHki8gmY4-LZcfQD0ja6HeMHknuvpEvQtSbapcAEOXb)
to your `kibana.dev.yml`, then create a Bedrock connector and confirm in
the Kibana server logs that the configured proxy is being used and a
successful response is returned. Sample `debug` logs look something
along the lines of:

```
[2025-06-16T11:59:36.282-06:00][DEBUG][plugins.actions.bedrock] executing action .bedrock:sonnet-3-7: Sonnet 3.7 (Bedrock)
[2025-06-16T11:59:36.286-06:00][DEBUG][plugins.actions] Request to external service. Connector Id: sonnet-3-7. Connector type: .bedrock Method: post. URL: https://bedrock-runtime.us-east-1.amazonaws.com/model/us.anthropic.claude-3-7-sonnet-20250219-v1%3A0/invoke
[2025-06-16T11:59:36.286-06:00][DEBUG][plugins.actions] Creating proxy agents for proxy: https://PROXY_URL/
```

Be sure to enable debug logging for the actions plugin ala:

```
logging:
  loggers:
    - name: plugins.actions
      level: debug
```

### Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Steph Milovic <stephanie.milovic@elastic.co>
(cherry picked from commit 321f9a1)

# Conflicts:
#	renovate.json
#	x-pack/platform/plugins/shared/stack_connectors/server/connector_types/bedrock/bedrock.ts
@spong spong requested a review from kibanamachine as a code owner June 17, 2025 20:33
@spong spong added the backport This PR is a backport of another PR label Jun 17, 2025
@spong spong enabled auto-merge (squash) June 17, 2025 20:33
@spong spong merged commit ab128c2 into elastic:8.18 Jun 17, 2025
11 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

@spong spong deleted the backport/8.18/pr-224130 branch June 17, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

3 participants