-
Notifications
You must be signed in to change notification settings - Fork 90
Add more generic support for var_groups #1120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mrodm
merged 7 commits into
elastic:main
from
Supplementing:add-var-group-support-everywhere
Mar 31, 2026
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
85435e9
add support for var groups at other levels
Supplementing 8ee00a9
added test package
Supplementing 696a450
fixed placeholder and changed ordering of removal per coderabbit comment
Supplementing 2365b69
Remove accidental .DS_Store files from repository
Supplementing c7cec12
added ds store to git ignore
Supplementing f2383de
Merge remote-tracking branch 'upstream' into add-var-group-support-ev…
Supplementing d6dd7f3
fixed changelog
Supplementing File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
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
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
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
Binary file not shown.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Apache License 2.0 |
9 changes: 9 additions & 0 deletions
9
test/packages/good_var_groups_input/agent/input/input.yml.hbs
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| data_stream: | ||
| dataset: {{data_stream.dataset}} | ||
| paths: | ||
| {{#each paths as |path i|}} | ||
| - {{path}} | ||
| {{/each}} | ||
| exclude_files: [".gz$"] | ||
| processors: | ||
| - add_locale: ~ |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # newer versions go on top | ||
| - version: "0.0.1" | ||
| changes: | ||
| - description: Initial draft of the package | ||
| type: enhancement | ||
| link: https://github.com/elastic/integrations/pull/1 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| # Good Var Groups Input Package | ||
|
|
||
| This is a test package demonstrating valid `var_groups` usage in an input package at the package root and policy template levels. |
12 changes: 12 additions & 0 deletions
12
test/packages/good_var_groups_input/fields/base-fields.yml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| - name: data_stream.type | ||
| type: constant_keyword | ||
| description: Data stream type. | ||
| - name: data_stream.dataset | ||
| type: constant_keyword | ||
| description: Data stream dataset. | ||
| - name: data_stream.namespace | ||
| type: constant_keyword | ||
| description: Data stream namespace. | ||
| - name: '@timestamp' | ||
| type: date | ||
| description: Event timestamp. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| format_version: 3.6.0 | ||
| name: good_var_groups_input | ||
| title: Good Var Groups Input Package | ||
| description: This package demonstrates valid var_groups usage in an input package. | ||
| version: 0.0.1 | ||
| type: input | ||
| source: | ||
| license: "Apache-2.0" | ||
| conditions: | ||
| kibana: | ||
| version: "^8.10.0" | ||
| elastic: | ||
| subscription: "basic" | ||
| icons: | ||
| - src: /img/sample-logo.svg | ||
| title: Sample logo | ||
| size: 32x32 | ||
| type: image/svg+xml | ||
| vars: | ||
| - name: access_key | ||
| type: text | ||
| title: Access Key | ||
| show_user: true | ||
| secret: false | ||
| - name: secret_key | ||
| type: password | ||
| title: Secret Key | ||
| show_user: true | ||
| secret: true | ||
| - name: iam_role | ||
| type: text | ||
| title: IAM Role ARN | ||
| show_user: true | ||
| var_groups: | ||
| - name: credential_type | ||
| title: Credential Type | ||
| selector_title: Preferred method | ||
| options: | ||
| - name: access_key | ||
| title: Access Key | ||
| vars: | ||
| - access_key | ||
| - secret_key | ||
| - name: iam_role | ||
| title: IAM Role | ||
| vars: | ||
| - iam_role | ||
| policy_templates: | ||
| - name: logs | ||
| type: logs | ||
| title: Logs | ||
| description: Collect logs. | ||
| input: logfile | ||
| template_path: input.yml.hbs | ||
| vars: | ||
| - name: username | ||
| type: text | ||
| title: Username | ||
| show_user: true | ||
| - name: password | ||
| type: password | ||
| title: Password | ||
| show_user: true | ||
| secret: true | ||
| - name: token | ||
| type: password | ||
| title: API Token | ||
| show_user: true | ||
| secret: true | ||
| var_groups: | ||
| - name: auth_method | ||
| title: Authentication Method | ||
| selector_title: Authentication method | ||
| options: | ||
| - name: basic | ||
| title: Basic Auth | ||
| vars: | ||
| - username | ||
| - password | ||
| - name: token | ||
| title: Token Auth | ||
| vars: | ||
| - token | ||
| owner: | ||
| github: elastic/ecosystem | ||
| type: elastic |
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.
Uh oh!
There was an error while loading. Please reload this page.