This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require ReferencePolicy for certificateRef in other namespace (#154)
* Require ReferencePolicy for certificateRef in other namespace * Modify getServiceID to use generic NamespacedName * Generalize checking of ReferencePolicies * Organize + update existing unit tests * Add test coverage for validation ReferencePolicy for listener * Add gatewayAllowedForSecretRef unit test coverage * Add changelog entry * Add docstring for referenceAllowed * Apply suggestions from code review Co-authored-by: Mike Morris <mikemorris@users.noreply.github.com> * Check subsequent ReferencePolicies if to.name doesn't match Co-authored-by: Mike Morris <mikemorris@users.noreply.github.com>
- Loading branch information
1 parent
03b4bc5
commit adc42cd
Showing
9 changed files
with
565 additions
and
295 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:breaking-change | ||
Gateway listener `certificateRefs` to secrets in a different namespace now require a [ReferencePolicy](https://gateway-api.sigs.k8s.io/v1alpha2/references/spec/#gateway.networking.k8s.io%2fv1alpha2.ReferencePolicy) | ||
``` |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
- name: CertificateResolution | ||
types: ["NotFound","Unsupported"] | ||
types: ["NotFound","NotPermitted","Unsupported"] | ||
- name: Bind | ||
types: ["RouteKind","ListenerNamespacePolicy","HostnameMismatch","RouteInvalid"] |
This file contains 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
Oops, something went wrong.