Add middlewares support to pipeline HTTP trigger config#185
Merged
Conversation
…pper Co-authored-by: intel352 <77607+intel352@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for middlewares in pipeline HTTP triggers
Add middlewares support to pipeline HTTP trigger config
Feb 27, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enables pipeline HTTP triggers to apply the same per-route middleware chain available to explicit workflows.http.routes, by forwarding the middlewares field through the pipeline trigger config wrapper.
Changes:
- Forward
middlewaresfrom flat pipeline HTTP trigger config into the generated route config. - Add unit tests validating
middlewaresforwarding and omission behavior for the wrapper.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
plugins/http/plugin.go |
Extends the HTTP pipeline trigger config wrapper to pass through middlewares into the generated route. |
plugins/http/plugin_test.go |
Adds coverage ensuring middlewares is forwarded when provided and omitted when absent. |
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.
Pipeline HTTP triggers only forwarded
pathandmethodto route registration, making it impossible to apply middleware (auth, rate-limit, etc.) to pipeline-triggered routes without reimplementing auth as custom pipeline steps.Changes
plugins/http/plugin.go: Forwardmiddlewaresfield inPipelineTriggerConfigWrappersalongside existingpathandmethodpassthroughsplugins/http/plugin_test.go: AddTestPipelineTriggerConfigWrapperscovering forwarding and omission casesPipeline triggers can now reference middleware modules identically to explicit
workflows.http.routes:💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.