Skip to content

Conversation

@taylor-swanson
Copy link
Contributor

@taylor-swanson taylor-swanson commented Jan 16, 2026

Overview

This PR introduces a new subcommand for elastic-package called modify. Its role is to provide a facility for making arbitrary modifications to a package. These changes can include things like updating the ECS version, updating the package spec version, generating tags for ingest pipeline processors, applying best practices, and so on. Changes that would be made by the modify command are implemented by "modifiers", which would be chosen when running the modify command. This PR includes one modifier for generating ingest pipeline processor tags (pipeline-tag).

Proposal doc: #3158

What's New

New Subcommand

A new subcommand modify that provides a facility for making arbitrary changes to a package.

elastic-package modify

Pipeline Tag Modifier

A modifier which generates tags for ingest pipeline processors lacking a tag.

elastic-package modify -m pipeline-tag

Supporting Packages

  • internal/fleetpkg: Provides a package for types for fleet integrations, along with functions for loading integrations from the filesystem. Certain types (those directly backed by a yaml file) include a yamledit document for obtaining and modifying the yaml AST, which can be written back out to the file to make changes.
  • internal/yamledit: Provides a package for reading, modifying, and writing YAML ASTs.

Related

@taylor-swanson taylor-swanson self-assigned this Jan 16, 2026
@taylor-swanson taylor-swanson requested a review from a team as a code owner January 16, 2026 14:50
@taylor-swanson taylor-swanson added the enhancement New feature or request label Jan 16, 2026
@elasticmachine
Copy link
Collaborator

⏳ Build in-progress, with failures

Failed CI Steps

cc @taylor-swanson

@taylor-swanson taylor-swanson marked this pull request as draft January 16, 2026 14:56
- Add new modify command to provide a facility for making arbitrary changes to packages
- Add pipline-tag modifier to generate missing ingest pipeline processor tags
- Add yamledit package to provide functions for modifying yaml documents
- Add fleetpkg package to provide types and functions for fleet package types and to
support modifying package yaml files via yamledit.
@taylor-swanson taylor-swanson marked this pull request as ready for review January 16, 2026 16:06
README.md Outdated

_Context: package_

Use this command to apply modifications for a package.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we have some examples of what we can achieve with this command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[proposal] Add sub-command to make arbitrary modifications to package

3 participants