-
Notifications
You must be signed in to change notification settings - Fork 631
add global disable option for JWT #12945
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
147092d
add global disable option for JWT
puertomontt 3576263
fix test
puertomontt 6d0dbcd
Merge branch 'main' of github.com:kgateway-dev/kgateway into jwt-disable
puertomontt 663407f
describe func
puertomontt 0421f35
update jwt translator tests
puertomontt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
97 changes: 97 additions & 0 deletions
97
internal/kgateway/translator/gateway/testutils/inputs/jwt/gateway-disable.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| apiVersion: gateway.networking.k8s.io/v1 | ||
| kind: Gateway | ||
| metadata: | ||
| name: example-gateway | ||
| spec: | ||
| gatewayClassName: example-gateway-class | ||
| listeners: | ||
| - name: http | ||
| protocol: HTTP | ||
| port: 80 | ||
| --- | ||
| apiVersion: gateway.networking.k8s.io/v1 | ||
| kind: HTTPRoute | ||
| metadata: | ||
| name: example-route | ||
| spec: | ||
| parentRefs: | ||
| - name: example-gateway | ||
| hostnames: | ||
| - "example.com" | ||
| rules: | ||
| - backendRefs: | ||
| - name: example-svc | ||
| port: 80 | ||
| matches: | ||
| - path: | ||
| type: PathPrefix | ||
| value: /foo | ||
| - backendRefs: | ||
| - name: example-svc | ||
| port: 80 | ||
| matches: | ||
| - path: | ||
| type: PathPrefix | ||
| value: /bar | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: example-svc | ||
| spec: | ||
| selector: | ||
| test: test | ||
| ports: | ||
| - protocol: TCP | ||
| port: 80 | ||
| targetPort: test | ||
| --- | ||
| apiVersion: gateway.kgateway.dev/v1alpha1 | ||
| kind: TrafficPolicy | ||
| metadata: | ||
| name: gateway-test | ||
| spec: | ||
| targetRefs: | ||
| - kind: Gateway | ||
| group: gateway.networking.k8s.io | ||
| name: example-gateway | ||
| jwt: | ||
| extensionRef: | ||
| name: jwt-ext-3 | ||
| --- | ||
| apiVersion: gateway.kgateway.dev/v1alpha1 | ||
| kind: TrafficPolicy | ||
| metadata: | ||
| name: route-test | ||
| spec: | ||
| targetRefs: | ||
| - kind: HTTPRoute | ||
| group: gateway.networking.k8s.io | ||
| name: example-route | ||
| jwt: | ||
| disable: {} | ||
| --- | ||
| apiVersion: gateway.kgateway.dev/v1alpha1 | ||
| kind: GatewayExtension | ||
| metadata: | ||
| name: jwt-ext-3 | ||
| spec: | ||
| type: JWTProviders | ||
| jwtProviders: | ||
| - name: gateway-example | ||
| claimsToHeaders: | ||
| - name: gateway | ||
| header: x-gateway | ||
| issuer: https://gateway.example.com | ||
| jwks: | ||
| local: | ||
| inline: | | ||
| -----BEGIN PUBLIC KEY----- | ||
| MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAruK9KacQjDePRyfG7oPI | ||
| aqAIyCeOCBIGB2nBbDLGp1Szdm7rsWcrzGf7Avpa/ijLV9huoNvpdflld4B+SaT7 | ||
| m3EDDMDUyA4LayJC5JBI10Qfu3Qn8BEpcdN2uRiycXOzgsoIXneXp9hENlS5Vsr3 | ||
| ur5BaBCc+BZZRRaXDTLy6KyD1Pyd6XRsxyZXt/SYOIww0NSt5u0CTyZUGJhQungJ | ||
| pI8Hhrzdf87mLZGZd16dOGObE5LqFwk2prN3D0+owLsA25WJOPZXizxpTB4tPvJu | ||
| YGATajDpzrHf+WXgOgvwyxaHJSN/fE+eFuRT3ooDaAuytsfYotsn4z/ajdEPSwXY | ||
| CwIDAQAB | ||
| -----END PUBLIC KEY----- |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.