Skip to content

Commit

Permalink
[Fleet] Fix secrets with dot.separated variable names (#173115)
Browse files Browse the repository at this point in the history
## Summary

Closes #173048

Move away from dot-separated secret paths in favor of array-based paths
to fix the above bug around dot-separated variable names.

## To test

Create an integration policy for the Universal Profiling Agent on
v8.12.0 and observe that no errors occur during policy creation.

---------

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit f861857)
  • Loading branch information
kpollich committed Dec 12, 2023
1 parent 7c04451 commit c265f0b
Show file tree
Hide file tree
Showing 3 changed files with 395 additions and 55 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/common/types/models/secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface VarSecretReference {
isSecretRef: true;
}
export interface SecretPath {
path: string;
path: string[];
value: PackagePolicyConfigRecordEntry;
}
export interface OutputSecretPath {
Expand Down
Loading

0 comments on commit c265f0b

Please sign in to comment.