Connect Elasticsearch cluster via HTTP API with Basic Auth#13
Merged
Conversation
Closed
Agent-Logs-Url: https://github.com/keyscome/pulse/sessions/7e4cdb39-ad62-4593-b29b-747b9c470799 Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Connect Elasticsearch cluster with password authentication
Connect Elasticsearch cluster via HTTP API with Basic Auth
Mar 31, 2026
Member
|
@copilot solve the merge conflicts |
…icsearch-cluster # Conflicts: # README.md # config.yml # config/config.go # docker/config.yml # main.go Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Contributor
Author
Member
|
@copilot plz check the indent in code. it is important for read. thx |
Agent-Logs-Url: https://github.com/keyscome/pulse/sessions/108c330e-5f23-451a-9057-eb6b761c4c95 Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Contributor
Author
alanthssss
approved these changes
Mar 31, 2026
Comment on lines
+15
to
+17
| Addresses []string `yaml:"addresses"` | ||
| Username string `yaml:"username"` | ||
| Password string `yaml:"password"` |
Member
There was a problem hiding this comment.
why the indent is disapperd? we know it is not important in golang, but which should is good for read.
@copilot
Comment on lines
+22
to
+24
| Addresses []string `yaml:"addresses"` | ||
| Username string `yaml:"username"` | ||
| Password string `yaml:"password"` |
Comment on lines
+29
to
+32
| Username string `yaml:"username"` | ||
| Password string `yaml:"password"` | ||
| UseSSL bool `yaml:"use_ssl"` | ||
| Addresses []string `yaml:"addresses"` |
Comment on lines
+5
to
+14
| "bytes" | ||
| "fmt" | ||
| "os" | ||
| "text/template" | ||
| "time" | ||
|
|
||
| "github.com/keyscome/pulse/checker" | ||
| "github.com/keyscome/pulse/config" | ||
| "github.com/keyscome/pulse/kafka" | ||
| "github.com/keyscome/pulse/logger" |
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.
ElasticsearchConfigstruct (addresses, username, password) toconfig/config.goLoadConfigto return*AppConfigwith structured ES config + all other service configschecker/elasticsearch.gowith HTTP-basedCheckElasticsearch(Basic Auth support)main.goto use newAppConfigand call ES checker for elasticsearch serviceconfig.ymlanddocker/config.ymlto use new structured elasticsearch formatdocker/docker-compose.ymlto enable xpack security + set ELASTIC_PASSWORD for ElasticsearchREADME.mdto document the new elasticsearch config formatgofmtto all Go files (config/config.go,main.go,checker/zookeeper.go)