Skip to content

Add dp-validator wasm-wasi based validation#1381

Merged
Frostman merged 10 commits intomasterfrom
dev/frostman/gw-valid
Apr 14, 2026
Merged

Add dp-validator wasm-wasi based validation#1381
Frostman merged 10 commits intomasterfrom
dev/frostman/gw-valid

Conversation

@Frostman
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings March 26, 2026 17:06
@Frostman Frostman requested review from a team as code owners March 26, 2026 17:06
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an optional “dataplane validator” that is downloaded from an OCI registry and intended to be executed as a WASM/WASI module during Gateway admission validation.

Changes:

  • Injects a GatewayValidator into the Gateway webhook and runs it during create/update validation.
  • Introduces GatewayValidator that downloads validator.wasm via ORAS and compiles it with wazero.
  • Refactors Gateway reconciler logic to build a GatewayAgent via a new helper and adds retry signaling.

Reviewed changes

Copilot reviewed 8 out of 366 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
pkg/ctrl/gateway_wh.go Wires a GatewayValidator into Gateway admission create/update flows.
pkg/ctrl/gateway_valid.go New WASM validator loader using ORAS + wazero runtime/module compilation.
pkg/ctrl/gateway_ctrl.go Refactors GatewayAgent building into BuildGatewayAgent with retry behavior.
cmd/main.go Initializes GatewayValidator, passes it to webhook, switches to ctx-driven lifecycle.
api/meta/types.go Adds DataplaneValidatorRef config field.
config/manager/manager.yaml Mounts a docker-config secret for ORAS credential resolution.
go.mod Adds wazero dependency for WASM runtime.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/ctrl/gateway_wh.go
Comment thread pkg/ctrl/gateway_wh.go
Comment thread pkg/ctrl/gateway_valid.go
Comment thread pkg/ctrl/gateway_valid.go
Comment thread pkg/ctrl/gateway_valid.go Outdated
Comment thread cmd/main.go
Comment thread pkg/ctrl/gateway_ctrl.go
Comment thread pkg/ctrl/gateway_ctrl.go
@Frostman Frostman marked this pull request as draft March 26, 2026 17:09
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-b67d6f500 🚀

@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-e1afa5094 🚀

@Frostman Frostman force-pushed the dev/frostman/gw-valid branch from e1afa50 to 1d83a78 Compare April 9, 2026 19:11
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

🚀 Temp artifacts published: v0-1d83a784b 🚀

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

🚀 Temp artifacts published: v0-27de1ba1a 🚀

@Frostman Frostman requested a review from Copilot April 9, 2026 21:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 369 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/ctrl/gateway_valid.go Outdated
Comment thread pkg/ctrl/gateway_ctrl.go
Comment thread cmd/main.go
Comment thread pkg/ctrl/gateway_valid.go
Comment thread cmd/main.go
Comment thread pkg/ctrl/gatewaypeering_wh.go Outdated
Comment thread pkg/ctrl/gateway_ctrl.go Outdated
Comment thread .github/workflows/ci.yaml
@Frostman Frostman force-pushed the dev/frostman/gw-valid branch from 27de1ba to b0e88b5 Compare April 9, 2026 23:06
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

🚀 Temp artifacts published: v0-b0e88b5d6 🚀

@Frostman Frostman added the ci:+release Enable VLAB release tests label Apr 9, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 9, 2026

🚀 Temp artifacts published: v0-b0e88b5d6 🚀

@Frostman Frostman force-pushed the dev/frostman/gw-valid branch from b0e88b5 to 4a96f5b Compare April 13, 2026 15:50
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-4a96f5b97 🚀

@Frostman Frostman requested a review from Copilot April 13, 2026 16:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 369 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/ctrl/gateway_valid.go Outdated
Comment thread pkg/ctrl/gateway_valid.go
Comment thread pkg/ctrl/gateway_valid.go
Comment thread pkg/ctrl/gateway_ctrl.go
@Frostman Frostman force-pushed the dev/frostman/gw-valid branch from 4a96f5b to 6a5688d Compare April 13, 2026 21:20
@Frostman Frostman requested a review from Copilot April 13, 2026 21:27
@Frostman Frostman marked this pull request as ready for review April 13, 2026 21:27
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 369 changed files in this pull request and generated 7 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/ctrl/gateway_valid.go
Comment thread pkg/ctrl/gateway_valid.go
Comment thread pkg/ctrl/gateway_valid.go
Comment thread pkg/ctrl/gateway_ctrl.go
Comment thread pkg/ctrl/gateway_ctrl.go
Comment thread config/manager/manager.yaml
Comment thread config/manager/manager.yaml
@Frostman Frostman force-pushed the dev/frostman/gw-valid branch from db2bcfd to b14b7de Compare April 13, 2026 21:56
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-b14b7dee6 🚀

Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
Signed-off-by: Sergei Lukianov <me@slukjanov.name>
@Frostman Frostman force-pushed the dev/frostman/gw-valid branch from b14b7de to d417ce7 Compare April 14, 2026 15:01
@github-actions
Copy link
Copy Markdown

🚀 Temp artifacts published: v0-d417ce769 🚀

@Frostman Frostman merged commit 87a60c2 into master Apr 14, 2026
17 checks passed
@Frostman Frostman deleted the dev/frostman/gw-valid branch April 14, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:+release Enable VLAB release tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants