Connect MinIO and Kibana with authenticated credentials#11
Conversation
Agent-Logs-Url: https://github.com/keyscome/pulse/sessions/9642e33b-4fd3-40da-a28d-b6e7e5fa21cf Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
|
@copilot solve the merge conflicts |
…tication Agent-Logs-Url: https://github.com/keyscome/pulse/sessions/7bca5d9c-f4f4-4af4-b484-e7879cbb26de Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Merge conflicts resolved in commit |
|
@copilot solve the merge conflicts |
… auth Agent-Logs-Url: https://github.com/keyscome/pulse/sessions/890e644f-8517-4f43-8f87-bf634fd0bcab Co-authored-by: alanthssss <32271197+alanthssss@users.noreply.github.com>
Merge conflicts resolved in commit |
MinIO was checked via a plain TCP dial with no credential verification. This adds proper authenticated connectivity checks for both MinIO and Kibana using their respective SDKs/APIs.
Config schema change
config.ymlnow has dedicated top-level sections for authenticated services alongside the genericservices:block for TCP checks:Key changes
config/config.go— AddedMinioConfigstruct (username,password,use_ssl,addresses),KibanaConfigstruct (addresses,username,password), andAppConfigwrapper replacing the flatNetworkConfigas the top-level type.checker/minio.go— New checker that callsListBucketsviaminio-go/v7, verifying both reachability and credential validity within the configured timeout.checker/checker.go— AddedCheckKibanaConnectionthat performs an HTTP GET to/api/statuswith basic auth, verifying both reachability and credential validity.main.go— TCP service loop now iteratescfg.Services; ZooKeeper uses theruok/imokfour-character command checker; MinIO and Kibana each run separate authenticated loops. ExtractedrecordResulthelper to eliminate duplicated result-recording logic.go.mod— Addedgithub.com/minio/minio-go/v7 v7.0.80(minimum Go 1.22, consistent with existing module).