-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Metricbeat][Aerospike Module] Add support for TLS (#38126)
* Add TLS Support for Metricbeat module aerospike * Module aerospike: add support for basic auth * Move the initialization of the clientpolicy from the metricset to the module * Aerospike: add test to check the initialization of ssl and user/password in the clientpolicy * Aerospike: Add support for cluster_name setting * Aerospike: Add test for ClusterName * Aerospike module: add commented username, password, cluster_name and TLS in the aerospike.yml.disabled config * Aerospike Module: Fix unit test * Fix test to avoid using hard-coded value * Adjust configuration of aerospike to show username/password and TLS settings * Executed goimports -w -local github.com/elastic metricbeat/module/aerospike * Improve Test error messages to provide more context * Drop support for Basic Auth that would require an upgrade of the dependencies * Fix Documentation by adding SSL reference - Add to config and config.reference ssl examples - Adjust the fields.yml to contain reference to ssl * Update metricbeat/module/aerospike/aerospike_test.go Co-authored-by: subham sarkar <[email protected]> * Address reviewer's request: - [reference-config] add empty line after hosts list - [test] remove empty line after function header - [test] use generic pointer instead of custom one * Run mage config * mage check * Replace "Optional SSL/TLS. By default is off." with disabled by default * Convert ClusterName to a simple string instead of pointer to a string * Update x-pack/metricbeat.reference.yml --------- Co-authored-by: subham sarkar <[email protected]> Co-authored-by: subham sarkar <[email protected]>
- Loading branch information
1 parent
ca4adce
commit 5b67a54
Showing
11 changed files
with
200 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
description: > | ||
Aerospike module | ||
release: ga | ||
settings: ["ssl"] | ||
fields: | ||
- name: aerospike | ||
type: group | ||
|
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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