Skip to content

Conversation

@jonathan-buttner
Copy link
Contributor

@jonathan-buttner jonathan-buttner commented Feb 28, 2025

This PR is stacked on: #123639, that one needs to be merged first.

This PR adds logic to look up the IP of the EIS getaway and log it.

To enable it debug needs to be enabled for the ElasticInferenceServiceAuthorizationRequestHandler class and a setting needs to be enabled.

Enabling via dev tools:

PUT _cluster/settings
{
  "transient": {
"logger.org.elasticsearch.xpack.inference.services.elastic.authorization.ElasticInferenceServiceAuthorizationRequestHandler": "DEBUG",
"xpack.inference.elastic.authorization_debugging_dns_lookup_enabled": true
  }
}

Enabling via gradle

./gradlew :run -Drun.license_type=trial -Dtests.es.xpack.inference.elastic.url=https://localhost:8443 -Dtests.es.xpack.inference.elastic.http.ssl.verification_mode=none -Dtests.es.logger.org.elasticsearch.xpack.inference.services.elastic.authorization.ElasticInferenceServiceAuthorizationRequestHandler=DEBUG -Dtests.es.xpack.inference.elastic.authorization_debugging_dns_lookup_enabled=true

The output will look like this:

[2025-02-28T16:42:38,377][DEBUG][o.e.x.i.s.e.a.ElasticInferenceServiceAuthorizationRequestHandler] [runTask-0] Attempting to look up authorization gateway host info
[2025-02-28T16:42:38,377][DEBUG][o.e.x.i.s.e.a.ElasticInferenceServiceAuthorizationRequestHandler] [runTask-0] Looking up authorization gateway ip for url: https://localhost:8443, host: localhost
[2025-02-28T16:42:38,377][DEBUG][o.e.x.i.s.e.a.ElasticInferenceServiceAuthorizationRequestHandler] [runTask-0] Gateway address: 127.0.0.1

@jonathan-buttner jonathan-buttner added >non-issue :ml Machine learning Team:ML Meta label for the ML team Feature:GenAI Features around GenAI v8.19.0 v9.1.0 labels Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:GenAI Features around GenAI :ml Machine learning >non-issue Team:ML Meta label for the ML team v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant