Skip to content

Connect Kibana via HTTP with basic auth credentials#12

Merged
alanthssss merged 2 commits into
mainfrom
copilot/connect-kibana
Mar 31, 2026
Merged

Connect Kibana via HTTP with basic auth credentials#12
alanthssss merged 2 commits into
mainfrom
copilot/connect-kibana

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

Kibana connectivity was previously checked via raw TCP only, with no way to supply credentials. This adds HTTP-based checking against Kibana's /api/status endpoint with Basic Auth support.

Config structure change

kibana in config.yml moves from a flat address list to a structured block:

# Before
kibana:
  - 10.0.1.26:5601

# After
kibana:
  addresses:
    - 10.0.1.26:5601
  username: elastic
  password: changeme

Code changes

  • config/config.go — introduces KibanaConfig (addresses + credentials) and AppConfig which embeds it alongside an inline map[string][]string for all other TCP services
  • checker/checker.go — adds CheckKibanaConnection which GETs http://<addr>/api/status, sets Authorization: Basic … when both credentials are present, and treats HTTP ≥ 400 as failure
  • main.go — dispatches Kibana addresses to CheckKibanaConnection; all other services continue using the TCP checker
  • config.yml / docker/config.yml — updated to the new Kibana block format

Copilot AI linked an issue Mar 31, 2026 that may be closed by this pull request
Agent-Logs-Url: https://github.com/keyscome/pulse/sessions/b7fab859-8530-4788-a2dc-cf4ebe52f79b

Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Copilot AI changed the title [WIP] Connect Kibana with username and password Connect Kibana via HTTP with basic auth credentials Mar 31, 2026
Copilot AI requested a review from alanthssss March 31, 2026 16:14
Copy link
Copy Markdown
Member

@alanthssss alanthssss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alanthssss alanthssss marked this pull request as ready for review March 31, 2026 16:49
@alanthssss alanthssss merged commit c5d785a into main Mar 31, 2026
@alanthssss alanthssss deleted the copilot/connect-kibana branch March 31, 2026 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Connect Kibana

2 participants