Skip to content

feature/create-policy-for-pqc - #18

Merged
haahaakon merged 30 commits into
mainfrom
feature/create-policy-for-pqc
Jun 10, 2026
Merged

feature/create-policy-for-pqc#18
haahaakon merged 30 commits into
mainfrom
feature/create-policy-for-pqc

Conversation

@haahaakon

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds automatic reconciliation of Envoy Gateway ClientTrafficPolicy resources to enable PQC/hybrid TLS ECDH curve preference for operator-managed Gateway resources, including RBAC and Helm wiring.

Changes:

  • Introduces a ClientTrafficPolicy manager that creates/updates or deletes CTPs based on an env var toggle.
  • Ensures CTP reconciliation is invoked when Gateways are created/updated and attempts cleanup when Gateways are deleted.
  • Adds RBAC permissions and Helm chart values/templates to support the new CRD and toggle.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
internal/controller/listener_manager.go Deletes associated CTP when a Gateway is removed due to no remaining listeners.
internal/controller/httproute_controller.go Attempts CTP cleanup when an old Gateway becomes unused.
internal/controller/gateway_manager.go Calls ensureClientTrafficPolicy during Gateway create/update flows.
internal/controller/constants.go Adds env var and naming constants for CTP support.
internal/controller/clienttrafficpolicy_manager.go New reconciler logic for creating/updating/deleting ClientTrafficPolicy with PQC curves.
cmd/main.go Registers Envoy Gateway API types into the controller scheme (currently gated by env var).
config/rbac/role.yaml Adds ClusterRole rules for clienttrafficpolicies.
chart/gatewayapi-operator/values.yaml Adds Helm values to enable/disable PQC via CTP.
chart/gatewayapi-operator/templates/rbac/role.yaml Adds Helm RBAC rules for clienttrafficpolicies.
chart/gatewayapi-operator/templates/manager/manager.yaml Adds Helm env var plumbing for the PQC toggle (currently has a rendering logic issue).
go.mod Adds Envoy Gateway dependency and updates indirect deps.
go.sum Updates module checksums accordingly.

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

Comment thread cmd/main.go Outdated
Comment thread chart/gatewayapi-operator/templates/manager/manager.yaml Outdated
Comment thread internal/controller/clienttrafficpolicy_manager.go Outdated
Comment thread internal/controller/listener_manager.go Outdated
Comment thread internal/controller/httproute_controller.go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 2 comments.

Comment thread chart/gatewayapi-operator/templates/manager/manager.yaml Outdated
Comment thread chart/gatewayapi-operator/templates/manager/manager.yaml Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 4 comments.

Comment thread chart/gatewayapi-operator/templates/manager/manager.yaml Outdated
Comment thread internal/controller/clienttrafficpolicy_manager.go
Comment thread internal/controller/clienttrafficpolicy_manager.go
Comment thread internal/controller/httproute_controller.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 3 comments.

Comment thread internal/controller/clienttrafficpolicy_manager.go Outdated
Comment thread internal/controller/httproute_controller.go
Comment thread chart/gatewayapi-operator/templates/manager/manager.yaml Outdated
haahaakon and others added 3 commits June 8, 2026 13:40
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…nett/gatewayapi-operator into feature/create-policy-for-pqc

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 1 comment.

Comment thread internal/controller/clienttrafficpolicy_manager.go
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@haahaakon
haahaakon marked this pull request as ready for review June 8, 2026 11:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 2 comments.

Comment thread internal/controller/clienttrafficpolicy_manager.go
Comment thread internal/controller/httproute_controller.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 3 comments.

Comment thread internal/controller/gateway_manager.go
Comment thread chart/gatewayapi-operator/templates/manager/manager.yaml
Comment thread internal/controller/clienttrafficpolicy_manager.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 4 comments.

Comment thread internal/controller/listener_manager.go Outdated
Comment thread chart/gatewayapi-operator/templates/manager/manager.yaml
Comment thread chart/gatewayapi-operator/templates/manager/manager.yaml
Comment thread internal/controller/gateway_manager.go Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 2 comments.

Comment thread internal/controller/listener_manager.go Outdated
Comment thread internal/controller/clienttrafficpolicy_manager.go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 3 comments.

Comment thread internal/controller/clienttrafficpolicy_manager.go
Comment thread internal/controller/listener_manager.go
Comment thread internal/controller/gateway_manager.go

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 12 changed files in this pull request and generated 3 comments.

Comment thread internal/controller/clienttrafficpolicy_manager.go
Comment thread internal/controller/clienttrafficpolicy_manager.go
Comment thread internal/controller/clienttrafficpolicy_manager.go
@haahaakon
haahaakon merged commit 4158e13 into main Jun 10, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants