[UII] Support integrations having secrets with multiple values#216918
Merged
jen-huang merged 9 commits intoelastic:mainfrom Apr 3, 2025
Merged
[UII] Support integrations having secrets with multiple values#216918jen-huang merged 9 commits intoelastic:mainfrom
jen-huang merged 9 commits intoelastic:mainfrom
Conversation
Contributor
|
Pinging @elastic/fleet (Team:Fleet) |
Contributor
💚 Build Succeeded
Metrics [docs]Page load bundle
cc @jen-huang |
nchaulet
approved these changes
Apr 3, 2025
Member
nchaulet
left a comment
There was a problem hiding this comment.
Tested locally and it generated a correct fleet policy and associated secrets. LGTM 🚀
|
Hi @jen-huang Do I read this right that this will not be backported to 8.19? We will have enterprise customers on 8.X for many many months, any chance it can get added to the backport? |
7 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #205102. This PR makes Fleet support having multiple values for secrets, i.e. integrations with variables such as:
When a package policy has a multi-value secret, the variable containing references to secrets will be saved with
ids: string[]:There is no change for secrets with single values, the reference will still be saved with
id: string. There is also no change to thesecret_referencesblock.The policy editor will display the multi-value secrets like this when creating:

And when editing/replacing:

Testing
connection_stringto be multi-value secret and updates associated agent handlebars templatesChecklist
release_note:*label is applied per the guidelines