Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Config Service] Use stripUnknownKeys when checking `enabl…
…ed` flags (#201579) (#202531) # Backport This will backport the following commits from `main` to `8.x`: - [[Config Service] Use stripUnknownKeys when checking `enabled` flags (#201579)](#201579) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alejandro Fernández Haro","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-12-02T16:30:09Z","message":"[Config Service] Use stripUnknownKeys when checking `enabled` flags (#201579)\n\n## Summary\n\nResolves #201442.\n\nThe underlying issue is that `isEnabledAtPath` validates the entire\nconfig object when it only cares about `.enabled`. This PR performs that\ncheck using `stripUnknownKeys: true`, as we'll perform the actual\nvalidation later on.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"3e1d62ebc4530a1f9ebc05d9cbff858aa46ce438","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","Feature:Configuration","v9.0.0","backport:prev-minor"],"title":"[Config Service] Use stripUnknownKeys when checking `enabled` flags","number":201579,"url":"https://github.com/elastic/kibana/pull/201579","mergeCommit":{"message":"[Config Service] Use stripUnknownKeys when checking `enabled` flags (#201579)\n\n## Summary\n\nResolves #201442.\n\nThe underlying issue is that `isEnabledAtPath` validates the entire\nconfig object when it only cares about `.enabled`. This PR performs that\ncheck using `stripUnknownKeys: true`, as we'll perform the actual\nvalidation later on.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"3e1d62ebc4530a1f9ebc05d9cbff858aa46ce438"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201579","number":201579,"mergeCommit":{"message":"[Config Service] Use stripUnknownKeys when checking `enabled` flags (#201579)\n\n## Summary\n\nResolves #201442.\n\nThe underlying issue is that `isEnabledAtPath` validates the entire\nconfig object when it only cares about `.enabled`. This PR performs that\ncheck using `stripUnknownKeys: true`, as we'll perform the actual\nvalidation later on.\n\n\n### Checklist\n\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios","sha":"3e1d62ebc4530a1f9ebc05d9cbff858aa46ce438"}}]}] BACKPORT--> Co-authored-by: Alejandro Fernández Haro <[email protected]>
- Loading branch information