-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for TLS Functionality with Gateway API via Workload Identity #306
base: main
Are you sure you want to change the base?
Conversation
/ok-to-test sha=03d8910 |
/ok-to-test sha=0474374 |
/ok-to-test sha=908e6c3 |
|
||
if listenerIsKvEnabled(listener) { | ||
var clientId string | ||
clientId, err = retrieveClientIdFromListener(ctx, g.client, req.Namespace, listener.TLS.Options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the client id should come from the SA.
We need some way of triggering a reconcile if the SA changes their client id too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done via sa indexer
} | ||
|
||
gateways := &gatewayv1.GatewayList{} | ||
err := mgr.GetClient().List(context.TODO(), gateways, client.MatchingFields{serviceAccountIndexName: sa.Name}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to consider namespaces
|
||
saSet := map[string]struct{}{} | ||
|
||
for _, listener := range gateway.Spec.Listeners { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to consider namespaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we consider namespaces when requeuing requests for Gateways - see line 60.
All we can do within this function is pull names from the Gateway resources - verification via the client naturally happens when we're grabbing the actual gateways tied to each serviceaccount
/ok-to-test sha=2c034aa |
Description
This PR adds support for a managed TLS experience with the Gateway API via workload identity.
Fixes # (issue)
Feature # (details)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Unit tests. e2e tests will be added after DNS functionality has been merged.
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. Is it a breaking change which will impact consuming tool(s)?
Checklist: