-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[TT-12710], deleting All Partitioned Policies a Key is linked to does not delete the Key #6473
base: master
Are you sure you want to change the base?
Conversation
…rror would be swallowed when having partitioned keys
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
API Changes --- prev.txt 2024-08-30 14:25:20.822441511 +0000
+++ current.txt 2024-08-30 14:25:17.770426502 +0000
@@ -5252,10 +5252,7 @@
type CertificatesConfig struct {
API []string `json:"apis"`
- // Upstream is used to specify the certificates to be used in mutual TLS connections to upstream services. These are set at gateway level as a map of domain -> certificate id or path.
- // For example if you want Tyk to use the certificate `ab23ef123` for requests to the `example.com` upstream and `/certs/default.pem` for all other upstreams then:
- // In `tyk.conf` you would configure `"security": {"certificates": {"upstream": {"*": "/certs/default.pem", "example.com": "ab23ef123"}}}`
- // And if using environment variables you would set this to `*:/certs/default.pem,example.com:ab23ef123`.
+ // Specify upstream mutual TLS certificates at a global level in the following format: `{ "<host>": "<cert>" }``
Upstream map[string]string `json:"upstream"`
// Certificates used for Control API Mutual TLS
ControlAPI []string `json:"control_api"` |
…rror would be swallowed when having partitioned keys
Quality Gate passedIssues Measures |
User description
Fixed case in which trying to apply a non-existing policy error would be swallowed when having partitioned keys.
Description
Related Issue
Motivation and Context
How This Has Been Tested
Screenshots (if appropriate)
Types of changes
Checklist
PR Type
Bug fix
Description
Apply
method of theService
to prevent silent failures when policies are missing.Changes walkthrough 📝
apply.go
Fix error handling for non-existing policies in Apply method
internal/policy/apply.go
policy was encountered.
found.