feat(fleet): add support for url variable type#231062
Merged
andrewkroh merged 2 commits intoelastic:mainfrom Aug 19, 2025
Merged
feat(fleet): add support for url variable type#231062andrewkroh merged 2 commits intoelastic:mainfrom
andrewkroh merged 2 commits intoelastic:mainfrom
Conversation
Adds a new 'url' variable type to package policies, allowing for specific URL input and validation. This implements a feature that was added to package-spec 1.3.0 (Nov 16, 2021). This change introduces validation for the URL format using the standard URL constructor and adds an optional 'url_allowed_schemes' property to restrict which URL schemes are permissible. Relates: elastic/package-spec#241 Relates: elastic#116914
Contributor
|
Pinging @elastic/fleet (Team:Fleet) |
Contributor
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Page load bundle
History
|
qn895
pushed a commit
to qn895/kibana
that referenced
this pull request
Aug 26, 2025
Adds a new 'url' variable type to package policies, allowing for specific URL input and validation. This implements a feature that was added to package-spec 1.3.0 (Nov 16, 2021). This change introduces validation for the URL format using the standard URL constructor and adds an optional 'url_allowed_schemes' property to restrict which URL schemes are permissible. Relates: elastic/package-spec#241 Relates: elastic#116914
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
Adds a new 'url' variable type to package policies, allowing for specific URL input and validation. This implements a feature that was added to package-spec 1.3.0 (Nov 16, 2021).
This change introduces validation for the URL format using the standard URL constructor and adds an optional 'url_allowed_schemes' property to restrict which URL schemes are permissible.
Relates: elastic/package-spec#241
Relates: #116914
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breakinglabel should be applied in these situations.release_note:*label is applied per the guidelinesbackport:*labels.Screenshots
Release note
Adds support for a new url type variable in Fleet packages which provides better input validation of URLs in configurations.