instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
zalando__skipper__2410
zalando/skipper
2,410
defect
274432bbb415bf5dd14c6defbec149171e1e24ab
2834760257e4e73abe08ea0a6881258440fd983f
feature: dropRequestCookie filter
feature: dropRequestCookie filter closes https://github.com/zalando/skipper/issues/2349
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 2e569446b9..91d55e74cc 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -1696,6 +1696,20 @@ oidcClaimsQuery("/:name%\"*One\"", "/path:groups.#[%\"*-Test-Users\"] groups.#[= As of now there is no negative/deny rule possibl...
4
2
1
[{"id": "G0", "claim": "The filter should also validate the cookie name with isCookieNameValid, as the Go stdlib code it mirrors does.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "If the filter can take more than one argument, a test with two argume...
null
zalando__skipper__2412
zalando/skipper
2,412
defect
e88336207452706b8fe92e3086a6b93b327dfbd5
acfed7a6670cb24ee381d4fd967ae10ce08a7967
Introduce lockedSource type to avoid concurrent use of rand.Source
+ Introduced lockedSource type to avoid concurrent use of rand.Source + Added test calling lockedSource concurrently + Added benchmark for loadbalancer + Removed some unused fields from {random,roundRobin,consistentHash} structs + Preallocate slices + Do not use weightedSums slice Updates https://github.com/zal...
diff --git a/loadbalancer/algorithm.go b/loadbalancer/algorithm.go index 4e49d5faf8..1b09be45a3 100644 --- a/loadbalancer/algorithm.go +++ b/loadbalancer/algorithm.go @@ -67,7 +67,7 @@ func fadeIn(now time.Time, duration time.Duration, exponent float64, detected ti return math.Pow(float64(rel)/float64(duration), expo...
8
4
1
[{"id": "G0", "claim": "lockedRand is a wrapper around rand.Source that only implements Intn and Float64, so it should be extended (or a lockedSource implemented) to provide all rand.Rand methods.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A...
null
zalando__skipper__2416
zalando/skipper
2,416
defect
e88336207452706b8fe92e3086a6b93b327dfbd5
a931882bb24593728cdf9acb2da3ca7efcbf46ef
routesrv: reuse skipper.Options
Reuse skipper.Options datastructure to avoid duplicate work of adding the same flags/options to both skipper and routesrv. Followup on https://github.com/zalando/skipper/pull/1873 - [x] requires https://github.com/zalando/skipper/pull/2419 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
diff --git a/cmd/routesrv/main.go b/cmd/routesrv/main.go index ffe9f7e948..b9d651a914 100644 --- a/cmd/routesrv/main.go +++ b/cmd/routesrv/main.go @@ -10,7 +10,7 @@ func main() { cfg := config.NewConfig() cfg.Parse() log.SetLevel(cfg.ApplicationLogLevel) - err := routesrv.Run(cfg.ToRouteSrvOptions()) + err := rou...
2
1
0
[{"id": "G0", "claim": "The new remote_redis_test.go should contain only this test case; the other test cases could be left in the skipper package.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It may be better to pass the options reference to routesrv...
null
zalando__skipper__2432
zalando/skipper
2,432
defect
37874ad57d5f27adf549035fabe056c5b6928f2d
2e0ee3577135ecc58996e03782e99cc26d92be5c
filters/diag: add histogram latency filters
Add filters that add latency based on the configured histogram. See https://stats.stackexchange.com/questions/464006/generating-samples-from-a-histogram Example: ``` $ bin/skipper -inline-routes='* -> histogramRequestLatency("5ms", 20, "10ms", 30, "15ms", 50, "20ms") -> status(204) -> <shunt>' -access-log-disabled...
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index cdc1847c67..eab26fe14a 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -639,6 +639,26 @@ Example: * -> normalRequestLatency("10ms", "5ms") -> "https://www.example.org"; ``` +### histogramRequestLatency + +The histogra...
2
2
1
[{"id": "G0", "claim": "CreateFilter should return an error when the bucket weights sum to zero instead of silently going around it and letting the filter become a noop.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The histogram's minimum bucket b...
null
zalando__skipper__2454
zalando/skipper
2,454
defect
417566354ca2b3af0da4fbcd2b0a4b57fc1bf497
0512df6debcff78c4ee78ede1fb4fd25e030e97f
auth: log if http status code is 5xx
fixes https://github.com/zalando/skipper/issues/2140
diff --git a/filters/auth/authclient.go b/filters/auth/authclient.go index 52a442cb82..3b2d7b0aa9 100644 --- a/filters/auth/authclient.go +++ b/filters/auth/authclient.go @@ -91,6 +91,12 @@ func (ac *authClient) getTokenintrospect(token string, ctx filters.FilterContext } defer rsp.Body.Close() + // check 5xx sta...
5
5
1
[{"id": "G0", "claim": "The standalone 5xx check should be moved inside the existing `if rsp.StatusCode != 200` block, so there is one generic non-200 check that then returns a specific error for 5xx.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
zalando__skipper__2460
zalando/skipper
2,460
defect
8704ae6e3c6d7bd2891c8d1bbe3f9cf66a691c6f
24e762b2c17c4d1c94da1cd24dbcc205557028d4
Fixed the searchRing function for consistentHash
This fix is needed to comply the requirements of input for binary search https://pkg.go.dev/sort#Search > Search uses binary search to find and return the smallest index i in [0, n) at which f(i) is true, assuming that on the range [0, n), f(i) == true implies f(i+1) == true. That is, Search requires that f is false f...
diff --git a/loadbalancer/algorithm.go b/loadbalancer/algorithm.go index cb4c4df0d1..7ba8464093 100644 --- a/loadbalancer/algorithm.go +++ b/loadbalancer/algorithm.go @@ -241,10 +241,13 @@ func hash(s string) uint64 { // Returns index in hash ring with the closest hash to key's hash func (ch *consistentHash) searchRi...
3
2
1
[{"id": "G0", "claim": "The fade-in pair graphs are not obvious to interpret and should be made easier to eyeball, e.g. by color-coding the datapoints according to endpoint.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "A specific regression ...
null
zalando__skipper__2510
zalando/skipper
2,510
defect
91851eaf1a261221ffca5dec584ecd19557ef592
32164ac16b66029562a42d3e2fd62f01d2730c4c
🚑️ OIDC: use Azure-AD unique identifier
We are facing a security vulnerability by the use of `DisplayName` as the unique identifier in Azure-AD. Since this field can be duplicated it can be exploited to gain privileges. https://morgansimonsen.com/2016/06/28/azure-ad-allows-duplicate-group-names/ Switching to the guaranteed unique identifier `onPremi...
diff --git a/filters/auth/oidc.go b/filters/auth/oidc.go index 6a4cb3ab3f..c3b87f174e 100644 --- a/filters/auth/oidc.go +++ b/filters/auth/oidc.go @@ -65,8 +65,8 @@ type claimSource struct { type azureGraphGroups struct { OdataNextLink string `json:"@odata.nextLink,omitempty"` Value []struct { - DisplayNa...
2
1
1
[{"id": "G0", "claim": "onPremisesSamAccountName can be empty, and the behaviour when it is empty should be ensured by a test.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Relying on the non-standard onPremisesSamAccountName attribute means correc...
null
zalando__skipper__2517
zalando/skipper
2,517
defect
eb1137d98af25b1e215f8b9bd08afbefa659c6e4
7d5daf77225f2303fa30e126e21053ac719b5e6b
Add capability to set response headers in OPA filter
This PR adds the capability to use `response_headers_to_add` along with the Open Policy Agent based Skipper filter [opaauthorizerequest](https://opensource.zalando.com/skipper/reference/filters/#opaauthorizerequest), as described [here in Envoy external authorization filter](https://www.openpolicyagent.org/docs/latest/...
diff --git a/filters/openpolicyagent/common.go b/filters/openpolicyagent/common.go new file mode 100644 index 0000000000..5955c844bf --- /dev/null +++ b/filters/openpolicyagent/common.go @@ -0,0 +1,6 @@ +package openpolicyagent + +const ( + // Headers to be added in the response sent back to the client. + OpenPolicyAge...
5
5
0
[{"id": "G0", "claim": "The response-headers key constant should be put into openpolicyagent.go instead of a new common.go file, which the project does not want to have.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use fmt.Errorf instead of er...
null
zalando__skipper__2535
zalando/skipper
2,535
defect
533e310d0f195566b2500dec75f4ddb02a85f191
94c3100d9f5cebe7c233508c0d4809d98564bad5
Introduce endpointregistry component
This component is needed to create an easy way for loadbalancer, fadein, etc. to find out required information about endpoints to increase readability of those parts and enable us to provide new features there, for example, passive health checks for endpoints.
diff --git a/endpointregistry/epregistry.go b/endpointregistry/epregistry.go new file mode 100644 index 0000000000..e16fec5b3b --- /dev/null +++ b/endpointregistry/epregistry.go @@ -0,0 +1,62 @@ +package endpointregistry + +import ( + "sync" + "time" +) + +type entry struct { + detected time.Time + inflightRequ...
8
7
2
[{"id": "G0", "claim": "The registry should be a type with methods instead of package-level global variables so it can be thrown away or instantiated several times.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SetDetectedTime overwrites the detected ti...
null
zalando__skipper__2594
zalando/skipper
2,594
defect
4b2d6eb2161f726f1b6648de45b5e354c4896056
8d475588c83db1839ccc579149afdde8a15e3182
Do not use internal endpointregistry.lastSeen field in tests
Do not use internal endpointregistry.lastSeen field in tests
diff --git a/routing/endpointregistry.go b/routing/endpointregistry.go index c8f929d07a..f7840e034d 100644 --- a/routing/endpointregistry.go +++ b/routing/endpointregistry.go @@ -33,6 +33,7 @@ func (e *entry) InflightRequests() int64 { type EndpointRegistry struct { lastSeen map[string]time.Time + now func() ...
4
4
0
[{"id": "G0", "claim": "The test's placeholder endpoint names should be replaced with realistic hosts named endpoint1.test:80 and endpoint2.test:80, since the old entries are not actually removed yet.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
zalando__skipper__2648
zalando/skipper
2,648
defect
faa363cee1ceaa348dc321628dfc12d83985441c
6369d6e2e9982959a0e29d635dbeb56d63ac81ab
Added LBEndpoint field in routing.LBContext struct
The routing.Route field of routing.LBContext struct will be eventually removed because loadbalancer in general does not require the full information about route, only about endpoints to balance load between. You can think about this PR as preliminary one for the https://github.com/zalando/skipper/pull/2634
diff --git a/loadbalancer/algorithm.go b/loadbalancer/algorithm.go index 6972239e18..f11b9c4c25 100644 --- a/loadbalancer/algorithm.go +++ b/loadbalancer/algorithm.go @@ -73,7 +73,7 @@ func fadeIn(now time.Time, duration time.Duration, exponent float64, detected ti func shiftWeighted(rnd *rand.Rand, ctx *routing.LBCon...
2
2
0
[{"id": "G0", "claim": "The LBEndpoints assignment should happen either at the place where the LBContext is created or, preferably, the context creation itself should be moved into setRequestURLForLoadBalancedBackend, rather than the function mutating the caller's lbctx.", "category": "design", "verdict": "supported", ...
null
zalando__skipper__2691
zalando/skipper
2,691
defect
1f45d7c6dc7b8f3c5eeffc36bd3994517c274329
7b9e20b1d3b75140164bca9b924287b30ee43213
validator: prevent multiple filters/predicates per yaml item
Related to https://github.com/zalando/skipper/issues/1618.
diff --git a/cmd/webhook/admission/admission_test.go b/cmd/webhook/admission/admission_test.go index d3869de555..9e82eab424 100644 --- a/cmd/webhook/admission/admission_test.go +++ b/cmd/webhook/admission/admission_test.go @@ -122,6 +122,16 @@ func TestRouteGroupAdmitter(t *testing.T) { inputFile: "rg-with-invalid-...
5
5
1
[{"id": "G0", "claim": "Check that exactly one filter is present and word the error \"single filter expected\" instead of mentioning yaml/json, so the check also covers the empty case.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Check the parse error ...
null
zalando__skipper__2714
zalando/skipper
2,714
defect
d8e4f5f99a94df6a49fd2d925e5ce9ec78b8bb4e
5f7634400cd6d80bbe99b1c3f3b14cd69c90326a
Feature: tracing set route id to ingress spans
feature: add routeID to traces for shunt and loopback routes
diff --git a/proxy/context.go b/proxy/context.go index 418d76ed64..7aac894d66 100644 --- a/proxy/context.go +++ b/proxy/context.go @@ -296,7 +296,8 @@ func (c *context) Split() (filters.FilterContext, error) { } func (c *context) Loopback() { - err := c.proxy.do(c) + loopSpan := c.Tracer().StartSpan(c.proxy.tracing...
2
1
0
[{"id": "G0", "claim": "Move the new parentSpan parameter of Proxy.do into the context struct so the do() signature does not gain another argument.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ingress-span documentation should be updated to cover the...
null
zalando__skipper__2753
zalando/skipper
2,753
defect
be8f742b28d6ba7e7993f8359bf8bd7580a872e0
f0e00e7f2b18751aba01d2c21bda283478cfa165
validator: make sure Ingress/RouteGroup doesn't have duplicate hosts
Relates to https://github.com/zalando/skipper/issues/1618
diff --git a/cmd/webhook/admission/admission_test.go b/cmd/webhook/admission/admission_test.go index 9563c2a7d3..52587957a6 100644 --- a/cmd/webhook/admission/admission_test.go +++ b/cmd/webhook/admission/admission_test.go @@ -138,6 +138,11 @@ func TestRouteGroupAdmitter(t *testing.T) { inputFile: "rg-with-invalid-...
5
4
2
[{"id": "G0", "claim": "Name the new method `validateHosts` instead of `validateDuplicateHosts`, since there might be other host-related checks in future.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Rename the loop variable `hosts` to `host` ...
null
zalando__skipper__2760
zalando/skipper
2,760
defect
f55a20a0aa321999184dea00016703c1d94be0a8
32e122d8c8c319df93a415bb04d9a880af3ede6a
feature: tarpit() filter
feature: tarpit() filter to let connection to the client open until it closes the connection
diff --git a/filters/builtin/builtin.go b/filters/builtin/builtin.go index d4e1895bf4..dc980b2b80 100644 --- a/filters/builtin/builtin.go +++ b/filters/builtin/builtin.go @@ -176,6 +176,7 @@ func Filters() []filters.Spec { diag.NewBackendLatency(), diag.NewBackendBandwidth(), diag.NewBackendChunks(), + diag.N...
2
1
1
[{"id": "G0", "claim": "CreateFilter mutates the spec instance instead of returning a new filter instance, so creating a filter changes shared spec state.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The new tarpit() filter is equivalent in behavi...
null
zalando__skipper__2795
zalando/skipper
2,795
defect
5f706e5058720a70ecd3427ebe99306a4c918bc9
91e063802bed767f35cc679e3383b01cc5da60d3
Use sync.Map in the endpointregistry
This PR is intended to make endpointregistry component lock-free + use sync.Map to get entries by key + convert all entry fields to atomics + make GetMetrics method return the entry instead of copy to decrease complexity in general and number of calls to sync.Map's Load in particular The benchmark results show th...
diff --git a/loadbalancer/algorithm_test.go b/loadbalancer/algorithm_test.go index 3db8e1fc19..1eb9bb310a 100644 --- a/loadbalancer/algorithm_test.go +++ b/loadbalancer/algorithm_test.go @@ -419,7 +419,7 @@ func TestConsistentHashBoundedLoadDistribution(t *testing.T) { t.Errorf("Expected in-flight requests for each...
11
7
2
[{"id": "G0", "claim": "DetectedTime()'s unchecked type assertion can fail (return nil and panic) if the time was never stored in the atomic.Value.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The RegistryOptions.Detected map passed to NewEndpointRe...
null
zalando__skipper__2824
zalando/skipper
2,824
defect
07dee9e2c9876937147cb6bc9e467544ba31ce21
655ab25eca9c36c9e976ebea21c768458080f328
Write normalized scheme and host to routing.Route fields
This change is needed for proxy to easily have normalized host and use it in endpointregistry for dynamic host-wide data to be easily fetchable. This PR should make changes in #2823 easier.
diff --git a/filters/fadein/fadein.go b/filters/fadein/fadein.go index 64105c3202..49d498511e 100644 --- a/filters/fadein/fadein.go +++ b/filters/fadein/fadein.go @@ -2,9 +2,7 @@ package fadein import ( "fmt" - "net" "net/url" - "strings" "time" log "github.com/sirupsen/logrus" @@ -101,40 +99,13 @@ func Ne...
7
7
0
[{"id": "G0", "claim": "The normalization call in processRouteDef should be moved inside splitBackend, and a shared helper like SchemeHost(u string) should be created and used at every call site, parsing with url.ParseRequestURI.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
zalando__skipper__2869
zalando/skipper
2,869
defect
d468a59b53e6df717f9e5558888488f1b01fc6fb
b3cd10bb1ef0502d42bb8ff49275dcbe72444eda
Fixed EndpointRegistry.Do method to do nothing for unrelated backend types
https://github.com/zalando/skipper/pull/2823#discussion_r1450672228
diff --git a/routing/endpointregistry.go b/routing/endpointregistry.go index f2f5149ac6..bc0e8e80ca 100644 --- a/routing/endpointregistry.go +++ b/routing/endpointregistry.go @@ -93,7 +93,7 @@ func (r *EndpointRegistry) Do(routes []*Route) []*Route { epi.Metrics.SetLastSeen(now) } - } else { + } else if ro...
5
4
0
[{"id": "G0", "claim": "It is not obvious why the key is \"\" in GetMetrics(\"\") and the test would be better written with an exported test method that inspects the metrics content and checks that there are no metrics.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G...
null
zalando__skipper__2886
zalando/skipper
2,886
defect
6bd37d56223aab0a4327a15e2ad1bd91e775275e
457d83bedb9ad94214741d00f82d540cc88a1e74
minor: refactor fadeIn code
Some minor changes after https://github.com/zalando/skipper/pull/2634 just to make code a little bit more readable.
diff --git a/loadbalancer/algorithm_test.go b/loadbalancer/algorithm_test.go index 3bef23bdac..d33ba693ed 100644 --- a/loadbalancer/algorithm_test.go +++ b/loadbalancer/algorithm_test.go @@ -259,6 +259,7 @@ func TestApply(t *testing.T) { t.Run(tt.name, func(t *testing.T) { req, _ := http.NewRequest("GET", "http:...
3
2
0
[{"id": "G0", "claim": "The noFadeIn helper is unnecessary and its condition should be inlined instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The expression now.Sub(f.endpointRegistry.GetMetrics(e.Host).DetectedTime()) should be extract...
null
zalando__skipper__2912
zalando/skipper
2,912
defect
ddbd84cb08db52af26014fbba0f12d3feec70faf
76436fcec05b66d31984c3b7a6a4fcaae533f3a5
Feature: tlsPassClientCertificates filter
https://github.com/zalando/skipper/issues/1780#issuecomment-1926971779 showed interest in a filter that passes TLS client cert from the request to the proxy as header to the backend similar to a traefik feature. I trimmed it down to pem only support, but I think it's the one that is interesting without too much configu...
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 7625bee16d..27834d0a61 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -450,6 +450,21 @@ The second filter will set `Authorization` header to the `access_token` query param with a prefix value `Bearer ` and will not ove...
3
3
0
[{"id": "G0", "claim": "The sanitize function should create one global strings.NewReplacer instance instead of a new one on every call, since strings.NewReplacer is documented safe for concurrent use.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
zalando__skipper__2934
zalando/skipper
2,934
defect
ecb8c0bb88d4b9144cb0aa89ca5431c7e0cf88c3
a3da67c17e58b2068c54c86dde5a94ec99be7160
skipper: discover redis shards without fetching full cluster state
Skipper supports Redis based Cluster Ratelimits and dynamic discovery of Redis instances using Kubernetes Service, see https://github.com/zalando/skipper/blob/master/docs/tutorials/ratelimit.md#redis-based-cluster-ratelimits Dynamic discovery relies on Kubernetes Dataclient that also fetches Ingresses and RouteGr...
diff --git a/dataclients/kubernetes/client_test.go b/dataclients/kubernetes/client_test.go index 4d274c9952..0dc2ac36bf 100644 --- a/dataclients/kubernetes/client_test.go +++ b/dataclients/kubernetes/client_test.go @@ -86,3 +86,29 @@ func TestClientGetEndpointAddresses(t *testing.T) { assert.Equal(t, []string{"42.0....
3
2
0
[{"id": "G0", "claim": "The two fmt.Errorf calls in loadEndpointAddresses should wrap the underlying error with %w instead of %v so callers can unwrap the cause.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on the unexported lo...
null
zalando__skipper__2950
zalando/skipper
2,950
defect
d4e9b79678f583deaf89f7d146f7d61d3d962374
8cbf03b882c58c888874b38ceeedc63d9e7b6e43
routesrv: require kubernetes option
Require kubernetes option (explicitly or via -kubernetes flag). Initially routesrv implied this option as it was envisioned for serving Kubernetes dataclient routes. Later an endpoint to serve Redis endpoints was added by #2237 Within #2476 skipper allows Redis endpoints discovery without using kubernetes da...
diff --git a/VERSION b/VERSION index ef27085c8a..6e75c01de5 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -v0.20 +v0.21 diff --git a/redis_test.go b/redis_test.go index 6be128dbc7..9eac1b1924 100644 --- a/redis_test.go +++ b/redis_test.go @@ -136,6 +136,7 @@ spec: rsvo := skipper.Options{ Address: ...
1
1
0
[{"id": "G0", "claim": "The new error message should read `option \"Kubernetes\" is required` instead of \"kubernetes option is required\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__2959
zalando/skipper
2,959
defect
6c3386d58e0096312186e10d471c17c33f63b849
05ec684fbcb49ec12c3a0d13474d5f67b0f9c605
config: expose FlagSet
We are using skipper as a library. Configuration for custom code, like filters, gets passed in via command-line flags. This worked well until #2248 got merged, which switched to a `flag.FlagSet` to manage configuration. Now, starting Skipper and passing in custom flags fails with the error `flag provided but not def...
diff --git a/config/config.go b/config/config.go index 3f7cf0963a..174d8a785f 100644 --- a/config/config.go +++ b/config/config.go @@ -604,6 +604,12 @@ func validate(c *Config) error { return c.parseForwardedHeaders() } +// Flags returns the flag.FlagSet used by skipper. +// Users can add custom flags to the FlagS...
1
1
0
[{"id": "G0", "claim": "The PR should expose the flags field directly as Config.Flags instead of introducing an accessor method Flags().", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__3041
zalando/skipper
3,041
defect
a45de70878093260ce41d283436867e051df122b
89c34d9de16477910c952c146d29635ee89c0c99
Facilitate OPA decision correlation with business flows
## Context ### Problem Currently there is no recommended way of correlating OPA decisions with execution flows. This leaves the OPA integrators to take different approaches which could carry security risks and break as the platform evolves. #### Correlation is required by two main use cases, - Troubleshooting - ...
diff --git a/docs/tutorials/auth.md b/docs/tutorials/auth.md index 14bf04e1f7..92ce9884ca 100644 --- a/docs/tutorials/auth.md +++ b/docs/tutorials/auth.md @@ -466,6 +466,15 @@ The second argument is parsed as YAML, cannot be nested and values need to be st In Rego this can be used like this `input.attributes.context...
15
15
4
[{"id": "G0", "claim": "The test policy rule `decisionIdPresent` should be named `decision_id_present` to match the snake_case naming used elsewhere in the policy (or the reviewer's alternative form could be used).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id":...
null
zalando__skipper__3059
zalando/skipper
3,059
defect
b778f2baac071cb0a3c1ca15d1617cdf0ead48a7
c4ae32edd8dd7cfbb9621046ead6ca7f0ed7c134
phc: add new metric to counter number of unique requests mitigated
related to https://github.com/zalando/skipper/pull/3035 and https://github.com/zalando/skipper/issues/2346 depends on https://github.com/zalando/skipper/pull/3058
diff --git a/docs/operation/operation.md b/docs/operation/operation.md index 2052387e9f..37c6211e1d 100644 --- a/docs/operation/operation.md +++ b/docs/operation/operation.md @@ -932,6 +932,7 @@ while choosing the endpoint for the given request A set of metrics will be exposed to track passive health check: * `pass...
2
1
1
[{"id": "G0", "claim": "The documentation line for `passive-health-check.requests.passed` should link its count to the numbers used in the previous metric's description (it is 'N' requests there).", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The n...
null
zalando__skipper__3067
zalando/skipper
3,067
defect
f15ffba7864c0a6f3cacb0c790401257f70b6207
132bdd815ca09077fa13b833581eb3beebb8baaa
Make min-drop-probability of PHC optional
The default value (0.0) makes some sense and is equivalent to how PHC was working before.
diff --git a/proxy/proxy.go b/proxy/proxy.go index 2de0161d01..97143f6575 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -169,10 +169,11 @@ func InitPassiveHealthChecker(o map[string]string) (bool, *PassiveHealthCheck, e } result := &PassiveHealthCheck{} - keysInitialized := make(map[string]struct{}) + requi...
3
2
0
[{"id": "G0", "claim": "The missing-required-parameters error message should also show which required parameters are missing, e.g. by adding maps.Keys(requiredParams) to it, as in the reviewer's suggested snippet.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
zalando__skipper__3081
zalando/skipper
3,081
defect
00c33332ed059ccbe55a878e05035a1298f5b6dc
f3f79f41e67521bc5f3b79897a6b2394586205c3
Added max-unhealthy-endpoints-ratio cmdline parameter for PHC
This parameter is nice to have because PHC feature was designed to mitigate some small amount of unhealthy endpoints. So, it is better to fail open if the amount of unhealthy endpoints is "too much". The introduced parameter configures this "too much".
diff --git a/docs/operation/operation.md b/docs/operation/operation.md index 37c6211e1d..70ac60dbaf 100644 --- a/docs/operation/operation.md +++ b/docs/operation/operation.md @@ -904,15 +904,20 @@ the Skipper takes a look at previous period and if the amount of requests in the and failed requests ratio is more than `m...
8
8
1
[{"id": "G0", "claim": "InitPassiveHealthChecker should also set the default explicitly as MinDropProbability: 0.0 alongside MaxUnhealthyEndpointsRatio: 1.0.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The removed len(filtered) == 0 check mus...
null
zalando__skipper__3140
zalando/skipper
3,140
defect
44fd905b0944da8ed1143eacd33c00f142acdeb5
d63bde42d535900ae3058d9851d6e0b80ed8ec5f
feature: httpclient before and after hooks
feature: net.Transport got beforeSend and afterResponse hooks that a user can set via net.Options ```go // BeforeSend is a hook function that runs just before executing RoundTrip(*http.Request) BeforeSend func(*http.Request) // AfterResponse is a hook function that runs just after executing RoundTrip(*http.Requ...
diff --git a/net/httpclient.go b/net/httpclient.go index 833bae6203..3bb2937ba1 100644 --- a/net/httpclient.go +++ b/net/httpclient.go @@ -207,6 +207,11 @@ type Options struct { // Log is used for error logging Log logging.Logger + + // BeforeSend is a hook function that runs just before executing RoundTrip(*http...
4
3
2
[{"id": "G0", "claim": "The hook functions need not take an opentracing.Span argument — the request context already carries the span and the explicit parameter ties the API to opentracing; AfterResponse could instead receive the request and response.", "category": "design", "verdict": "supported", "priority": "P1", "sc...
null
zalando__skipper__3164
zalando/skipper
3,164
defect
eacb1113f24a867f7498f2a4804b7bc3fff60bc2
003f91cab793540a85ce2baca5f9bfcb04f1628a
filters/auth: add host opt-out to jwtMetrics and oauthTokeninfoValidate
Extend configuration of `jwtMetrics` and `oauthTokeninfoValidate` to support opt-out by request host pattern - disable metrics collection and validation when request host matches any of the configured opt-out regular expressions. This can be used to exclude internal cluster domain (*.ingress.cluster.local hosts).
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 0efec75bcb..581a33ce41 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -1371,6 +1371,10 @@ annotate("oauth.disabled", "this endpoint is public") -> oauthTokeninfoValidate("{optOutAnnotations: [oauth.disabled], unauthoriz...
5
1
0
[{"id": "G0", "claim": "Add a jwtMetrics test case with the same filter but host \"domain.test\", which matches none of the configured opt-out patterns.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add jwtMetrics test cases with hosts \"not.exact.test...
null
zalando__skipper__3231
zalando/skipper
3,231
defect
e085caa96c1e34b548dfe35d6d54180b0505cefe
e6840ef3562d025d8a218a7668e0afedbec6f80f
feature: header encoder filter
feature: header encoder filter https://github.com/zalando/skipper/issues/3230
diff --git a/filters/builtin/builtin.go b/filters/builtin/builtin.go index 1003756c60..d51974e7af 100644 --- a/filters/builtin/builtin.go +++ b/filters/builtin/builtin.go @@ -139,6 +139,8 @@ func Filters() []filters.Spec { NewSetPath(), NewModRequestHeader(), NewModResponseHeader(), + NewEncodeRequestHeader()...
2
2
1
[{"id": "G0", "claim": "Sensitive data returned by HTTP request headers flows to a clear-text logging call in the filter's error logging.", "category": "security", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should also update the docs.", "category": "docume...
null
zalando__skipper__3257
zalando/skipper
3,257
defect
05362a0b8d474441e65fb2fb425e170ca274be59
27d95ecf49f684d20ba98bc4bdb47a5de5d224b9
OPA filters: Reduce default buffer size for reading the requests' body
This PR * reduces the default buffer size for reading the request body to 8KB * and makes it configurable via command line and Skipper config
diff --git a/config/config.go b/config/config.go index 16b205fb7f..88eb49757f 100644 --- a/config/config.go +++ b/config/config.go @@ -289,6 +289,7 @@ type Config struct { OpenPolicyAgentEnvoyMetadata string `yaml:"open-policy-agent-envoy-metadata"` OpenPolicyAgentCleanerInterval time.Duration `y...
2
2
1
[{"id": "G0", "claim": "The flag, config option and constant names for the OPA body read buffer should be made consistent, e.g. `open-policy-agent-body-buffer-size` or `DefaultBodyReadBufferSize`, and should maybe highlight that it is the request body (e.g. `OpenPolicyAgentRequestBodyBufferSize` / `open-policy-agent-re...
null
zalando__skipper__3287
zalando/skipper
3,287
defect
262c326dd25c5725fe24052be85784c9ec8c0852
3cfb9faccd907e654b166b1edc0290f11e218ff9
Added check to handle token parsing with claims without "sub".
### Description In the oidc_introspection.py `func (filter *oidcIntrospectionFilter) Request(ctx filters.FilterContext)` function get value form the Claim map using `sub` key and then casts the value into a string, but this would panic if no sub key is present. I added a check to ensure we only cast values if sub key...
diff --git a/filters/auth/oidc_introspection.go b/filters/auth/oidc_introspection.go index a32752a7c0..dbea2b1b5e 100644 --- a/filters/auth/oidc_introspection.go +++ b/filters/auth/oidc_introspection.go @@ -131,7 +131,12 @@ func (filter *oidcIntrospectionFilter) Request(ctx filters.FilterContext) { return } - su...
3
3
2
[{"id": "G0", "claim": "A test case should be added covering the token parsing when the 'sub' claim is absent, by overriding the token's claims in the test server and expecting the request to fail before the fix and succeed after.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}...
null
zalando__skipper__3311
zalando/skipper
3,311
defect
f6f9efb2c7ff93ff940b6f5d60fda3e89e89cfec
c893a510232b8e0011140e3de903ac94548b5f73
oid_introspection: add SetOIDCClaims
This method allows third-party filters to set the oidcClaimsCacheKey which enables the use of the oidcClaimsQuery filter. Closes #3139
diff --git a/filters/auth/oidc_introspection.go b/filters/auth/oidc_introspection.go index a32752a7c0..e02950e305 100644 --- a/filters/auth/oidc_introspection.go +++ b/filters/auth/oidc_introspection.go @@ -42,6 +42,12 @@ func NewOIDCQueryClaimsFilter() filters.Spec { } } +func MakeTokenContainer(h map[string]inte...
6
4
2
[{"id": "G0", "claim": "The PR should not export a constructor returning the non-exported tokenContainer type; it should provide a documented utility that stores the token container in the state bag, with existing code changed to use it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introd...
null
zalando__skipper__3318
zalando/skipper
3,318
defect
f6f9efb2c7ff93ff940b6f5d60fda3e89e89cfec
3abb644b7eda2735d7d7149e0d78a3382d274022
Add more tags to the admissionControl span to increase visibility
Updates https://github.com/zalando/skipper/issues/3317
diff --git a/filters/shedder/admission.go b/filters/shedder/admission.go index 80d63e49d0..1a4fc031ae 100644 --- a/filters/shedder/admission.go +++ b/filters/shedder/admission.go @@ -370,6 +370,13 @@ func sum(a []int64) int64 { return result } +func (ac *admissionControl) setCommonTags(span opentracing.Span) { + s...
2
2
0
[{"id": "G0", "claim": "The testTracer helper copied from PR #1964 into admission_test.go should be extracted into a shared tracing/tracingtest package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "The span tag admissionControl.d is not descri...
null
zalando__skipper__3458
zalando/skipper
3,458
defect
6b448b1fe90cc113e365be8fba7cd6d122ad7a6d
5259bed931dede93e1535416467a7f8fb81308d1
Add access log formatter
This PR adds the ability to use a custom access log formatter. Currently, accessLogs can be configured in three ways: - If `AccessLogJSONEnabled` is defined, you can either pass a JSONFormatter, or have Skipper initialize one. - If `AccessLogJSONEnabled` is not defined, it uses a basic text formatter. There are...
diff --git a/logging/log.go b/logging/log.go index bac3eb4e7a..5236b83354 100644 --- a/logging/log.go +++ b/logging/log.go @@ -45,6 +45,9 @@ type Options struct { // AccessLogJsonFormatter, when set and JSON logging is enabled, is passed along to to the underlying // Logrus logger for access logs. To enable structu...
4
4
2
[{"id": "G0", "claim": "The access log needs a new generic AccessLogFormatter field of type logrus.Formatter that is passed to the underlying logger (taking precedence over the JSON path), since only a logrus.Formatter can be something other than a JSON formatter.", "category": "design", "verdict": "supported", "priori...
null
zalando__skipper__3467
zalando/skipper
3,467
defect
985da0b03d2fa499e4868a22d85426ed387b4a98
35d0945330cf4d85f8633afd07fef4272c7a38ba
bugfix - check config file existence for basicAuth filter
filters/auth: check config file existence for basicAuth filter Missing config file causes basicAuth filter to panic. This change adds file existence check during filter creation. Fixes https://github.com/zalando/skipper/issues/3327
diff --git a/filters/auth/basic.go b/filters/auth/basic.go index 957e1a67bd..c2d546a5d5 100644 --- a/filters/auth/basic.go +++ b/filters/auth/basic.go @@ -1,9 +1,11 @@ package auth import ( + "net/http" + "os" + auth "github.com/abbot/go-http-auth" "github.com/zalando/skipper/filters" - "net/http" ) const (...
2
1
1
[{"id": "G0", "claim": "CreateFilter should fail early (return an error) when the htpasswd file does not exist, so the misconfiguration is not masked by a silent 401; a file removed later at runtime may still be handled at request time.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in...
null
zalando__skipper__3471
zalando/skipper
3,471
defect
7e2ca3bfd2673b51db4abcfbd59dea33a94c2031
c69d2c75e976df8d8c6265ae2dd809e64eb0fb05
filters/accesslog: Add `maskAccessLogQuery` filter
Introduce a new `maskAccessLogQuery` filter that masks/obfuscates values of specific sensitive query parameters in access logs. Additionally, refactor `accesslog/control_test.go` to use testify/assert for improved test readability. See the previous PR for discussion details - https://github.com/zalando/skipper/pu...
diff --git a/filters/accesslog/control.go b/filters/accesslog/control.go index cdfc1a1a74..cb160ad9fa 100644 --- a/filters/accesslog/control.go +++ b/filters/accesslog/control.go @@ -1,6 +1,9 @@ package accesslog -import "github.com/zalando/skipper/filters" +import ( + "github.com/zalando/skipper/filters" + "maps" +...
8
5
1
[{"id": "G0", "claim": "The MaskedQueryParams field could use map[string]struct{} instead of map[string]bool to use less memory.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The CreateFilter argument loop could iterate values directly (for _, arg ...
null
zalando__skipper__3491
zalando/skipper
3,491
defect
4612f4cf2a7d24e5ff8f903ca2cf96b8ef59ee05
9c6213ee02df3405c1cf35db73ef455c0e25c2db
fix: Copy headers from backend in upgrade proxy
When a backend server responded with a non-101 status code during WebSocket upgrade attempts, the response headers were not forwarded to the client. This fix ensures all headers from the backend response are copied to the client response before writing the status code.
diff --git a/proxy/upgrade.go b/proxy/upgrade.go index 331a032fff..08c72b110b 100644 --- a/proxy/upgrade.go +++ b/proxy/upgrade.go @@ -124,6 +124,11 @@ func (p *upgradeProxy) serveHTTP(w http.ResponseWriter, req *http.Request) { if resp.StatusCode != http.StatusSwitchingProtocols { log.Debugf("Got invalid status...
2
2
1
[{"id": "G0", "claim": "The manual nested-loop header copying in serveHTTP should use maps.Copy from the standard library.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should cover sending multiple header values for the same heade...
null
zalando__skipper__3506
zalando/skipper
3,506
defect
df50e8d4af39e416c7f68f4e5859c01d71857337
c208b09485279c21ddafedd7d6e393a256386328
feat/metrics : add new metrics for measuring skipper latency
This change involves adding a new metric to measure the overall skipper latency of a request. i.e., the time taken by a request in skipper itself, so this does not include time taken for serving for the response to client and the time taken for the backend round trip. skipper latency = serve duration - response dura...
diff --git a/metrics/all_kind.go b/metrics/all_kind.go index 33a33eae95..4a6613911b 100644 --- a/metrics/all_kind.go +++ b/metrics/all_kind.go @@ -89,6 +89,11 @@ func (a *All) MeasureResponse(code int, method string, routeId string, start tim a.codaHale.MeasureResponse(code, method, routeId, start) } +func (a *All...
5
5
2
[{"id": "G0", "claim": "The same durations are calculated multiple times (three times around the backend call, twice for the response), so the metrics API should be updated to accept the duration directly, or this should be left for a later metrics refactor.", "category": "performance", "verdict": "supported", "priorit...
null
zalando__skipper__3543
zalando/skipper
3,543
defect
b1453c83ad152b70a7fed30eb6780738ad70cfc2
889294988f3eb248af8830a8633b43df6602c6a5
proxy: add request and response size metrics
Measure backend request header and response sizes. Request header size calculation benchmark results (compared to measurement of written bytes): ``` $ go test ./net/ -run=none -bench=BenchmarkSizeOfRequestHeader -count=10 | benchstat -col .fullname -row=name - goos: linux goarch: amd64 pkg: github.com/zalando/...
diff --git a/metrics/all_kind.go b/metrics/all_kind.go index 5ec190cdc4..28be42aa08 100644 --- a/metrics/all_kind.go +++ b/metrics/all_kind.go @@ -64,6 +64,11 @@ func (a *All) MeasureAllFiltersRequest(routeId string, start time.Time) { a.codaHale.MeasureAllFiltersRequest(routeId, start) } +func (a *All) MeasureBac...
2
1
1
[{"id": "G0", "claim": "sizeOfHeader adds CRLF only once per header key while http.Header.Write emits a CRLF for each value, so SizeOfRequestHeader undercounts the size of multi-value headers; move the CRLF addition inside the loop over values (and cover it with a test).", "category": "correctness", "verdict": "support...
null
zalando__skipper__3579
zalando/skipper
3,579
defect
e6d3f0cb0624e2c74dc9ea3870befbfbe681c64a
efc10c2a0ac6aba64b21fd6d1c4339ab063467d2
routing: initialize all error metrics with zero values
- Initialize reasonCounts map with all available error types set to 0 - Add TestProcessRouteDefsMetricsInitialization to verify metrics are properly initialized and reset
diff --git a/routing/datasource.go b/routing/datasource.go index 33bc9cebf2..5bdabc5513 100644 --- a/routing/datasource.go +++ b/routing/datasource.go @@ -618,7 +618,7 @@ func receiveRouteMatcher(o Options, out chan<- *routeTable, quit <-chan struct{} invalidRouteIds[err.ID] = struct{}{} } - if o.Metrics !...
1
1
1
[{"id": "G0", "claim": "The invalid-route metrics never return to 0 once invalid routes are fixed or removed, because the update is skipped when there are no errors and error types no longer present are missing from reasonCounts.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
zalando__skipper__3631
zalando/skipper
3,631
defect
573ec5a385849b0e24cdd629d7a4f74d0e455aa9
75a4bc0788b6f14da8a592dc9c40a48a5a03fa69
Enable native OPA Prometheus metrics
This PR passes through existing Prometheus metrics from Open Policy Agent by prefixing them to fit with remainging Skipper metrics and labeling them per virtual OPA instance. This can only be supported for the Prometheus metrics flavour and is breaking the metrics abstraction as it pulls the Prometheus `Registerer`...
diff --git a/docs/operation/operation.md b/docs/operation/operation.md index 13fa24052e..d368a95a06 100644 --- a/docs/operation/operation.md +++ b/docs/operation/operation.md @@ -716,6 +716,10 @@ The following timer metrics are exposed per used bundle-name: - `skipper.opaAuthorizeRequest.custom.eval_time.<bundle-name>...
6
4
2
[{"id": "G0", "claim": "The new optional metrics interface should be named PrometheusMetrics rather than OpaMetrics.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OPA side should take care of its own scoping rather than the Prometheus metrics backen...
null
zalando__skipper__3639
zalando/skipper
3,639
defect
eb5ed0fa4bd32dd8c7fa7c51bebd00a792e88193
98e5885d0e00521a9ad4c8c9e6c5b66b240bed09
feature: implement <forward>
feature: implement <forward> For migration purposes it is useful that the operator can override the backend target. Users of routing tools like stackset https://github.com/zalando-incubator/stackset-controller can set the backend to something that the operators decide.
diff --git a/config/config.go b/config/config.go index 2fa53c1962..885c3976a6 100644 --- a/config/config.go +++ b/config/config.go @@ -128,6 +128,7 @@ type Config struct { RoutesFile string `yaml:"routes-file"` RoutesURLs *listFlag `yaml:"routes-urls"` InlineRoutes s...
3
2
0
[{"id": "G0", "claim": "The new flag should be named `forward-backend-url` instead of `forward-url`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Two grammar fixes in the new Forward backend docs: 'Filters for example `modPath` can' should read 'Filter...
null
zalando__skipper__3656
zalando/skipper
3,656
defect
2eff64e7d72510a7c7c59f8bb69c706f08f47c34
6dbd9ed9e39be5a7dc1145a4e4bcf97c47057324
fix: forward backend integration in kubernetes dataclient and routesrv
fix: forward backend integration in kubernetes dataclient and routesrv ref: https://github.com/zalando/skipper/issues/3655
diff --git a/dataclients/kubernetes/kube.go b/dataclients/kubernetes/kube.go index a66d0fe237..6a1ccecbf8 100644 --- a/dataclients/kubernetes/kube.go +++ b/dataclients/kubernetes/kube.go @@ -254,6 +254,9 @@ type Options struct { // DefaultLoadBalancerAlgorithm sets the default algorithm to be used for load balancing ...
3
2
1
[{"id": "G0", "claim": "The new TestRouteGroupBackends points at testdata/routegroups/backends but no such fixture files were added with the pull request, so the new test has nothing to run against.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new...
null
zalando__skipper__3778
zalando/skipper
3,778
defect
19bd6bb9047d529c5e247d8c36338f4d6b7c675a
6679a95a805929ef5cacee1b2d0af3a20f19582c
feature/builtin: drop specific header value
Add `dropRequestHeaderValueRegexp` and `dropResponseHeaderValueRegexp` filters that allow selective removal of header values based on regex patterns, unlike the existing drop filters that remove entire headers. - [ ] **Can Improve** Add local caching for regex compilation Replaces https://github.com/zalando/skipp...
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 43e5728c89..321c2fc0b5 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -175,6 +175,21 @@ Example: foo: * -> dropRequestHeader("User-Agent") -> "https://backend.example.org"; ``` +### dropRequestHeaderRegexp + +Removes...
4
3
0
[{"id": "G0", "claim": "The reviewer considers headerFilterConfig's more-than-two return values (five after this change) a code smell and suggests refactoring it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When the new drop-by-regexp filters...
null
zalando__skipper__3779
zalando/skipper
3,779
defect
f8d418aabaeb3fb7f013e090fcf4fc9da2bbddbf
c8f9c529a124bf9724bb7be1898b52cc7c09cbb1
refactor: update `CreateFilter` function for header filters
Inline headerFilterConfig to reduce function return params and reduce complexity. Remove some test functions in favour of `assert` as it's already implementing same functionality. Use `any` instead of `interface{}` when possible just for less linters suggesstions. Follow up on https://github.com/zalando/skipper/p...
diff --git a/filters/builtin/compress_test.go b/filters/builtin/compress_test.go index 2efb4821aa..b1c034ac62 100644 --- a/filters/builtin/compress_test.go +++ b/filters/builtin/compress_test.go @@ -14,6 +14,7 @@ import ( "testing" "time" + "github.com/stretchr/testify/assert" "github.com/zalando/skipper/eskip"...
1
1
0
[{"id": "G0", "claim": "Changing testContext.CreateFilter to take []any may be incompatible with the filters.Spec filter interface, so the reviewer would say not to make this change.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__3783
zalando/skipper
3,783
defect
09297d7eb05c1a11a013750db2f57e15e39906b7
f4a92eb6bf52f1bcb8185321ba628309a9a6827b
refactor: admission test to use synctest
- Replace real network connections with fake network pipes and listeners to enable controlled simulation of network behavior. Implementation is taken from https://go.dev/src/net/http/netconn_test.go - Fix the loop in admissionControl ticker, we were checking the quit channel only on tick instead of waiting for one of ...
diff --git a/filters/shedder/admission.go b/filters/shedder/admission.go index 903ef63407..3cba996055 100644 --- a/filters/shedder/admission.go +++ b/filters/shedder/admission.go @@ -354,12 +354,13 @@ func (ac *admissionControl) tickWindows(d time.Duration) { defer t.Stop() i := 0 - for range t.C { + for { sel...
1
1
0
[{"id": "G0", "claim": "The import aliasing in filters/shedder/admission_test.go is inconsistent: stdlib net should be used unaliased while the skipper net package is aliased to skpnet for consistency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__3825
zalando/skipper
3,825
defect
656d49e549e922b439c36fbf8008f6f1cb27908b
23bab2b9aa603e18f3f5c7edb841e6b955101a5a
context: span tag `shadow: true` should only be set for shadow traffic
Shadow Traffic usually means the duplicated traffic whose response is discarded. The loopbackInternal method get called for teeLoopback filter and loopbackIfStatus filters. At the moment in both the cases we tag the span with `shadow: true`. We wanna do this only for the teeLoopback case and this change accomplishes th...
diff --git a/proxy/context.go b/proxy/context.go index 54ffb6de2a..18a24440e5 100644 --- a/proxy/context.go +++ b/proxy/context.go @@ -317,10 +317,12 @@ func (c *context) loopbackInternal(discardResponse bool) { if err != nil { c.Logger().Errorf("context: error during closing the response body: %v", err) } - ...
3
2
2
[{"id": "G0", "claim": "The pull request has no test to reproduce the issue it fixes, so a test case should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Moving the proxySpan.Finish() call into the discardResponse block as well is a logical c...
null
zalando__skipper__3843
zalando/skipper
3,843
defect
e97551d6c3358c52cf7d4f18232f8d1abcd79f5a
42bf060e58e6b9e260a393bdfb7a51258c5f2d5c
Feature: teeResponse filter
Feature: teeResponse() filter Ref: https://github.com/zalando/skipper/issues/3836
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 8ba719cbd4..c8c3428388 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -933,7 +933,7 @@ Example: ### loopbackIfStatus -Fallbacks to the given path if the response has the specified code. The filter +Fallbacks to the...
1
1
0
[{"id": "G0", "claim": "The CreateFilter doc comment is hard to understand and should be rewritten to say that it creates a teeResponse filter and accepts only one parameter: the shadow backend URL.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__3845
zalando/skipper
3,845
defect
e97551d6c3358c52cf7d4f18232f8d1abcd79f5a
11dee831e13c935fc4efea9466653714c9358d14
feat: integrate preprocessors into validation mode
While skipper runs in validation mode, it doesn't apply prepocessors which can result in a valid route being blocked as it have invalid argument before applying preprocessor. ``` r1: SourceFromLast("application") -> <shunt>; // After preprocessing r1: * -> SourceFromLast("1.1.1.1") -> <shunt>; ``` This can be...
diff --git a/dataclients/kubernetes/definitions/ingressvalidator.go b/dataclients/kubernetes/definitions/ingressvalidator.go index d538e7d472..b57ab37ed5 100644 --- a/dataclients/kubernetes/definitions/ingressvalidator.go +++ b/dataclients/kubernetes/definitions/ingressvalidator.go @@ -5,15 +5,11 @@ import ( "fmt" ...
1
1
0
[{"id": "G0", "claim": "Rewrite the preprocessor result check in routing/datasource.go ValidateRoute as 'if mdefLen != 1' instead of 'mdefLen == 0 || mdefLen > 1'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__3846
zalando/skipper
3,846
defect
dca0004dd66e43ee43c02c628bedaa82ee07bb04
14694eec3a92d9b3e90d9caea090cbc9dc9c8cb8
Include eopa_dl plugin in opa
This PR introduces the eopa_dl plugin ([documentation](https://docs.styra.com/enterprise-opa/reference/configuration/decision-logs)) into the open policy agent instance running in skipper filter. eopa_dl plugin allows multiple types of outputs. AWS S3 is one of the allowed output types. If the running skipper instance ...
diff --git a/filters/openpolicyagent/opaauthorizerequest/opaauthorizerequest_test.go b/filters/openpolicyagent/opaauthorizerequest/opaauthorizerequest_test.go index 757c02a76e..4837a58539 100644 --- a/filters/openpolicyagent/opaauthorizerequest/opaauthorizerequest_test.go +++ b/filters/openpolicyagent/opaauthorizereque...
1
1
1
[{"id": "G0", "claim": "The configHooks slice should be wrapped with hooks.New(configHooks...) when passed to discovery.Hooks, instead of passing the raw configHooks slice.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
zalando__skipper__3877
zalando/skipper
3,877
defect
61ab58cd9e3fe7b59ec58934d01931c87f4e929f
d6a2c536da782ffbb859b228285ea23b40915657
kubernetes: update ingress status from service
Add support for -kubernetes-ingress-status-from-service so Skipper can source ingress status addresses from a configured Service and patch ingress /status when needed. Why: Skipper does not currently provide this capability, and this adds a way to publish Service-derived ingress addresses through ingress status upda...
diff --git a/config/config.go b/config/config.go index fa48b51af4..d196d23438 100644 --- a/config/config.go +++ b/config/config.go @@ -203,6 +203,7 @@ type Config struct { KubernetesBackendTrafficAlgorithm kubernetes.BackendTrafficAlgorithm `yaml:"-"` KubernetesDefaultLoadBalancerAlgorithm ...
3
3
1
[{"id": "G0", "claim": "The PR needs to add documentation explaining the new RBAC requirement, because the ingress status feature now needs write access to the ingresses/status subresource where previously only read access was needed.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "in...
null
zalando__skipper__3896
zalando/skipper
3,896
defect
d8725b9c993a1b0706e83ecc4cf4538366ad3083
12cde180a4a58f4921169a730236352978b740cd
filters/oidc: credentials from secret store
This is a implementation for #3895 Please let me know what you think. Full Disclosure: Implementation was done with Claude Opus due to limited amount of time.
diff --git a/docs/reference/filters.md b/docs/reference/filters.md index 160ec9bf93..d9c51f69c0 100644 --- a/docs/reference/filters.md +++ b/docs/reference/filters.md @@ -1938,6 +1938,21 @@ The filter needs the following parameters: * **OpenID Connect Provider URL** For example Google OpenID Connect is available on `h...
1
1
1
[{"id": "G0", "claim": "Instead of adding three new *AndReader constructors and a separate secretsReader field, the PR could just reuse the existing filters.Spec creator functions by passing the SecretsReader as a field of OidcOptions.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
zalando__skipper__3922
zalando/skipper
3,922
defect
0d49f787a3f2987527877e4619c8c98fb13178b0
9eb5971556d063448e78500333985a5a01d97c4f
feat: add jwtValidationKeys filter for JWT validation with direct JWKS URL
## Summary - Add new `jwtValidationKeys` filter that verifies JWT Bearer tokens using a JWKS URL directly, without requiring OIDC discovery via `.well-known/openid-configuration` - Reuses existing `jwtValidationFilter` — the new spec only provides an alternative entry point that skips OIDC discovery - Claims validatio...
diff --git a/filters/auth/jwt_direct.go b/filters/auth/jwt_direct.go new file mode 100644 index 0000000000..7ec37da3fa --- /dev/null +++ b/filters/auth/jwt_direct.go @@ -0,0 +1,119 @@ +package auth + +import ( + "fmt" + + "github.com/zalando/skipper/filters" +) + +type ( + jwtDirectSpec struct{} + + jwtDirectFilter str...
4
4
1
[{"id": "G0", "claim": "The new filter should only validate the token and delegate claims checks to oidcClaimsQuery (as the existing jwtValidation filter does), reusing that filter's Request logic by returning a jwtValidationFilter from the spec.", "category": "design", "verdict": "supported", "priority": "P1", "scope"...
null
zalando__skipper__3935
zalando/skipper
3,935
defect
80ab774c89fe16738cbbe1562a6c352c6e7c54b6
d3e2eccb23a3a3f9cd52872c9d29a1f2b27f6c8f
fix: valkey updater calculated wrong difference for update required detection
fix: valkey updater calculated wrong difference for update required detection Problem showed up after a while when valkey instances were cycled and in the unlucky ordering of valkey IPs we do not detect that we need to update the instance list
diff --git a/net/valkey.go b/net/valkey.go index b54d5971a1..5065adc295 100644 --- a/net/valkey.go +++ b/net/valkey.go @@ -349,6 +349,7 @@ func NewValkeyRingClient(opt *ValkeyOptions) (*ValkeyRingClient, error) { } if err != nil { opt.Log.Errorf("Failed start valkey client: %v", err) + return nil, fmt.Error...
2
1
0
[{"id": "G0", "claim": "If the addresses were sorted, the added-or-removed check could be simplified to a direct slices.Equal comparison.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The difference function may no longer be used anywhere now that the u...
null
zalando__skipper__3946
zalando/skipper
3,946
defect
38d2b88723265929716a7630e1f85a720216422d
e5133a6698baa9412f023a4414e333473ec6efef
Feature/compress zstd
Adds zstd support to compress and decompress filters without adding extra dependencies Savings cpu processing time vs gzip, atleast almost all of my clients have zstd support
diff --git a/config/config.go b/config/config.go index 58345d7400..f83353ad5a 100644 --- a/config/config.go +++ b/config/config.go @@ -386,7 +386,7 @@ func NewConfig() *Config { cfg.RoutesURLs = commaListFlag() cfg.ForwardedHeadersList = commaListFlag() cfg.ForwardedHeadersExcludeCIDRList = commaListFlag() - cfg....
1
1
0
[{"id": "G0", "claim": "Drop the zstdWrapper's lazily-initialized decoder with its runtime nil checks and instead initialize the decoder correctly in newDecoder.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zalando__skipper__3969
zalando/skipper
3,969
defect
dd457320b4be15d29641eb4d0daed2d188653e80
3b195b54a42eab5167f4baad2f02301883adbf26
fix: proxy filter panics did not run applyFiltersOnError
fix https://github.com/zalando/skipper/issues/3966 Example: In the proxy a route with filter chain a() -> b() exists. b() panics and a() implements errorHandlerFilter interface and return true from HandleErrorResponse(). In this case we should run the filter a().Response(), because we need to cleanup things as e...
diff --git a/proxy/proxy.go b/proxy/proxy.go index df29bd73db..62b881a4ee 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -906,7 +906,7 @@ func WithParams(p Params) *Proxy { } // applies filters to a request -func (p *Proxy) applyFiltersToRequest(f []*routing.RouteFilter, ctx *context) []*routing.RouteFilter { ...
4
1
0
[{"id": "G0", "claim": "In TestFilterPanic the 50ms timeout should be assigned directly to MetricsUpdateTimeout instead of first defining the variable `d`.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new variables tracking how many filter...
null
zama-ai__tfhe-rs__2030
zama-ai/tfhe-rs
2,030
defect
f962716fa5e4ccf926ba655945ce066238f6dd32
022856bf237c3d6b403c427f286c82b68dba1edc
feat(gpu): add circulant matrix for one vs many poly product
To support encrypted GLWE x clear matrix product, all polys of the GLWE are multiplied with the clear matrix. For each poly of the GLWE, this PR builds a circulant matrix that is multiplied with the clear matrix to obtain the polynomial product. Sample N of this product contains the matrix product of the original clea...
diff --git a/backends/tfhe-cuda-backend/cuda/include/linear_algebra.h b/backends/tfhe-cuda-backend/cuda/include/linear_algebra.h index ab0b63cfed5..a12e90fcef4 100644 --- a/backends/tfhe-cuda-backend/cuda/include/linear_algebra.h +++ b/backends/tfhe-cuda-backend/cuda/include/linear_algebra.h @@ -42,6 +42,13 @@ void cud...
7
4
1
[{"id": "G0", "claim": "tgemm's M, N and K dimension parameters should be unsigned (uint) rather than int.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It is unverified that the shared memory requested for the tgemm launch in fast packing keys...
null
zama-ai__tfhe-rs__2148
zama-ai/tfhe-rs
2,148
defect
7d3cdbf4667e24dce61fef4ec81674dff144c557
9faa7c463f5b1412f36086decf455be67ca6561a
feat(ntt-bnf) Add back&Forth ntt implementation
### PR content/description New Pbs implementation based on NTT. This implementation work on 2**k modulus and used modswitch before and after every cmux. It mimics the HW implementation ### Check-list: * [x] Tests for the changes have been added (for bug fixes / features) * [x] Docs have been added / updated (f...
diff --git a/tfhe/src/core_crypto/algorithms/lwe_bootstrap_key_conversion.rs b/tfhe/src/core_crypto/algorithms/lwe_bootstrap_key_conversion.rs index 1d33214783..5126d28c29 100644 --- a/tfhe/src/core_crypto/algorithms/lwe_bootstrap_key_conversion.rs +++ b/tfhe/src/core_crypto/algorithms/lwe_bootstrap_key_conversion.rs @...
19
18
5
[{"id": "G0", "claim": "The ntt-bnf test fails after the rebase onto main because the noise reduction used for power-of-two ciphertexts clashes with the ntt-bnf implementation.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The new impl block with the ...
null
zama-ai__tfhe-rs__2230
zama-ai/tfhe-rs
2,230
defect
7354265c52008ee04222cb36eeffbcbc7535a1d4
b45c97d9d16c572d705a31059b6064f18fcc133c
feat(versionable): add `skip` attribute to skip field versioning
### PR content/description Adds the `#[versionize(skip)]` attribute to skip an enum/struct field during the versioning: ```rust #[derive(Versionize)] #[versionize(MyStructVersions)] struct MyStruct { val: u64, #[versionize(skip)] to_skip: NotVersionable, } ``` This is similar to what serde does...
diff --git a/tfhe-zk-pok/Cargo.toml b/tfhe-zk-pok/Cargo.toml index cea65d29d9..8db2458d72 100644 --- a/tfhe-zk-pok/Cargo.toml +++ b/tfhe-zk-pok/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tfhe-zk-pok" -version = "0.5.0" +version = "0.5.1" edition = "2021" keywords = ["zero", "knowledge", "proof", "vector-commitmen...
4
3
2
[{"id": "G0", "claim": "The `skip` attribute does not currently support enums; handling enum versioning is still work to do.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "tfhe-zk-pok should be bumped to 0.6.0 instead of 0.5.1, because 0.5.1 could b...
null
zama-ai__tfhe-rs__2276
zama-ai/tfhe-rs
2,276
defect
0a279711d89826961acfd4fe310044cd04544fa5
161093c4f31710f7416b7de1f14d5c4bb22a2daf
feat(gpu): add support for GPU-accelerated expand on the HL Api
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: https://github.com/zama-ai/tfhe-rs-internal/issues/986 ### PR content/description ### Check-list: * [ ] Tests for the changes have been added (for bug fixes / features) * [ ] Docs have been added / ...
diff --git a/Makefile b/Makefile index db59fa5e2c..1ef6ced0d0 100644 --- a/Makefile +++ b/Makefile @@ -839,7 +839,7 @@ test_high_level_api: install_rs_build_toolchain test_high_level_api_gpu: install_rs_build_toolchain install_cargo_nextest RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) nextest run --c...
23
20
9
[{"id": "G0", "claim": "The PR should add documentation (e.g. tfhe/docs/configuration/gpu_acceleration/zk-pok.md) explaining how to run expand on GPU and that ZK proof/verification only run on CPU.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
zama-ai__tfhe-rs__2384
zama-ai/tfhe-rs
2,384
defect
59a78c76a9995c403814862a85fba1e0eb42849c
976db55a49062fb4fbd6c1cbdd5bac651e7fd312
Al/cmux memory tracking
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description ### Check-list: * [ ] Tests for the changes have been added (for bug fixes / features) * [ ] Docs have been added / updated (for bug fixe...
diff --git a/tfhe/src/high_level_api/booleans/base.rs b/tfhe/src/high_level_api/booleans/base.rs index a891991f75..8a1ce932ac 100644 --- a/tfhe/src/high_level_api/booleans/base.rs +++ b/tfhe/src/high_level_api/booleans/base.rs @@ -23,8 +23,12 @@ use std::borrow::Borrow; use std::ops::{BitAnd, BitAndAssign, BitOr, BitO...
2
2
0
[{"id": "G0", "claim": "Remove the unneeded \"/// Conditional selection.\" doc comment from the two new FheBool get_if_then_else_size_on_gpu impls in tfhe/src/high_level_api/booleans/base.rs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The get_...
null
zama-ai__tfhe-rs__2385
zama-ai/tfhe-rs
2,385
defect
11df6c69ee12c0a08062bd335347ff9b01a235ce
c024f6f0707487f312ef633dd8abe6892ad9ddee
Mz/prepare ms refactor
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/zama-ai/tfhe-rs/2385) <!-- Reviewable:end -->
diff --git a/tfhe/src/core_crypto/algorithms/lwe_multi_bit_programmable_bootstrapping.rs b/tfhe/src/core_crypto/algorithms/lwe_multi_bit_programmable_bootstrapping.rs index 917ada1e69..dbb9ee3c1a 100644 --- a/tfhe/src/core_crypto/algorithms/lwe_multi_bit_programmable_bootstrapping.rs +++ b/tfhe/src/core_crypto/algorith...
2
2
1
[{"id": "G0", "claim": "The versioned upgrade path added by this PR discards the stored uncompressed_ciphertext_modulus (destructured as `uncompressed_ciphertext_modulus: _` when upgrading V1 to the current type), so the upgrade loses ciphertext modulus information, which the reviewer says is not acceptable in the gene...
null
zama-ai__tfhe-rs__2439
zama-ai/tfhe-rs
2,439
defect
c103f0380c5b047daede4709cfb2f63605d6a0d5
f005c6c3ca47b4aa67805dd9833f1b91d135955d
chore(gpu): update noise squashing parameters
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description ### Check-list: * [ ] Tests for the changes have been added (for bug fixes / features) * [ ] Docs have been added / updated (for bug fixe...
diff --git a/tfhe/src/high_level_api/tests/noise_squashing.rs b/tfhe/src/high_level_api/tests/noise_squashing.rs index 423b69d871..67a20e4dad 100644 --- a/tfhe/src/high_level_api/tests/noise_squashing.rs +++ b/tfhe/src/high_level_api/tests/noise_squashing.rs @@ -4,6 +4,8 @@ use crate::high_level_api::{ }; use crate::...
2
2
1
[{"id": "G0", "claim": "The new GPU noise squashing parameter added in tfhe/src/shortint/parameters/v1_3/noise_squashing/p_fail_2_minus_128/mod.rs must also be registered in VEC_ALL_NOISE_SQUASHING_PARAMETERS in tfhe/src/shortint/parameters/v1_3/mod.rs.", "category": "correctness", "verdict": "supported", "priority": "...
null
zama-ai__tfhe-rs__2481
zama-ai/tfhe-rs
2,481
defect
bc2e595cf513030042f5b21618b90128a4d22dd9
bc76b5972165e6a9384fd42bc47c228fcde0e04d
fix(api): add clear error for .min/.max called with ciphertext by val…
### Issue When calling `.min()` or `.max()` on an FHE ciphertext and passing another ciphertext **by value** (e.g., `a.min(b)`), the error message was misleading: ``` the trait DecomposableInto<u64> is not implemented for FheUint<FheUint32Id> ``` This did not clearly indicate that a reference was required. ...
diff --git a/tfhe/src/high_level_api/integers/signed/ops.rs b/tfhe/src/high_level_api/integers/signed/ops.rs index dd3e4e7093..8010b7428e 100644 --- a/tfhe/src/high_level_api/integers/signed/ops.rs +++ b/tfhe/src/high_level_api/integers/signed/ops.rs @@ -168,6 +168,16 @@ where } } +impl<Id> FheMax<Self> for Fhe...
4
4
1
[{"id": "G0", "claim": "The pull request does not compile, and the correct fix is to make the by-value FheMin/FheMax impls call the reference versions.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "Revert the pull request's modification of the Div doc...
null
zama-ai__tfhe-rs__2494
zama-ai/tfhe-rs
2,494
defect
97c0290ff7acf88f47803ce22403a4d65b5c8580
8c297ea632515e6e8480008efeeb39250a894d64
Tm/hl list
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description ### Check-list: * [ ] Tests for the changes have been added (for bug fixes / features) * [ ] Docs have been added / updated (for bug fixe...
diff --git a/tests/Cargo.toml b/tests/Cargo.toml index e4306cd1bf..5c526871c3 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -10,7 +10,6 @@ tfhe-versionable = { path = "../utils/tfhe-versionable" } tfhe-backward-compat-data = { git = "https://github.com/zama-ai/tfhe-backward-compat-data.git", branch = "v0.8",...
2
2
0
[{"id": "G0", "claim": "The new backward-compatibility test hard-codes element types at fixed indices, so it stops working if the test data is modified; the reviewer asks to iterate over the list and decrypt based on the DataKind instead (as done in test_hl_heterogeneous_ciphertext_list).", "category": "testing", "verd...
null
zama-ai__tfhe-rs__2515
zama-ai/tfhe-rs
2,515
defect
187159d9f936a322508ae1a8a2659b6f42fcd8f6
bad56d6225e663fa479001a4483d16b9734d7e29
chore(gpu): update noise squashing parameters
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description ### Check-list: * [ ] Tests for the changes have been added (for bug fixes / features) * [ ] Docs have been added / updated (for bug fixe...
diff --git a/tfhe-benchmark/benches/core_crypto/pbs128_bench.rs b/tfhe-benchmark/benches/core_crypto/pbs128_bench.rs index 2f65b20b600..0b644ad0564 100644 --- a/tfhe-benchmark/benches/core_crypto/pbs128_bench.rs +++ b/tfhe-benchmark/benches/core_crypto/pbs128_bench.rs @@ -178,8 +178,8 @@ mod cuda { use tfhe::core_...
1
1
0
[{"id": "G0", "claim": "As part of this release-prep change, the version strings still saying 1.3.0 should be bumped to 1.3.1 — the crate version in tfhe/Cargo.toml and, as well, the occurrences of 1.3.0 in the docs.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zama-ai__tfhe-rs__2688
zama-ai/tfhe-rs
2,688
defect
baad6a6b490e8a3f3beabcdae08896c6b9b6dc5b
835e9cd3e7e171a79227e8f24630e9cfc9e65343
feat(gpu): implement support for 128-bit multi-bit PBS on HLAPI's noise squashing
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description ### Check-list: * [ ] Tests for the changes have been added (for bug fixes / features) * [ ] Docs have been added / updated (for bug fixe...
diff --git a/backends/tfhe-cuda-backend/cuda/include/pbs/programmable_bootstrap_multibit.h b/backends/tfhe-cuda-backend/cuda/include/pbs/programmable_bootstrap_multibit.h index 68f2e271966..6679ed09c2d 100644 --- a/backends/tfhe-cuda-backend/cuda/include/pbs/programmable_bootstrap_multibit.h +++ b/backends/tfhe-cuda-ba...
1
1
1
[{"id": "G0", "claim": "The multi-bit GPU noise squashing parameter should also be added to the benchmark parameter list (tfhe-benchmark/src/params_aliases.rs) and benchmarked, the parameters for 128-bit compression after a multi-bit noise squash being deferred to another PR.", "category": "testing", "verdict": "suppor...
null
zama-ai__tfhe-rs__2790
zama-ai/tfhe-rs
2,790
defect
e46714e28f48358e629f5546a362c2ad3cb260ec
8f42ae29ae908cfd58016d2fdda1a31426281950
chore(core): use a single rng for cpk encryption
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description Use a single rng for cpk encryption. This better aligns with the rerand tech specs. <!-- Reviewable:start --> - - - This change is [<img src="...
diff --git a/tfhe/src/core_crypto/algorithms/lwe_encryption.rs b/tfhe/src/core_crypto/algorithms/lwe_encryption.rs index f95bf28f76..32a5296e3e 100644 --- a/tfhe/src/core_crypto/algorithms/lwe_encryption.rs +++ b/tfhe/src/core_crypto/algorithms/lwe_encryption.rs @@ -4,7 +4,9 @@ use crate::core_crypto::algorithms::slic...
7
5
3
[{"id": "G0", "claim": "The pull request forgot to update all documentation spots describing how generators are instantiated.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The generator variable in encrypt_lwe_compact_ciphertext_list_with_compact...
null
zama-ai__tfhe-rs__2871
zama-ai/tfhe-rs
2,871
defect
a05d228899d3539097557cc94a11de39d002023b
f50128d1cc522fde8bd19077574abe11975f890f
chore(backward): add data for ks32 client key, server key and ct
### PR content/description Adds data for ks32 client key, server key and ciphertext. This should have been done in 1.3 but has been forgotten, so the data is added in the 1_3 folder. The noise squashing key ks32 will come in a following pr, as it is for 1.4. Some data inside 1_4 has been re-generated, certainly ...
diff --git a/tests/backward_compatibility/high_level_api.rs b/tests/backward_compatibility/high_level_api.rs index 4f5e6494df..b8b53f6860 100644 --- a/tests/backward_compatibility/high_level_api.rs +++ b/tests/backward_compatibility/high_level_api.rs @@ -12,7 +12,7 @@ use tfhe::shortint::parameters::{ }; #[cfg(featur...
2
1
1
[{"id": "G0", "claim": "The KS32 data generation should create the server key via ClientKey::generate, CompressedServerKey::new and decompress instead of generate_keys(config), so that the stored server key is truly generated from that client key.", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
zama-ai__tfhe-rs__2949
zama-ai/tfhe-rs
2,949
defect
7b797b8af9fa1ba0308c676bb1e9939ef6c39f68
11ebeafa69bb14b8f7a8533b7d3403754e6994dd
Am/refactor/noise checks simplifications
Can be reviewed commit by commit normally - factorize the any ms application in a dedicated function - rework the noise simulation configuration to be less error prone - rework some internal functions to have consistency for APIs to generate KSK in the normal and seeded modes <!-- Reviewable:start --> - - - This ...
diff --git a/tfhe/src/shortint/client_key/atomic_pattern/ks32.rs b/tfhe/src/shortint/client_key/atomic_pattern/ks32.rs index 24491d484c..f0282a8c24 100644 --- a/tfhe/src/shortint/client_key/atomic_pattern/ks32.rs +++ b/tfhe/src/shortint/client_key/atomic_pattern/ks32.rs @@ -259,35 +259,32 @@ impl KS32AtomicPatternClien...
1
1
0
[{"id": "G0", "claim": "Even if `.into()` can't be used, the inline matches converting a ModulusSwitchConfiguration into a NoiseSimulationModulusSwitchConfig could be factored into a constructor method that takes an additional argument.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope":...
null
zama-ai__tfhe-rs__2950
zama-ai/tfhe-rs
2,950
defect
95593b1ea98020b78d6174e54bbdeb424565ce7d
7423b660b9fcbd62327a38f76dc3dc851440da35
Ns/chore/encode a tilde
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description Fix the hashed statement to match the reference paper: - hash a more flexible representation of \tilde{A}: the matrix is represented using: ...
diff --git a/tfhe-zk-pok/src/backward_compatibility/pke_v2.rs b/tfhe-zk-pok/src/backward_compatibility/pke_v2.rs index 65ab02294a..8c9dba53e7 100644 --- a/tfhe-zk-pok/src/backward_compatibility/pke_v2.rs +++ b/tfhe-zk-pok/src/backward_compatibility/pke_v2.rs @@ -7,7 +7,8 @@ use tfhe_versionable::{Upgrade, Version, Vers...
7
5
2
[{"id": "G0", "claim": "Proofs should be forced to one of a fixed, versioned set of hash configurations (a V2_0 / V2_1 style split) rather than a flexible mix of all possibilities, with the per-parameter forbidding API consolidated, because the flexible surface is harder to test and to defend against bad configs.", "ca...
null
zama-ai__tfhe-rs__3008
zama-ai/tfhe-rs
3,008
defect
caf5e9d879fec2bafa88475e0600215d979a2d2e
4d6c70fe485c527a465601324bbcbf1c7926beb2
feat(core): add karatsuba blind_rotate
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description Add blind rotation using karatsuba polynomial multiplication ### TODO * [x] Add some tests * [x] Fix comments mentioning FFT * [x] Find a...
diff --git a/apps/test-vectors/Cargo.toml b/apps/test-vectors/Cargo.toml index 9424f089c8..581ce5a473 100644 --- a/apps/test-vectors/Cargo.toml +++ b/apps/test-vectors/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tfhe-test-vectors" -version = "0.1.0" +version = "0.2.0" edition = "2024" rust-version.workspace = true...
14
10
0
[{"id": "G0", "claim": "The heuristics for the memory requirements may not be correct and should be checked during review.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The karatsuba code should drop the stack-based allocations and use plain Vecs (ke...
null
zama-ai__tfhe-rs__3058
zama-ai/tfhe-rs
3,058
defect
01367368eddbcaaf861ae71e4c78f07f69c090bb
1343ae94ac66ec83a530b97e7eee5a66f0df79e8
chore: use dedicated types for compressed modswitched conformance
### PR content/description modswitched expansion type info was stored into the CiphertextConformanceParams, which meant that we had to provide this information even for ciphertexts that were not compressed. This PR adds dedicated types for modswitched ciphertexts conformance params. <!-- Reviewable:start --> - - - ...
diff --git a/tfhe/src/core_crypto/entities/compressed_modulus_switched_lwe_ciphertext.rs b/tfhe/src/core_crypto/entities/compressed_modulus_switched_lwe_ciphertext.rs index b7ed70bc05..71bac90c30 100644 --- a/tfhe/src/core_crypto/entities/compressed_modulus_switched_lwe_ciphertext.rs +++ b/tfhe/src/core_crypto/entities...
5
5
0
[{"id": "G0", "claim": "In CompressedModulusSwitchedMultiBitLweCiphertext's is_conformant, ct_params could also be destructured instead of being accessed field by field.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The field is named ms_decomp...
null
zama-ai__tfhe-rs__3059
zama-ai/tfhe-rs
3,059
defect
e2063c8ef4440bd1a9196d06bf8ac85112a107c2
11989f8f4d82a5fea236d3dcd967bbf685bfb059
Am/chore/specialized u128 decomp fix
<!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/zama-ai/tfhe-rs/3059) <!-- Reviewable:end -->
diff --git a/tfhe/src/core_crypto/algorithms/test/mod.rs b/tfhe/src/core_crypto/algorithms/test/mod.rs index 6df987a470..1572077181 100644 --- a/tfhe/src/core_crypto/algorithms/test/mod.rs +++ b/tfhe/src/core_crypto/algorithms/test/mod.rs @@ -383,15 +383,13 @@ pub const FFT_U128_PARAMS: FftTestParams<u128> = FftTestPar...
2
2
0
[{"id": "G0", "claim": "There could be a doc comment somewhere in the fft128_u128 ggsw decomposition code linking to the bnaf paper.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A comment should explain why the specific u128 value in test_decomp...
null
zama-ai__tfhe-rs__3068
zama-ai/tfhe-rs
3,068
defect
f9c2a5d423b5f1f40a2d104128303173c680fe93
2dbf7df00667433c765773cf810f442583d50a9a
Ns/chore/compact list conformance
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description Small tweaks to compact list conformance: - Detect degree in compact list conformance. Before this the compact list conformance params took th...
diff --git a/tfhe/docs/fhe-computation/data-handling/serialization.md b/tfhe/docs/fhe-computation/data-handling/serialization.md index 8bb99c051a..3c709cbdc9 100644 --- a/tfhe/docs/fhe-computation/data-handling/serialization.md +++ b/tfhe/docs/fhe-computation/data-handling/serialization.md @@ -105,15 +105,15 @@ fn main...
11
5
1
[{"id": "G0", "claim": "The degree for packed compact lists may use the wrong product — message_modulus * message_modulus where message_modulus * carry_modulus might be needed.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Introduce is_unpacked/forbi...
null
zama-ai__tfhe-rs__3225
zama-ai/tfhe-rs
3,225
defect
b7786afaf50a7c25b56215c520b4a23dda40401b
5bcf23a468445646fdd19c857abb85a8aa2d56d6
refactor(csprng): move Seed backward compat in csprng
XofSeed had its backward_compatibility in the csprng crate where it originates from. The Seed type did not, and core_crypto had to do extra work to have this backward compatibility. So we move the backward compatibility into csprng for consistency. closes https://github.com/zama-ai/tfhe-rs-internal/issues/1140 <...
diff --git a/tfhe-csprng/src/seeders/backward_compatibility/mod.rs b/tfhe-csprng/src/seeders/backward_compatibility/mod.rs index 0d61d936e0..e13aed2fc0 100644 --- a/tfhe-csprng/src/seeders/backward_compatibility/mod.rs +++ b/tfhe-csprng/src/seeders/backward_compatibility/mod.rs @@ -1,8 +1,13 @@ use tfhe_versionable::V...
2
1
0
[{"id": "G0", "claim": "The serde trait import/re-export added at the top of tfhe/src/core_crypto/commons/math/random/mod.rs looks like a stray rust-analyzer auto-import and should be moved elsewhere or removed (with call sites importing serde directly).", "category": "maintainability", "verdict": "supported", "priorit...
null
zama-ai__tfhe-rs__3283
zama-ai/tfhe-rs
3,283
defect
71f52b28535701dad4cbf40315516de54122f695
54f020be803bd7149e11ec3178695c6b75bea0ba
chore(backward_compatibility): add CompressedXofKeySet
:cold_face: <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/zama-ai/tfhe-rs/3283) <!-- Reviewable:end -->
diff --git a/tests/backward_compatibility/high_level_api.rs b/tests/backward_compatibility/high_level_api.rs index 8bab0afab2..d00d0926bf 100644 --- a/tests/backward_compatibility/high_level_api.rs +++ b/tests/backward_compatibility/high_level_api.rs @@ -3,9 +3,7 @@ use crate::{load_and_unversionize, TestedModule}; us...
3
2
1
[{"id": "G0", "claim": "The generator could define meta params from smaller toy parameters (using the ConvertParams impl in generate_1_5/src/utils.rs) instead of the full V1_5_META_PARAM_CPU_2_2 set, to reduce the size of the generated data files.", "category": "performance", "verdict": "supported", "priority": "P1", "...
null
zama-ai__tfhe-rs__3326
zama-ai/tfhe-rs
3,326
defect
8affbdbf926413bd359d100b8172ab90a56f134e
6f3b4e0ee45aedd5a133d08348068229e9af987f
chore(lint): add new rules around versionize_dispatch_enum
Renamed versions_variants_order into versionize_dispatch_enum because many rules were added to this linting file Added lint for - Enum name should end with Versions - Enum inner variant type should be XxxV0, .... - Where Xxx is the enum name like XxxVersions - Enum last inner variant type should be Xxx - Wh...
diff --git a/tfhe-zk-pok/Cargo.toml b/tfhe-zk-pok/Cargo.toml index b757b81d7f..0757e38e49 100644 --- a/tfhe-zk-pok/Cargo.toml +++ b/tfhe-zk-pok/Cargo.toml @@ -41,3 +41,8 @@ harness = false [[bench]] name = "pke_v2" harness = false + +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = [ + 'cfg(dylint_li...
17
13
2
[{"id": "G0", "claim": "Fourier128MultiBitLweBootstrapKeyVersions has only a V0 so it was incorrectly named; rename the enum as the lint suggests instead of adding an allow.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment at the all...
null
zama-ai__tfhe-rs__3367
zama-ai/tfhe-rs
3,367
defect
1a7537dd59064e631949347724ed8e05f932d30f
23faaa4a0dbec41e341bee50f6cd9a67310c7408
fix: CompactCiphertextList expansion when params are KS32
The expansion was still PBS-KS/KS-PBS only, which made the expand method fail some conformance check <!-- Reviewable:start --> - - - This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/zama-ai/tfhe-rs/3367) <!-- Reviewable:e...
diff --git a/tfhe/src/core_crypto/entities/lwe_compact_ciphertext_list.rs b/tfhe/src/core_crypto/entities/lwe_compact_ciphertext_list.rs index 200d281a79c..966017e21a9 100644 --- a/tfhe/src/core_crypto/entities/lwe_compact_ciphertext_list.rs +++ b/tfhe/src/core_crypto/entities/lwe_compact_ciphertext_list.rs @@ -356,7 +...
4
1
0
[{"id": "G0", "claim": "The test call sites should get the atomic pattern kind from the params (e.g. via an atomic_pattern() accessor) instead of hard-coding AtomicPatternKind::Standard(...) around the PBS order.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
zama-ai__tfhe-rs__3391
zama-ai/tfhe-rs
3,391
defect
195ca69e7a7c9596516f7316371d36155425a412
76777d0e726e60c6f915bba672f54eca93ed6c3f
chore: add deserialization tests with corrupted inputs
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description This PR adds a test that runs known corrupted ct lists to check they are correctly deserialized (meaning errors are caught but does not trigger...
diff --git a/.github/workflows/aws_corrupted_inputs_tests.yml b/.github/workflows/aws_corrupted_inputs_tests.yml new file mode 100644 index 0000000000..80f714df8d --- /dev/null +++ b/.github/workflows/aws_corrupted_inputs_tests.yml @@ -0,0 +1,105 @@ +# Run corrupted inputs deserialization tests +name: aws_tfhe_corrupte...
5
5
0
[{"id": "G0", "claim": "It would be worth printing progress so one can see up to where a compact list gets, given most inputs likely won't make it past deserialization, and likewise for the proven list handling.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cla...
null
zama-ai__tfhe-rs__3458
zama-ai/tfhe-rs
3,458
defect
74869f5e2f429a484f7f9191e52c103fb8e638c1
3b62cac592e3a443b47d4ca7553e502ce838e3b4
Ns/feat/rerand compact list
<!-- Feel free to delete the template if the PR (bumping a version e.g.) does not fit the template --> closes: _please link all relevant issues_ ### PR content/description Adds proven ciphertext lists re_randomization. The re_randomization is done on the high level list. This means that only one seed is drawn f...
diff --git a/tfhe/docs/fhe-computation/advanced-features/rerand.md b/tfhe/docs/fhe-computation/advanced-features/rerand.md index 47c7759635..5ae448c470 100644 --- a/tfhe/docs/fhe-computation/advanced-features/rerand.md +++ b/tfhe/docs/fhe-computation/advanced-features/rerand.md @@ -97,6 +97,81 @@ pub fn main() { } ``...
12
12
2
[{"id": "G0", "claim": "Re-randomizing a proven compact list before verifying its proof (the standalone HL re_randomize followed by verify/expand) may not work as is.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The zk-gated imports and tests of c...
null
zapier__zapier-platform__1000
zapier/zapier-platform
1,000
defect
cc6bdb230ea7460168c48d99115b553c3969f8d4
2d8769201477b36518b15180df7984233f6612f3
fix(core): PDE-6038 trim newline and whitespaces from request header
Trim newline and whitespaces from the key/values of the request headers using a beforeMiddleware. This runs after the app specific before middleware, so headers are always ensured to be sanatized
diff --git a/packages/cli/src/tests/utils/build.js b/packages/cli/src/tests/utils/build.js index 82a75e26d..15c300bd8 100644 --- a/packages/cli/src/tests/utils/build.js +++ b/packages/cli/src/tests/utils/build.js @@ -59,7 +59,7 @@ describe('build (runs slowly)', function () { smartPaths.filter((p) => p.endsWith('....
2
2
0
[{"id": "G0", "claim": "The default push of sanitizeHeaders inside createRequestClient is unnecessary because both callers already pass it in the befores argument and both set skipDefaultMiddle to true, so it should be removed.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"...
null
zapier__zapier-platform__1016
zapier/zapier-platform
1,016
defect
b4d3ce7f16f00f9ae1f5e087a944b6fe4e50c5c6
e868537e30370c39fdba9b9343e6c330b1407c8d
feat(core) PDE-6079: add middleware to fetch stashed bundle
Add new app before middleware that gets a stashed key from the inputs, if present if will attempt to fetch the stashed bundle and inject it into the app. Note: Meant to be released after v17 **New File Added**: `app-middlewares/before/fetch-stashed-bundle.js`: the new middleware for fetching stashed bundles an...
diff --git a/packages/core/src/app-middlewares/before/fetch-stashed-bundle.js b/packages/core/src/app-middlewares/before/fetch-stashed-bundle.js new file mode 100644 index 000000000..f576adeef --- /dev/null +++ b/packages/core/src/app-middlewares/before/fetch-stashed-bundle.js @@ -0,0 +1,49 @@ +'use strict'; + +const f...
2
2
1
[{"id": "G0", "claim": "Using an empty object as the default value for '_zapier.event.stashedBundleKey' will always evaluate as truthy, so the subsequent conditional check always passes; use undefined instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
zapier__zapier-platform__1032
zapier/zapier-platform
1,032
defect
2cd98d1a404a7e9acbe1846c25244edb6769f67b
00798776d13b8ba636fb10a6e30938bfa10e94a0
PDE-6149 fix(core): internalize flag that enables/disable `{{curlies}}` replacement, disable `{{curlies}}` for Raw Requests
<!-- title should be in the format of: workType(area): release notes summary where: `workType` is one of (which correspond to semver release levels): * fix * feat * BREAKING CHANGE less common (but valid) options: * build * ci * chore * docs * perf * refac...
diff --git a/packages/core/src/constants.js b/packages/core/src/constants.js index beb1d84dc..20e41fbb9 100644 --- a/packages/core/src/constants.js +++ b/packages/core/src/constants.js @@ -23,7 +23,12 @@ const RENDER_ONLY_METHODS = [ 'authentication.oauth1Config.authorizeUrl', ]; -const REQUEST_OBJECT_SHORTHAND_O...
3
2
0
[{"id": "G0", "claim": "The `isShorthand` flag in REQUEST_OBJECT_SHORTHAND_OPTIONS isn't referenced anywhere and can be removed (the reviewer also floats a more clearly named internal symbol like IS_INTERNAL_SHORTHAND as an alternative).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope"...
null
zapier__zapier-platform__1034
zapier/zapier-platform
1,034
defect
57b844e2db34c6cbc94d83dc0368053e47518b00
8557de2ead73a553647a4ac093862f2b507e5ccf
PDE-6145 fix(core): `{{curlies}}` in `requestTemplate` should be replaced
<!-- title should be in the format of: workType(area): release notes summary where: `workType` is one of (which correspond to semver release levels): * fix * feat * BREAKING CHANGE less common (but valid) options: * build * ci * chore * docs * perf * refac...
diff --git a/packages/core/src/http-middlewares/before/prepare-request.js b/packages/core/src/http-middlewares/before/prepare-request.js index 882ec1000..a9ce050ab 100644 --- a/packages/core/src/http-middlewares/before/prepare-request.js +++ b/packages/core/src/http-middlewares/before/prepare-request.js @@ -148,33 +148...
2
1
0
[{"id": "G0", "claim": "Leftover curlies after one-pass replacement are handled inconsistently (left as-is in headers, replaced with an empty string in query params); the author asks not to change this behavior in this PR because it is out of scope.", "category": "correctness", "verdict": "uncertain", "priority": "P2",...
null
zapier__zapier-platform__1048
zapier/zapier-platform
1,048
defect
b8c831700d34ed08d982b3dd7f0f28bdb3011c4a
5586c288a17197a50dec7db87640d8ca7f7c768e
cli(feat) PDE-6200 Convert: Accept definition as alternative to reading from existing UI app
This change allows us to use `zapier convert` to take an (AI generated) JSON definition for a non-existing Platform UI (Visual Builder) integration, and generate the code for a Platform CLI integration. It moves `integrationId` from a positional argument to an optional flag, and adds `definition`, `title` and `descr...
diff --git a/packages/cli/docs/cli.md b/packages/cli/docs/cli.md index a10a38661..5538d3ae5 100644 --- a/packages/cli/docs/cli.md +++ b/packages/cli/docs/cli.md @@ -105,7 +105,7 @@ Note: this is similar to `zapier migrate` but different in that this is temporar > Convert a Visual Builder integration to a CLI integra...
1
1
0
[{"id": "G0", "claim": "Add an example of what the definition JSON should look like below the flags in the convert command docs (e.g. in a collapsed section) to make it easier for external users to take advantage of the new --json option.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope":...
null
zapier__zapier-platform__1050
zapier/zapier-platform
1,050
defect
861dce16c252a64d34cec9694a589c909321d908
497e179815f9504878816e3a6fc3fb00200fae93
feat(core): PDE-6179 add before middleware to fetch stashed bundle.
### Summary When input bundles exceed AWS Lambda size limits, they will be encrypted and stored in S3, then automatically decrypted when retrieved. This middleware detects encrypted bundles and decrypts them using a one-time secret, allowing integrations to handle large payloads without code changes. ### Key Change...
diff --git a/packages/cli/src/tests/utils/build.js b/packages/cli/src/tests/utils/build.js index 0f80dce17..d96092a75 100644 --- a/packages/cli/src/tests/utils/build.js +++ b/packages/cli/src/tests/utils/build.js @@ -59,7 +59,7 @@ describe('build (runs slowly)', function () { smartPaths.filter((p) => p.endsWith('....
7
7
2
[{"id": "G0", "claim": "fetchStashedBundle must run before addAppContext in the befores array because addAppContext uses the bundle.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The withRetry helper duplicated from create-response-stasher.js shoul...
null
zapier__zapier-platform__1070
zapier/zapier-platform
1,070
defect
89c86ca1d000826dc21f7b14a7a7351dd5e10b72
5a197483815f76b5512947554dd9e70ad260d80c
PDE-6286 fix(cli,core): improve error messages on `zapier build`
<!-- title should be in the format of: workType(area): release notes summary where: `workType` is one of (which correspond to semver release levels): * fix * feat * BREAKING CHANGE less common (but valid) options: * build * ci * chore * docs * perf * refac...
diff --git a/packages/cli/src/utils/build.js b/packages/cli/src/utils/build.js index 62357c333..a21deae53 100644 --- a/packages/cli/src/utils/build.js +++ b/packages/cli/src/utils/build.js @@ -553,6 +553,11 @@ const testBuildZip = async (zipPath) => { `You may have to add it to ${colors.bold.underline('inc...
1
1
0
[{"id": "G0", "claim": "The comment the pull request added has a grammar error and should read \"Hide the unzipped temporary directory\" instead of \"Hide the unzip tempoary directory\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zapier__zapier-platform__1077
zapier/zapier-platform
1,077
defect
aa42c0003798fcd2824620fe471de8746a2b35f0
f46332a369503a7d9aa52b5f383f55a53e3e1e5c
feat(core) Export console from zapier-platform-core [PDE-6338]
**Jira:** https://zapierorg.atlassian.net/browse/PDE-6339 This PR implements the ability to import `console` directly from `zapier-platform-core`, eliminating the need to pass around the `z` object just for logging. ## Changes ### Before ```javascript // Had to use z.console everywhere const perform = (z, b...
diff --git a/packages/core/index.js b/packages/core/index.js index 3f4e46493..58ab1c246 100644 --- a/packages/core/index.js +++ b/packages/core/index.js @@ -1,4 +1,5 @@ const zapier = require('./src'); zapier.version = require('./package.json').version; zapier.tools = require('./src/tools/exported'); +zapier.console...
7
6
3
[{"id": "G0", "claim": "Don't create a `ConsoleSingleton` class; instead use `createLoggerConsole` to create the single console instance shared between `z.console` and the exported `console`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The no-op stub ...
null
zapier__zapier-platform__1082
zapier/zapier-platform
1,082
defect
aa42c0003798fcd2824620fe471de8746a2b35f0
f0f89eee9c7ec17c3244b186b0e167995379a631
feat(core, schema): Add search pagination support
<!-- title should be in the format of: workType(area): release notes summary where: `workType` is one of (which correspond to semver release levels): * fix * feat * BREAKING CHANGE less common (but valid) options: * build * ci * chore * docs * perf * refac...
diff --git a/packages/core/src/checks/index.js b/packages/core/src/checks/index.js index b774e3330..6a301b99b 100644 --- a/packages/core/src/checks/index.js +++ b/packages/core/src/checks/index.js @@ -1,7 +1,7 @@ module.exports = { createIsObject: require('./create-is-object'), - searchIsArray: require('./search...
7
6
1
[{"id": "G0", "claim": "The check module should be renamed to searchIsArrayOrEnvelope (file search-is-array-or-envelope.js, export searchIsArrayOrEnvelope) since the pull request accepts a paginated response envelope, not just an object.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope"...
null
zapier__zapier-platform__1085
zapier/zapier-platform
1,085
defect
2591ff5de9a51c1d8449ba07675fd7403e872594
b25da21043824f8c0462c6cf39b920c29d762025
feat(core) PDE-6323: improve decryptBundleWithSecret
https://zapierorg.atlassian.net/browse/PDE-6323 ## Problem Large bundles being stashed to S3 were consuming significant memory space. The current implementation handles the large bundle data as uncompressed JSON strings that are loaded into memory several times, which is inefficient. ## Solution This PR introd...
diff --git a/packages/core/src/tools/bundle-encryption.js b/packages/core/src/tools/bundle-encryption.js index 1a4deb5cf..e452e02de 100644 --- a/packages/core/src/tools/bundle-encryption.js +++ b/packages/core/src/tools/bundle-encryption.js @@ -2,7 +2,7 @@ const crypto = require('crypto'); const fernet = require('f...
6
5
0
[{"id": "G0", "claim": "A real decompression error would be silently swallowed by the fallback path and surface only as a JSON parse error, so the two failure modes cannot be told apart in the logs.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The...
null
zapier__zapier-platform__1151
zapier/zapier-platform
1,151
defect
eef3126a43f70131fff230f837da5b3bf36624b8
3e5fa6610d63197565bc4890301bb03ce1034bf8
feature(core): v18, Add throwForThrottling middleware with backward-compatible default behavior (PDE-5232)
Adds new `throwForThrottling` middleware that handles 429 responses before `afterResponse` middleware runs, preventing accidental suppression of throttling responses that could interfere with proper rate limiting. ## Key Changes - **New middleware**: `throwForThrottling` throws `ThrottledError` for 429 responses ...
diff --git a/packages/cli/README.md b/packages/cli/README.md index a356c9577..089388c5a 100644 --- a/packages/cli/README.md +++ b/packages/cli/README.md @@ -8,6 +8,52 @@ For documentation: - [CLI Reference](https://github.com/zapier/zapier-platform/blob/main/packages/cli/docs/cli.md) - [Schema Reference](https://gith...
6
6
5
[{"id": "G0", "claim": "The pull request's failing tests (the CI failures present when the PR opened) should be fixed.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The Error Response Handling documentation added to packages/cli/README.md should be rem...
null
zapier__zapier-platform__1202
zapier/zapier-platform
1,202
defect
c9b87c328af3c21eebc20aab9a3d180637a2c336
fd9baea158b638002cdc6a501268b84992a852bd
PDE-6708 fix(cli): drop-in replacement for `decompress`
<!-- title should be in the format of: workType(area): release notes summary where: `workType` is one of (which correspond to semver release levels): * fix * feat * BREAKING CHANGE less common (but valid) options: * build * ci * chore * docs * perf * refac...
diff --git a/packages/cli/package.json b/packages/cli/package.json index f7abff98a..e8b09b01a 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -50,7 +50,7 @@ "cli-table3": "0.6.5", "colors": "1.4.0", "debug": "4.4.1", - "decompress": "4.2.1", + "decompress-unzip": "4.0.1", ...
9
6
2
[{"id": "G0", "claim": "The comment misspells 'requires Administrator privilege' ('priviledge'), and the reviewer's suggestion block should be applied.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The header comment reads 'we only depends on dec...
null
zapier__zapier-platform__1216
zapier/zapier-platform
1,216
defect
0a0f5ce87efa55d7f970f2b96e9b2278e170bd29
cac7e7db266a907dafaf6d93fc78f8602997ec13
feat(cli) PDE-6755 - CLI build to respect the integration's package manager
Instead of defaulting to `npm install` for the install step of `zapier build` (or `zapier push`), we will identify which package manager your integration uses by : 1. Checking package.json.packageManager for `npm@X, yarn@X, pnpm@X, or bun@X` 2. If it is not defined, fall back to reviewing the lock files in this order...
diff --git a/packages/cli/docs/cli.md b/packages/cli/docs/cli.md index 7d41162b7..c9e93bc8e 100644 --- a/packages/cli/docs/cli.md +++ b/packages/cli/docs/cli.md @@ -44,7 +44,8 @@ This command is typically followed by `zapier upload`. **Flags** * `--disable-dependency-detection` | Disable "smart" file inclusion. By ...
6
4
2
[{"id": "G0", "claim": "Rename the `skipNpmInstall` variable in packages/cli/src/oclif/commands/build.js to `skipDepInstall` so it matches the renamed `--skip-dep-install` flag.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `should build in...
null
zapier__zapier-platform__1225
zapier/zapier-platform
1,225
defect
7bbb3ed969509f6a96238a191f2f911d032de16f
dc08b5cf0957a0446dd79f20a64b65d014b5a910
fix(cli): Fix package manager detection (PDE-6768)
## Fix package manager detection in monorepos ### Problem When running `zapier build` from a nested package in a monorepo, the CLI only checked the current directory for lock files (`pnpm-lock.yaml`, `yarn.lock`) and the `packageManager` field in `package.json`. This caused incorrect package manager detection whe...
diff --git a/packages/cli/src/tests/utils/package-manager.js b/packages/cli/src/tests/utils/package-manager.js index f0f0bb912..43629cdcb 100644 --- a/packages/cli/src/tests/utils/package-manager.js +++ b/packages/cli/src/tests/utils/package-manager.js @@ -178,5 +178,65 @@ describe('package manager utils', () => { ...
2
2
2
[{"id": "G0", "claim": "The new upward traversal should handle the JSON parsing error when reading package.json (wrap the parse in try/catch and treat it as null) instead of letting a malformed file crash detection.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G...
null
zapier__zapier-platform__1247
zapier/zapier-platform
1,247
defect
d22c8d552b02262955d780c4c49771e794e1de53
9d7b90ff6f98a353e008331ba60670bf4f605e02
fix(legacy-scripting-runner): Add explicit form-data dependency to work with pnpm strict module isolation
With the switch to pnpm as the new package manager in this [PR](https://github.com/zapier/zapier-platform/pull/1204), the legacy-scripting-runner package has to explicitly declare its dependencies for cases where it directly uses undeclared dependencies through another dependency. It uses the `form-data` directly [h...
diff --git a/packages/core/src/tools/create-legacy-scripting-runner.js b/packages/core/src/tools/create-legacy-scripting-runner.js index c8a6c58f8..6e55bd14c 100644 --- a/packages/core/src/tools/create-legacy-scripting-runner.js +++ b/packages/core/src/tools/create-legacy-scripting-runner.js @@ -43,10 +43,14 @@ const c...
2
2
1
[{"id": "G0", "claim": "The warning should be printed only when legacy-scripting-runner is installed but fails to load, not when it is simply not installed, since many CLI-native apps don't require it and that is a normal case.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"...
null
zapier__zapier-platform__1272
zapier/zapier-platform
1,272
defect
5df2e17897d0e1ee52b0a3c6c7cbc588c1732089
bf27df82b50a5ad5179f0c3c1f85d1224e63b73c
PDE-5744 feat(cli): add line item support to `invoke` command
This PR adds line item support to the `invoke` command. Line items are fields with a `children` property that represent structured, repeating data — like rows in a spreadsheet or items in an order. Each child field has its own type (string, integer, number, boolean, etc.), and the parent field's value is an array of...
diff --git a/packages/cli/src/oclif/commands/invoke/action.js b/packages/cli/src/oclif/commands/invoke/action.js index fe67b2e26..67f192ba9 100644 --- a/packages/cli/src/oclif/commands/invoke/action.js +++ b/packages/cli/src/oclif/commands/invoke/action.js @@ -1,4 +1,5 @@ const debug = require('debug')('zapier:invoke'...
2
1
0
[{"id": "G0", "claim": "It might be convenient for users to have a way to opt into also being prompted for optional fields when adding a line item row, rather than having to create the row and then edit it to add optional fields, though this could be a nice-to-have rather than a need.", "category": "design", "verdict":...
null
zapier__zapier-platform__361
zapier/zapier-platform
361
defect
69097765d3f6a13a8aa5c755a9824f170b0ccc52
571e8fd5d2d880211cb8e3628f60c38d1268e65e
SUPPORTESC-148 fix(core): stashFile no longer throws 'source.on' error when a request that uses await is passed in
This Pull Request fixes [this issue](https://github.com/zapier/zapier-platform/issues/169) Previously, when await was used on a request that was passed to z.stashFile like so: ``` const x = await z.request(...); return z.stashFile(x); ``` formData would throw the `source.on is not a function`. This PR fixes...
diff --git a/packages/core/src/tools/create-file-stasher.js b/packages/core/src/tools/create-file-stasher.js index be2f86bac..1b40e1511 100644 --- a/packages/core/src/tools/create-file-stasher.js +++ b/packages/core/src/tools/create-file-stasher.js @@ -105,70 +105,69 @@ const createFileStasher = (input) => { ret...
1
1
0
[{"id": "G0", "claim": "The newly added `var newBufferStringStream = stream;` should be `let` (use block-scoped let instead of var).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
zapier__zapier-platform__365
zapier/zapier-platform
365
defect
d9630bb2749d212d689a8abc48395956de26cc22
bbb4cfe197e871d13eb33a98e14b6d0f0e9ef3f5
PDE-2333: fix(legacy-scripting-runner): duplicate API Key headers part 2
<!-- title should be in the format of: workType(area): release notes summary where: `workType` is one of (which correspond to semver release levels): * fix * feat * BREAKING CHANGE less common (but valid) options: * build * ci * chore * docs * perf * refac...
diff --git a/packages/legacy-scripting-runner/CHANGELOG.md b/packages/legacy-scripting-runner/CHANGELOG.md index 263e05eb0..6b266c72c 100644 --- a/packages/legacy-scripting-runner/CHANGELOG.md +++ b/packages/legacy-scripting-runner/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.7.15 + +- :bug: Fix another edge case that can lead t...
2
2
1
[{"id": "G0", "claim": "After `movie_pre_poll_double_headers` runs, the final headers should be deduplicated so they contain only the single entry `x-api-key: three` instead of keeping both `x-api-key: two` and `X-API-KEY: three`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null