-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fleet] fixed bug in output secret diff logic (#172081)
## Summary Related to #104986 Found a bug in `diffOutputSecretPaths` where output secret was deleted if updating an output without change of service_token. Added unit tests to cover the logic. Steps to verify: - enable feature flags: `xpack.fleet.enableExperimental: ['remoteESOutput', 'outputSecretsStorage']` - create a remote es output with a service_token - check that the service_token is stored as secret in `.fleet-secrets` - update host in remote es output - verify that the secret is not deleted ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
- Loading branch information
1 parent
6bdc094
commit 2ff6a7c
Showing
3 changed files
with
193 additions
and
7 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