Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Respect Kibana / Fleet config schema when inheriting ES credentials#1394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
nick-benoit wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromfix-invalid-auth-config

Conversation

@nick-benoit
Copy link
Contributor

@nick-benoitnick-benoit commentedOct 25, 2025
edited
Loading

Fixes:#1393

Before this PR we were using the ES Config as a starting point and applying Kibana provider block and environment configs on top of that. This can lead to invalid Configs where both Username / Password and ApiKey are both configured.

This PR starts with an empty Kibana / Fleet config, then applies provider settings, environment overrides, then only applies defaults for unknown values (while respecting mutually exclusive values like Username / ApiKey)

Additionally we addfleetConfigKeys andkibanaConfigKeys which allows us to track explicitly set fields. This adds a bit of overhead to maintain state, but allows us to correctly differentiate between explicit empty values and unset values in a way that supports both the sdkv2 and plugin framework implementations. Technically the Kibana config doesn't require tracking the keys because it only inherits string values from ES, but I thought it was more straightforward for Fleet and Kibana to use a similar pattern.

Instead of using the defaults as a starting point we apply them after building the config object to any fields that are not set. In doing so we respect fields that are mutually exclusive like api_key and username. Applying defaults at the end makes it easier to check we aren't accidentally building an invalid config.
@nick-benoit
Copy link
ContributorAuthor

Woops, not sure why this doesn't seem to be playing nice with the SLO test. I'll switch back to a draft while I sort that out.

@nick-benoitnick-benoit marked this pull request as draftOctober 25, 2025 02:50
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tobiotobioAwaiting requested review from tobio

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug] Multiple Authorization headers sent in some cases

2 participants

@nick-benoit

[8]ページ先頭

©2009-2025 Movatter.jp