-
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
[kibana] support api_key #40360
[kibana] support api_key #40360
Conversation
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
|
@sachin-frayne can you take care of CI failures. LGTM otherwise. |
I've rebased main. |
Thank you |
Hello @VihasMakwana. I have fixed the CI, I have also changed the setting in: .github/workflows/golangci-lint.yml removing:
I don't think this was causing any failures, but in debugging I found that the setting is removed/being removed: https://github.com/golangci/golangci-lint-action Can you please review one more time? |
Hello @VihasMakwana When you get a chance can you please review this? |
@alexsapran / @pazone could you please review here? |
The task is to review this line. right @pierrehilbert? |
.github/workflows/golangci-lint.yml
Outdated
@@ -53,8 +53,5 @@ jobs: | |||
# into fixing all linting issues in the whole file instead | |||
args: --timeout=30m --whole-files | |||
|
|||
# Optional: if set to true then the action will use pre-installed Go. | |||
skip-go-installation: true |
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.
This was deprecated in
v4.0.0+ requires an explicit actions/setup-go installation step before using this action: uses: actions/setup-go@v5. The skip-go-installation option has been removed.
But we are running version v1.55.2
, so I am not sure removing this achieves what you want.
Why we wan to remove this line?
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 will revert this change now.
Yes this is where your review is needed, the rest of the PR has been reviewed by @belimawr |
I have added I removed it while trying to fix some CI issues since it will be deprecated anyways, but since current version is still using it, I have no reason to change it. |
Since I have reverted the change with the Thank you. |
Hey @belimawr, :) Thank you for your review and the suggestions, you are correct the header should only be set if the apikey is not an empty string, I have implemented an if statement around the function. Please review and let me know if you are happy with the changes? |
Hello @VihasMakwana: I am not sure, but I believe I am still waiting for your approval. |
@sachin-frayne as @VihasMakwana and @belimawr are in the same team, one of them you should be enough. |
@sachin-frayne is @elastic/stack-monitoring :-) |
I still think you need someone from your team to approve the change according to the codeowners. |
* [kibana] support api_key * changes username and password to generic values * make check formatting changes * removes skip-go-installation option * fixes: naked return in func * adds skip-go-installation back * only sets header if apikey is not empty --------- Co-authored-by: VihasMakwana <[email protected]> (cherry picked from commit f934ab8)
* [kibana] support api_key * changes username and password to generic values * make check formatting changes * removes skip-go-installation option * fixes: naked return in func * adds skip-go-installation back * only sets header if apikey is not empty --------- Co-authored-by: VihasMakwana <[email protected]> (cherry picked from commit f934ab8) Co-authored-by: Sachin Frayne <[email protected]> Co-authored-by: Pierre HILBERT <[email protected]>
Summary
Adds support for api_key authentication in the kibana module
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.How to test this PR locally
[1]
Related issues
Use cases
Screenshots
Logs