mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Obs AI Assistant] Fix auth in the evaluation framework (#214619)
This commit is contained in:
parent
206eb3960c
commit
3cb6a63807
1 changed files with 4 additions and 1 deletions
|
@ -26,7 +26,10 @@ export const elasticsearchOption = {
|
|||
string: true as const,
|
||||
default: format({
|
||||
...parse(config.elasticsearch.hosts || 'http://localhost:9200'),
|
||||
auth: `${config.elasticsearch.username}:${config.elasticsearch.password}`,
|
||||
auth:
|
||||
config.elasticsearch.username && config.elasticsearch.password
|
||||
? `${config.elasticsearch.username}:${config.elasticsearch.password}`
|
||||
: '',
|
||||
}),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue