-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add username password back from es to kibana config #10553
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Not for this PR but would probably be good that we have some tests for this.
if !kibanaConfig.HasField("password") && password != "" { | ||
kibanaConfig.SetString("password", -1, password) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is some old code re-introduced. But in general: We should not use SetX on globally shared configuration objects. Instead of passing through *common.Config
, as is done here, we should strive for concrete types and unpack as early as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@urso Would it be ok for you to get this in as is for FF and we open an issue to clean this up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
#10451 seems to be the reason why dashboard failed to load under security: #10513 @andrewkroh Thank you for your help!