feat: streamline Elastic authentication to use only API key and update docs#3796
Merged
forestileao merged 10 commits intosuperplanehq:mainfrom Apr 14, 2026
Merged
Conversation
…ate documentation Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
|
👋 Commands for maintainers:
|
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Collaborator
Author
…e connector handling Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
…ocessing in webhook Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
…atusChange Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
forestileao
reviewed
Apr 13, 2026
…adability Signed-off-by: WashingtonKK <washingtonkigan@gmail.com>
forestileao
approved these changes
Apr 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Fixes #3785
This fixes the elastic integration by making the following adjustments:
Screencast.from.2026-03-30.12-16-41.webm
Note
Medium Risk
Moderate risk because it changes Elastic integration configuration (removing basic auth) and rewires trigger provisioning/cleanup logic for Kibana connectors and case-status polling, which could impact existing installations and alert routing.
Overview
Elastic integration auth is now API-key only. The
authType/basic-auth configuration fields and logic are removed,apiKeyis required, and docs/instructions are updated accordingly.Kibana validation is hardened.
ValidateKibananow verifies connector create + delete permissions by creating a temporary validation connector and deleting it, preventing integrations from showing as ready when connector management is forbidden.Trigger provisioning behavior is updated.
When Alert Firesnow schedules an internal action to locate the shared webhook connector by URL, attach/update it on the selected rule (and detach from any previous rule), and cleans up by detaching on trigger removal;EnsureKibanaRuleHasConnectornow updates mismatched action params instead of no-op.When Case Status Changesshifts from provisioning a Kibana query rule to periodic polling of the cases API and emittingelastic.case.status.changedon detected status transitions.On Document Indexednow finds the shared connector by webhook URL (not by connector name) before creating its Kibana rule.Webhook handler responsibilities are narrowed. The Elastic webhook handler now only manages shared connector creation/reuse and secret sync, no longer attaching/detaching connectors to specific Kibana rules. Tests are updated/added to cover the new flows and legacy tag payload parsing (comma-separated
tags).Reviewed by Cursor Bugbot for commit 8bdaa53. Bugbot is set up for automated code reviews on this repo. Configure here.