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
Kludex__uvicorn__2375
Kludex/uvicorn
2,375
defect
d79f285184404694c77f7ca649858e7488270cf7
01d14905c19ce741ced4dabf4909f38a37e852d6
close request connection if h11 sets client state as MUST_CLOSE
<!-- Thanks for contributing to Uvicorn! 💚 Given this is a project maintained by volunteers, please read this template to not waste your time, or ours! 😁 --> # Summary Fixes: Issue- #2238 # Checklist - [x] I understand that this PR may be closed in case there was no previous discussion. (This doesn't ap...
diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py index 45ccc1d23..7dbb1edc0 100644 --- a/tests/protocols/test_http.py +++ b/tests/protocols/test_http.py @@ -61,6 +61,20 @@ CONNECTION_CLOSE_REQUEST = b"\r\n".join([b"GET / HTTP/1.1", b"Host: example.org", b"Connection: close", b"", b""]) +REQ...
4
2
1
[{"id": "G0", "claim": "The test constant added by this PR is misspelled `REQEUST_AFTER_CONNECTION_CLOSE` and should be renamed to `REQUEST_AFTER_CONNECTION_CLOSE`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test passes even without ...
null
Kludex__uvicorn__2408
Kludex/uvicorn
2,408
defect
8efa41c7da41f26c893204ff3fd65c0d06aa74ce
52ff0c112dc2d5c0441b5369e8bbad67d59af9b5
Fix 0.30.4 issue with connection close header
<!-- Thanks for contributing to Uvicorn! 💚 Given this is a project maintained by volunteers, please read this template to not waste your time, or ours! 😁 --> # Summary When `connection: close` header is passed to uvicorn server, `RequestResponseCycle`'s `receive` method goes into waiting state. Resulting in requ...
diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py index db196d99c..fb23294a8 100644 --- a/tests/protocols/test_http.py +++ b/tests/protocols/test_http.py @@ -998,7 +998,18 @@ async def test_return_close_header(http_protocol_cls: HTTPProtocol): async def test_close_connection_with_multiple_re...
3
3
1
[{"id": "G0", "claim": "The pre-existing test_close_connection_with_multiple_requests test was fine and should not be modified by this pull request; revert the diff to it back to its original state.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The tes...
null
Kludex__uvicorn__2430
Kludex/uvicorn
2,430
defect
7dc027d5fb980c7bd52ab4611f3109a796cec974
e4567426ba0cd4bf11503bf923e2d55670212ede
feat(server): log warning when max request limit is exceeded
<!-- Thanks for contributing to Uvicorn! 💚 Given this is a project maintained by volunteers, please read this template to not waste your time, or ours! 😁 --> # Summary ref: https://github.com/encode/uvicorn/discussions/2412 We can't exactly limit the number of requests https://github.com/encode/uvicorn/pull/2...
diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py index 60768346a..fff73d447 100644 --- a/tests/protocols/test_http.py +++ b/tests/protocols/test_http.py @@ -1,14 +1,18 @@ from __future__ import annotations +import asyncio import logging import socket import threading import time from typ...
1
1
0
[{"id": "G0", "claim": "The new limit-max-requests test does not belong in tests/protocols/test_http.py because it exercises config/server behavior; Kludex asks for a better place for it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Kludex__uvicorn__2480
Kludex/uvicorn
2,480
defect
6ffaaf7c2f78274889da1572832dd307a8b117d3
b89353b145f8d03cf44832cca1cd6844f2d1aabd
Add support for `[*]` in trusted hosts
# Summary Fixed trusted host parsing for always trust case. This PR will fix allowing all networks upon passing `--forwarded-allow-ips` as `*` from gunicorn with uvicorn as a worker class. The fix ensures that gunicorn integration and uvicorn as a standalone application will work fine for storing and validating ...
diff --git a/tests/middleware/test_proxy_headers.py b/tests/middleware/test_proxy_headers.py index a2cbde775..21617c8cf 100644 --- a/tests/middleware/test_proxy_headers.py +++ b/tests/middleware/test_proxy_headers.py @@ -65,7 +65,7 @@ def make_httpx_client( "::11.22.33.44", # This is a dual address ] _TRUSTED_I...
2
2
1
[{"id": "G0", "claim": "The comment referencing gunicorn should be removed, since the explanation applies on the uvicorn context as well.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "An assertive test case for the trusted host `[\"*\"]` should...
null
Kludex__uvicorn__2598
Kludex/uvicorn
2,598
defect
4fdfec4adf1ba6da5e65c8422321e203b6050052
1e4d165537fd681b6d55df51bf1ab44580f3e75d
Don't include `cwd()` when non-empty `--reload-dirs` is passed
<!-- Thanks for contributing to Uvicorn! 💚 Given this is a project maintained by volunteers, please read this template to not waste your time, or ours! 😁 --> # Summary <!-- Write a small summary about what is happening here. --> This PR fixes the behavior of `--reload-dir` to match the documentation. The do...
diff --git a/tests/supervisors/test_reload.py b/tests/supervisors/test_reload.py index bd40e7230..350722acf 100644 --- a/tests/supervisors/test_reload.py +++ b/tests/supervisors/test_reload.py @@ -306,24 +306,21 @@ def test_watchfiles_no_changes(self) -> None: @pytest.mark.skipif(WatchFilesReload is None, reason="...
4
2
0
[{"id": "G0", "claim": "To correctly match the documentation, the code that appends Path.cwd() when config.reload_dirs is empty should be kept (e.g. `if not config.reload_dirs: self.reload_dirs.append(Path.cwd())`).", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
Kludex__uvicorn__2723
Kludex/uvicorn
2,723
defect
9b1c6c45ed7fe8bd485ddad475f0feff03971af7
27e85f83b3991e76d32048393a4f42bb6f673d5e
Support Python 3.14
Waiting for uvloop to cut a release: https://github.com/MagicStack/uvloop/pull/692
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9b6027b66..4c4d5a491 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] + ...
1
1
0
[{"id": "G0", "claim": "The CI matrix should also run the free-threaded Python 3.14 build (\"3.14t\") alongside the regular 3.14 entry.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Kludex__uvicorn__2829
Kludex/uvicorn
2,829
defect
38731c31d159aec50264ed3c5888ce4a08dd1ac6
0a152cd7672e94c797fab05d01b826a8fabdfa00
🐛 Emit `http.disconnect` ASGI `receive()` event on server shutting down for streaming responses
<!-- Thanks for contributing to Uvicorn! 💚 Given this is a project maintained by volunteers, please read this template to not waste your time, or ours! 😁 --> # Summary <!-- Write a small summary about what is happening here. --> Make Uvicorn emit `http.disconnect` ASGI `receive()` event on server shutting d...
diff --git a/tests/protocols/test_http.py b/tests/protocols/test_http.py index 16b47cd0e..f346bea8f 100644 --- a/tests/protocols/test_http.py +++ b/tests/protocols/test_http.py @@ -739,6 +739,79 @@ async def test_shutdown_during_idle(http_protocol_cls: type[HTTPProtocol]): assert protocol.transport.is_closing() ...
1
1
1
[{"id": "G0", "claim": "Make the new shutdown behavior configurable, because since uvicorn 0.43.0 graceful shutdown (e.g. from --limit-max-requests) now actually cancels all in-flight requests instead of letting them finish naturally, which regressed mabrowning's deployment.", "category": "design", "verdict": "supporte...
null
Kludex__uvicorn__2859
Kludex/uvicorn
2,859
defect
02bed6f8c38e74f684bb0e572977a9bfdc1f6fea
9ee6f60763c79af416d4bd067b736ff8737524ed
Use native `context` parameter for `create_task` on Python 3.11+
## Summary Both HTTP protocol implementations (`h11_impl.py` and `httptools_impl.py`) use `contextvars.Context().run(loop.create_task, ...)` to start ASGI tasks with a fresh context. Python 3.11 added a `context=` parameter to `create_task()`, which avoids the extra indirection through `Context.run()`. This has been ...
diff --git a/tests/benchmarks/http.py b/tests/benchmarks/http.py index 39e81fa7a..fb41547ba 100644 --- a/tests/benchmarks/http.py +++ b/tests/benchmarks/http.py @@ -131,7 +131,7 @@ def __init__(self) -> None: self._tasks: list[asyncio.Task[Any]] = [] self._later: list[MockTimerHandle] = [] - def ...
2
1
0
[{"id": "G0", "claim": "The coverage pragma labels read backwards: the branch taken on Python >= 3.11 is tagged py-lt-311.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Remove the newly added '# pragma: full coverage' on the exclude_dir check in wa...
null
Kludex__uvicorn__2888
Kludex/uvicorn
2,888
defect
8d397c73191b49c6d5280098d7c09dbe474e00bf
f83e727f9ef6ceb7b946ceeec66f8a25877bc5c8
Implement websocket keepalive pings for websockets-sansio
## Summary - Adds server-side keepalive (ping/pong) to the websockets-sansio implementation, which previously ignored `ws_ping_interval` and `ws_ping_timeout`. Fixes #2883 for the sansio path. - Uses two `asyncio.TimerHandle` primitives (one for the ping interval, one for the pong deadline) instead of a long-running t...
diff --git a/tests/protocols/test_websocket.py b/tests/protocols/test_websocket.py index ed257a1ee..dda12c512 100644 --- a/tests/protocols/test_websocket.py +++ b/tests/protocols/test_websocket.py @@ -7,6 +7,7 @@ import httpx import pytest import websockets +import websockets.asyncio.client import websockets.client...
3
3
1
[{"id": "G0", "claim": "When ws_ping_timeout is None, send_keepalive_ping already schedules the next ping in its else branch while handle_pong still unconditionally calls schedule_ping on every matching pong, creating multiple active ping_timer handles per connection so ping cadence accelerates and timers accumulate.",...
null
Kludex__uvicorn__2903
Kludex/uvicorn
2,903
defect
3703339cdca520e51a66192fa54ee9bfa64ac1d1
d93050d60a6a16935ff330029c642cc74900ac7a
Preserve forwarded client ports in proxy headers middleware
## Summary - preserve client ports from trusted X-Forwarded-For entries in ProxyHeadersMiddleware - parse selected forwarded entries conservatively for IPv4 host:port and bracketed IPv6 [host]:port - keep _TrustedHosts.__contains__ focused on plain host matching by localizing port stripping to get_trusted_client_hos...
diff --git a/tests/middleware/test_proxy_headers.py b/tests/middleware/test_proxy_headers.py index 24a3feb51..3375b4561 100644 --- a/tests/middleware/test_proxy_headers.py +++ b/tests/middleware/test_proxy_headers.py @@ -1,9 +1,9 @@ from __future__ import annotations +import ipaddress from typing import TYPE_CHECKI...
2
1
1
[{"id": "G0", "claim": "Running every forwarded value through _parse_host_port inside _TrustedHosts.__contains__ changes trust semantics instead of only adding port support - literals like \"proxy:443\" no longer match configured literal entries and malformed bracketed values such as \"[2001:db8::1]:notaport\" are redu...
null
Kludex__uvicorn__362
Kludex/uvicorn
362
defect
545a2a10859165db016d02a641f0c30d07476af1
20f7620259c535c121433aedcba007ebade0f99c
Create ssl_context when Config.load
resolves #352 - Delayed loading `ssl_context` - Move `create_certfile_and_keyfile` fixture to `contest.py` for general using
diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 000000000..0c842ff7c --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,81 @@ +import pytest +import tempfile + + +CERTIFICATE = b"""-----BEGIN CERTIFICATE----- +MIIEaDCCAtCgAwIBAgIRAPeU748qfVOTZJ7rj5DupbowDQYJKoZIhvcNAQELBQAw +fTEeMBwGA1UEChMV...
1
1
0
[{"id": "G0", "claim": "The certfile_and_keyfile fixture could use `yield` (closing the files afterwards) rather than taking the `request` fixture with `request.addfinalizer`, and could be better named.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Kludex__uvicorn__566
Kludex/uvicorn
566
defect
0feb738378cf91107d6d856e5fa1c665bd17ce76
0a04dc20b709a1eb0529bb2c2a43a3ea40cf2271
Check that socket exists on shutdown
- Reverses the order during `Server.shutdown()` such that a server (which may have a reference to sockets) is closed first followed by a safe close of any remaining sockets. - Adds a test ensuring when binding to a socket (usually done in `main,py run()`) that `server.serve(sockets=[sock])` does not raise any exceptio...
diff --git a/setup.py b/setup.py index ec2447d55..4db0d93cc 100755 --- a/setup.py +++ b/setup.py @@ -13,8 +13,8 @@ def get_version(package): """ Return package version as listed in `__version__` in `init.py`. """ - path = os.path.join(package, '__init__.py') - init_py = open(path, 'r', encoding='ut...
1
1
0
[{"id": "G0", "claim": "Items in `sockets` cannot be `None` at this point, so the added `if socket != None` guard is unnecessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Kludex__uvicorn__597
Kludex/uvicorn
597
defect
09888315877caf5475e1ae7f561ebc82b43d2a94
93163412b67ff240881c5b81611555a903ae6693
Added asgi version and spec_version to scope
attempt at solving #578 Fixes #578
diff --git a/tests/test_main.py b/tests/test_main.py index 4d0da1b77..8b31393e7 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,6 +1,6 @@ +import asyncio import threading import time -import asyncio import requests diff --git a/uvicorn/protocols/http/h11_impl.py b/uvicorn/protocols/http/h11_impl.p...
2
2
2
[{"id": "G0", "claim": "scope[\"asgi\"][\"version\"] is hardcoded to \"2.1\" but per the ASGI spec it should carry the ASGI version (\"2.0\" or \"3.0\") matching the app interface, which the comment proposes to expose as a Config.asgi_version property.", "category": "correctness", "verdict": "supported", "priority": "P...
null
Kludex__uvicorn__646
Kludex/uvicorn
646
defect
7e55554a9f32a127ea3511fa2f55d1b47b66029d
0848cec8d7352ed09d9191818563628c1120d7da
Reload when other files than py are changes, small test maintenance
Fixes #528, superseds #550 Updates `statreload` so code reload is triggered when non-py file is changed (unless its `.dotted` file), making behaviour in sync with what `watchgod` reloader does. I've decided to use `@pytest.mark.parametrize` and include list of filenames which should trigger code reload. There's c...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 15ffc8d42..67020e200 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Unreleased * Use `watchgod`, if installed, for watching code changes. +* Reload application when any files in watched directories change, not just `.py` files. ## 0.11.3 diff --gi...
1
1
0
[{"id": "G0", "claim": "Use the shorter `Path(tmpdir) / name` syntax instead of `Path(os.path.join(str(tmpdir), name))` when building the touched-file paths in the statreload and watchgodreload tests.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Kludex__uvicorn__701
Kludex/uvicorn
701
defect
f6239169708adcf27433cb8d133e48f8835f0fa2
e46c974c9bb73c28e676052993845ed7f9fa11a3
Fix issues surrounding X-Forwarded-For header in ProxyHeadersMIddleware
Attempting to fix #700 - Returns `400` if the `X-Forwarded-For` header cannot be `ascii` decoded as (i believe) this is a client error rather than a server one. - ~~Takes the first value from the list of addresses rather than the last (while there's no actual standard for this header, both [MDN](https://developer.m...
diff --git a/tests/middleware/test_proxy_headers.py b/tests/middleware/test_proxy_headers.py index 8ed1e9d1f..eef8dec5a 100644 --- a/tests/middleware/test_proxy_headers.py +++ b/tests/middleware/test_proxy_headers.py @@ -28,3 +28,14 @@ def test_proxy_headers_no_port(): response = client.get("/", headers=headers) ...
2
2
1
[{"id": "G0", "claim": "Not sure about the PR's fix for the invalid bytes in the X-Forwarded-* headers; gunicorn decodes its headers as latin-1 and maybe uvicorn should mimic that approach.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "ProxyHeadersMid...
null
Kludex__uvicorn__818
Kludex/uvicorn
818
defect
1b32f9971ad4080c67e5779d519dec6b60d3ece6
1008c1e1059d5db60c019477527d580d4661908a
Support disabling default Server and Date headers
As described in the individual commit messages, this pull request adds configuration flags to control the default Server and Date headers. With these flags, the Server header can be entirely removed rather than overwritten, and the Date header can be suppressed in (the extremely rare) case that HTTP/1.1 requires an ori...
diff --git a/tests/test_default_headers.py b/tests/test_default_headers.py index b3c029efe8..b939d4e474 100644 --- a/tests/test_default_headers.py +++ b/tests/test_default_headers.py @@ -54,6 +54,25 @@ def test_override_server_header(): thread.join() +def test_disable_default_server_header(): + config = Con...
8
3
1
[{"id": "G0", "claim": "The RFC reference for the default-header behaviour should be written down in the pull request for future reference.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The continuous-integration run fails and the author should f...
null
Kludex__uvicorn__827
Kludex/uvicorn
827
defect
cca3c3e1968937bbd0cb366dcefc8b33dbac39b9
65445d60edc2e0da454a41588b03e6a406d2228e
Fix server not running with explicit hostname
Fixes #825 I'm not super happy with the try catch on the ip adresss but couldn't think of something else, so if someone has a better idea please share ! Not happy because I'm not sure it accounts for all potential use cases,
diff --git a/tests/test_main.py b/tests/test_main.py index 8b31393e7..1f9241a26 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -33,6 +33,31 @@ def install_signal_handlers(self): thread.join() +def test_run_hostname(): + class App: + def __init__(self, scope): + if scope["type"...
1
1
0
[{"id": "G0", "claim": "Delete the _IPKind enum and change _get_server_start_message to a keyword-only signature *, is_ipv6_message: bool = False, also changing the function body and usage.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
Kludex__uvicorn__837
Kludex/uvicorn
837
defect
d78394e31310bb60defca35f0c6b1104820cf687
08a92c059c55d5c3190f8a0a3555cecc4e51579d
Rework IPv6 support
Prompted by https://github.com/encode/uvicorn/issues/836#issuecomment-715975954 It looks like IPv6 support as added (or most likely _fixed_? I found #383 dating back from June 2019) into `0.12.2` to resolve #553. This was done via #803, which glossed over a small edge case leading to `host="localhost"` not working a...
diff --git a/docs/settings.md b/docs/settings.md index 617ac63ef..ba6c1d15f 100644 --- a/docs/settings.md +++ b/docs/settings.md @@ -11,7 +11,7 @@ equivalent keyword arguments, eg. `uvicorn.run("example:app", port=5000, reload= ## Socket Binding -* `--host <str>` - Bind socket to this host. Use `--host 0.0.0.0` to...
3
3
1
[{"id": "G0", "claim": "The ipv6 test case should use the loopback address ::1 instead of the unspecified address :: in both host and url.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In Config.bind_socket the local host/port aliases should be dropped...
null
Kludex__uvicorn__875
Kludex/uvicorn
875
defect
ce2ef45a9109df8eae038c0ec323eb63d644cbc6
144121ad265e4cad30ae1b516f8743041bb084d8
Add --factory flag to support factory-style application imports
Closes #492 This PR adds support for projects that don't expose an `app` instance directly, but rather an application factory. As per discussions in #822, this style is most typically preferred by some users to avoid side-effects at import time, which may be important for larger-size projects, and — but that's mo...
diff --git a/docs/index.md b/docs/index.md index ae89e0454..8c7f81773 100644 --- a/docs/index.md +++ b/docs/index.md @@ -158,6 +158,8 @@ Options: [default: TLSv1] --header TEXT Specify custom default HTTP response headers as a Na...
2
2
0
[{"id": "G0", "claim": "The --factory option help text in the docs has a typo: \"Teat\" should be \"Treat APP as an application factory\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The error message shown when APP looks like a factory could b...
null
Kludex__uvicorn__996
Kludex/uvicorn
996
defect
896788852ec104f51d014002549f4c2dca0e0705
309abd40e9b8ece9f6c67da4de5c90707a437e2f
Send disconnect event on connection lost for `wsproto`
Using uvicorn with wsproto implementation, if clients do not close websocket connections properly, no `exc` will be sent to `connection_lost` (see code below). As in the current version of uvicorn, this creates two issues: - apps will not receive `websocket.disconnect` events; - a zombie `run_asgi` (asyncio) task ...
diff --git a/uvicorn/protocols/websockets/wsproto_impl.py b/uvicorn/protocols/websockets/wsproto_impl.py index 6d15f8342a..af2361423d 100644 --- a/uvicorn/protocols/websockets/wsproto_impl.py +++ b/uvicorn/protocols/websockets/wsproto_impl.py @@ -62,8 +62,7 @@ def connection_made(self, transport): self.scheme ...
3
3
3
[{"id": "G0", "claim": "The pull request's changed behaviour — queuing a websocket.disconnect event when the connection is lost — is not covered by any test, and the maintainer states a test will be added before merging.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "...
null
Kobzol__cargo-pgo__52
Kobzol/cargo-pgo
52
defect
1c5ce96f3247e7c07701faae635ecc98ece0a0eb
7e4fdaae01b7a9277ca3a9852f77c75c67e33c6b
Add Docker image for `cargo-pgo`
Hey Jakub! Sorry for such a late PR! To deploy an image with your Docker Hub account, you may need to [generate an access token](https://docs.docker.com/security/for-developers/access-tokens/#create-an-access-token) and then add your account and token to this repo's secrets. I've tested the new workflow with a [t...
diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..f59ec20 --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +* \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..48b9bd3 --- /dev/null +++ b/.github/workflo...
5
3
1
[{"id": "G0", "claim": "BOLT installed from the Ubuntu `bolt-18` apt package may fail during instrumentation and sample gathering, as it did with earlier LLVM versions, so the reviewer asks whether this has been verified to work with LLVM 18.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope":...
null
Kobzol__cargo-pgo__57
Kobzol/cargo-pgo
57
defect
4f69cbba9772cc80c8421d37b189686eaca85dc0
d6f4193c3ffcc8f2955a8bde91c146f0594b2304
Use `target.rustflags` instead of `build.rustflags`
Fixes: https://github.com/Kobzol/cargo-pgo/issues/56
diff --git a/CHANGELOG.md b/CHANGELOG.md index 19cc955..bd37bfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +# Dev +## Changes + +- Use `target.rustflags` for passing PGO flags instead + of `build.rustflags` (https://github.com/Kobzol/cargo-pgo/issues/56). + This should make it less likely that PGO ...
1
1
1
[{"id": "G0", "claim": "The new assertion that the build stderr does not contain \"-Ctarget-cpu=native\" in test_override_build_rustflags_from_config makes the test fail on systems whose matching target.rustflags already set -Ctarget-cpu=native; the reviewer suggested asserting on a target cargo never applies, e.g. \"-...
null
Kobzol__cargo-pgo__75
Kobzol/cargo-pgo
75
defect
dd40875670fcf2b1cc15b63c72a973bfa12757cc
e602912f506529360190ad7ff55d9eb934fad237
add ability to override pgo path
This PR just adds the ability to override where the PGO directory is set. Closes: https://github.com/Kobzol/cargo-pgo/discussions/74
diff --git a/src/lib.rs b/src/lib.rs index 088d926..25f1793 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,7 +94,9 @@ fn get_rustc_info(field: &str) -> anyhow::Result<String> { /// Clears all files from the directory, and recreates it. fn clear_directory(path: &Path) -> std::io::Result<()> { - std::fs::remove_d...
1
1
0
[{"id": "G0", "claim": "Rename the new override option (override_pgo_directory / --override-pgo-path) to profiles_dir (--profiles-dir) in all commands to keep it shorter and make it explicit it refers to the profiles.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Koed00__django-q__466
Koed00/django-q
466
defect
07d0a8c0d11650cad97d0b51607499d14d329e2f
991cca58442a262f7e5018434fff8e6003f413cd
Add attempt_count to limit the number of times a filed task will be re-attempted
Limit the number of retries for a failed task. - add `` attempt_count = models.IntegerField(default=0)`` to Task model - add ``attempt_count`` to configuration - check value in ``cluster.save_task`` and acknowledge the task when ``attempt_count is > 0 and task.attempt_count == Conf.ATTEMPT_COUNT``
diff --git a/django_q/admin.py b/django_q/admin.py index a7484ce1..f40118e0 100644 --- a/django_q/admin.py +++ b/django_q/admin.py @@ -43,7 +43,7 @@ def retry_failed(FailAdmin, request, queryset): class FailAdmin(admin.ModelAdmin): """model admin for failed tasks.""" - list_display = ("name", "func", "starte...
1
1
1
[{"id": "G0", "claim": "Remove the attempt_count column from the FailAdmin list_display, since it always just shows the configured max tries and adds nothing until per-task attempt counts exist.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Koenkk__zigbee2mqtt__24338
Koenkk/zigbee2mqtt
24,338
defect
9ea11fac14433446950633f30f4c3310ab22e693
ac1a8609cc5bd2036183bb5415b8066c0d389370
fix!: Remove configuring group members through `configuration.yaml`
Docs: https://github.com/Koenkk/zigbee2mqtt.io/pull/3104
diff --git a/lib/extension/groups.ts b/lib/extension/groups.ts index 114774c35a..08023c232c 100644 --- a/lib/extension/groups.ts +++ b/lib/extension/groups.ts @@ -45,79 +45,6 @@ export default class Groups extends Extension { override async start(): Promise<void> { this.eventBus.onStateChange(this, this.o...
1
1
0
[{"id": "G0", "claim": "The `keys` computation logic above the removed `settings.addDeviceToGroup` call in lib/extension/groups.ts can now be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Koenkk__zigbee2mqtt__24432
Koenkk/zigbee2mqtt
24,432
defect
9ea11fac14433446950633f30f4c3310ab22e693
49629958913ac266af3c12932535bbd9cff2754d
fix!: Improve bind/bridge/groups parsing and resolving consistency
- No longer use `resolveEntityAndEndpoint` for payload parsing (only for topic parsing, better consistency, speed) - 'zigbee2mqtt/bridge/request/device/configure_reporting' (same for `response`) - before: `{id: 'device/endpoint'}` - after: `{id: 'device', endpoint: 'endpoint'}` - 'zigbee2mqtt/bridge/req...
diff --git a/lib/extension/bind.ts b/lib/extension/bind.ts index c917f5270c..a7ac6a2b17 100755 --- a/lib/extension/bind.ts +++ b/lib/extension/bind.ts @@ -195,15 +195,23 @@ const POLL_ON_MESSAGE: Readonly<PollOnMessage> = [ interface ParsedMQTTMessage { type: 'bind' | 'unbind'; - sourceKey: string; - targ...
3
2
1
[{"id": "G0", "claim": "The bind payload endpoint keys should use snake_case (`from_endpoint`, and likewise `to_endpoint`) for consistency with other MQTT payloads.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The configure_reporting endpoint handling ...
null
Koenkk__zigbee2mqtt__27702
Koenkk/zigbee2mqtt
27,702
defect
6a8d20858ede85de72c34ce58e9df41fa2e91d0d
7c2e7731afe2ae198d07efbe77d0ca2350bf7270
fix: generate group ID if empty string given
Fixes #27698
diff --git a/lib/util/settings.ts b/lib/util/settings.ts index bcbda59dc8..f83b463a86 100644 --- a/lib/util/settings.ts +++ b/lib/util/settings.ts @@ -596,7 +596,7 @@ export function addGroup(name: string, id?: string): GroupOptions { settings.groups = {}; } - if (id == null) { + if (id == null ||...
1
1
0
[{"id": "G0", "claim": "The empty-string check should also treat whitespace-only IDs as empty (use id.trim() === \"\" instead of id === \"\").", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Koenkk__zigbee2mqtt__27984
Koenkk/zigbee2mqtt
27,984
defect
ecadda45e7c5665f9e242c956f5f140b7caa6eed
bb991fe0ef20d73c0e1a392e9900872d2adb141e
fix: Update to refactored zhc `onEvent()` and fix `onEvent(stop)` not being called when device is force removed
This PR: - Updates Z2M to use the refactored `onEvent()` API of zhc (https://github.com/Koenkk/zigbee-herdsman-converters/pull/9650). - Updates to the changed `postProcessConvertedFromZigbeeMessage()` API of zhc (https://github.com/Koenkk/zigbee-herdsman-converters/pull/9693) - Updates to changed `Fz.Message.meta` ...
diff --git a/lib/eventBus.ts b/lib/eventBus.ts index 3dfe36e551..f89fa49114 100644 --- a/lib/eventBus.ts +++ b/lib/eventBus.ts @@ -8,8 +8,8 @@ interface EventBusMap { adapterDisconnected: []; permitJoinChanged: [data: eventdata.PermitJoinChanged]; publishAvailability: []; - deviceRenamed: [data: event...
2
1
1
[{"id": "G0", "claim": "Passing the full entity to ZHC's onEvent for the \"stop\" event may create problems because at that point the entity is a floating ref removed from caches/settings with its endpoints reset, so anything ZHC does with it (endpoints, binds/reports, group commands, reading database/state) could fail...
null
Koenkk__zigbee2mqtt__29730
Koenkk/zigbee2mqtt
29,730
defect
d6bf5174be905128432e90d54b3c43c2a68e75ac
7d20bdf57857f0b82b89f7c6ddb4ec2d94a037a0
feat: add `action` bridge/request API
See https://github.com/Koenkk/zigbee-herdsman/pull/1559 * add `bridge/request/action` & `bridge/response/action` APIs with ability to call "actions" from ZHC * make `herdsman` true private in Zigbee class, with getter for passing to ZHC actions TODO: - [x] test coverage - [x] https://github.com/Koenkk/zigbee2m...
diff --git a/lib/extension/bridge.ts b/lib/extension/bridge.ts index a72cdf50ec7..a37d09ce9ad 100644 --- a/lib/extension/bridge.ts +++ b/lib/extension/bridge.ts @@ -7,6 +7,7 @@ import type winston from "winston"; import Transport from "winston-transport"; import {Zcl} from "zigbee-herdsman"; import {InterviewState} ...
2
2
0
[{"id": "G0", "claim": "The raw-request handling logic should not live inline in Bridge; instead a `raw` entry should be defined in zhc's QUICK_ACTIONS.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `sendRaw` method the pull request adds to Zigbee i...
null
Koenkk__zigbee2mqtt__29750
Koenkk/zigbee2mqtt
29,750
defect
d6bf5174be905128432e90d54b3c43c2a68e75ac
8302596e65b7704178dcd99e4d5cabc6d9839413
feat: add new bind/reporting/map features
See https://github.com/Koenkk/zigbee-herdsman/pull/1561 - add API endpoint `bridge/request/device/binds/clear` & response - add API endpoint `bridge/request/device/reporting_config/read` & response - expand network map data to use full set given by ZH TODO: - [x] https://github.com/Nerivec/zigbee2mqtt-windfron...
diff --git a/lib/extension/bind.ts b/lib/extension/bind.ts index b62d950c966..d423d13689e 100755 --- a/lib/extension/bind.ts +++ b/lib/extension/bind.ts @@ -184,7 +184,7 @@ interface ParsedMQTTMessage { } export default class Bind extends Extension { - #topicRegex = new RegExp(`^${settings.get().mqtt.base_topic}...
3
2
0
[{"id": "G0", "claim": "Consider allowing `*` for the `unbind` call instead of adding a separate topic for clearing binds.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the new `device/read_reporting_config` endpoint to `device/reporting/read` for ...
null
Koenkk__zigbee2mqtt__30402
Koenkk/zigbee2mqtt
30,402
defect
3727f078ecde73a5c444c42909f36b4a0f35d8c3
4d6e98a434b567b1e5c38defec46bb110368f4be
fix(ignore): Changes for new ZHC `definition.version`
This PR enables the automatic reconfigure based on the new `definition.version` introduced in https://github.com/Koenkk/zigbee-herdsman-converters/pull/11148. Note that the automatic re-configure was disabled before in https://github.com/Koenkk/zigbee2mqtt/pull/22088 but since it will now be stable (`definition.version...
diff --git a/lib/extension/configure.ts b/lib/extension/configure.ts index f784bce314..7c1209b2c8 100644 --- a/lib/extension/configure.ts +++ b/lib/extension/configure.ts @@ -93,14 +93,20 @@ export default class Configure extends Extension { return; } + const configureKey = zhc.getConfigu...
1
1
0
[{"id": "G0", "claim": "The new `if (!shouldReconfigure) return;` one-liner is hard to read and should be bracketed (or at least separated by a new line), following Z2M/ZH conventions.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
Koenkk__zigbee2mqtt__30627
Koenkk/zigbee2mqtt
30,627
defect
1d87d2f2349f9eed6351a032645eec075476f148
09cd1c38a38c1c878de4faa10144b1e8a2290a33
feat(homeassistant): allow group name/icon overrides
## Summary - allow Home Assistant name/icon overrides for groups - add typed homeassistant options for devices/groups ## Testing - pnpm run check - pnpm run test Docs PR: https://github.com/Koenkk/zigbee2mqtt.io/pull/4717 Fixes #21619
diff --git a/lib/extension/homeassistant.ts b/lib/extension/homeassistant.ts index 302ca439d3..bfa1c8c5a1 100644 --- a/lib/extension/homeassistant.ts +++ b/lib/extension/homeassistant.ts @@ -1515,6 +1515,9 @@ export class HomeAssistant extends Extension { for (const config of this.getConfigs(entity)) { ...
1
1
1
[{"id": "G0", "claim": "The group homeassistant schema should allow overriding any Home Assistant property in the same way as the device schema (pointing to the device `homeassistant` schema and the generic device override handling), not just the two properties `name` and `icon` that the pull request adds.", "category"...
null
Koenkk__zigbee2mqtt__31130
Koenkk/zigbee2mqtt
31,130
defect
396eb38e4b9a329a651dec46ec816be537a3c997
269279f4956fcec69ab745d433f6b830a452953d
fix: improve startup signals behavior
- optimize imports in `index.js` - add JS typing in `index.js` - pass possible SIG to Controller `stop` - add a few guards to prevent undesired errors in "aborted startup" scenario - optimize passlist/blocklist behavior on startup, no unnecessary looping, move some ops outside of loop - add "stopping" log in Contr...
diff --git a/index.js b/index.js index a88eb18ae50..81374656c33 100644 --- a/index.js +++ b/index.js @@ -1,20 +1,17 @@ -const semver = require("semver"); -const engines = require("./package.json").engines; const fs = require("node:fs"); -const os = require("node:os"); const path = require("node:path"); const {exec} ...
8
3
2
[{"id": "G0", "claim": "The repeated `if (abortSignal.aborted) { log; return; }` blocks in Controller.start should be abstracted into a shared helper (sjorge: maybe a dedicated function; Koenkk: an `isAborted()` helper) to avoid duplication.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scop...
null
Koenkk__zigbee2mqtt__31270
Koenkk/zigbee2mqtt
31,270
defect
1747618afa3948ac9fb8899d94fba8456198e4b5
5066a4258a6f9d2bbf7497a086cfad6d12c8020a
Export definition version
We need to this in windfront to add more information in the issue template from the 'report problem' button - https://github.com/Nerivec/zigbee2mqtt-windfront/pull/455
diff --git a/lib/extension/bridge.ts b/lib/extension/bridge.ts index 95041105c61..3ba6a2eb041 100644 --- a/lib/extension/bridge.ts +++ b/lib/extension/bridge.ts @@ -900,6 +900,7 @@ export default class Bridge extends Extension { exposes: device.exposes(), supports_ota: !!device.definition.ota,...
1
1
1
[{"id": "G0", "claim": "The added `version` field should not fall back to an empty string; it should just take whatever the definition type is.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Kohei-Wada__ttymap__349
Kohei-Wada/ttymap
349
defect
b3975936bdefd0e8894d80681ee81019246626ac
c81d82d7ff5840c90d3dbbf8dc02fb98792aa6fb
feat: split engine into a subprocess (#348 Phase 0–2)
## Summary Delivers Phase 0–2 of #348: `ttymap` is now one binary with two roles. The default invocation is the TUI parent; `ttymap engine-worker` is the headless engine subprocess that owns tile cache + render thread + authoritative `MapState`. The two halves talk over the child's stdin / stdout with a bincode-framed...
diff --git a/CLAUDE.md b/CLAUDE.md index f67cd927..ea1f2330 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -69,6 +69,8 @@ ttymap-engine/ (ttymap-engine — ratatui-free) src/ config.rs engine-side settings (cache / map / render) geo.rs Web Mercator projection math...
1
1
1
[{"id": "G0", "claim": "The writer-thread spawn in run_as_subprocess uses .expect(), so a thread spawn failure panics instead of gracefully emitting an error and exiting cleanly with a non-zero status code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Koihik__LuaFormatter__106
Koihik/LuaFormatter
106
defect
c99db21836972064216a9b151d4b6254ea9aabc7
a3f4a58910c4daf5b159febd12186bac2b0d17e1
fix issue#98 : adding column_table_limit feature
by default the column_table_limit is same as column_limit. User can set the value of column_table_limit in type int. as discussed in [issue#98](https://github.com/Koihik/LuaFormatter/issues/98)
diff --git a/README.md b/README.md index cbf6b64..47eca58 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,7 @@ break_after_table_lb: true break_before_table_rb: true chop_down_table: false chop_down_kv_table: true +column_table_limit: column_limit table_sep: "," extra_sep_at_table_end: false break_after_opera...
3
3
1
[{"id": "G0", "claim": "Change the documentation examples to show the default case as `column_table_limit: column_limit` and a second example with a small value like 20.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Reword the description to \"Th...
null
Koihik__LuaFormatter__130
Koihik/LuaFormatter
130
defect
acb531b49c49c5c3ea0763818e6a30fa3411b0da
1289e52d2c3de4779014f1f05a8292467bc0a951
Conflicting Configuration Validators
Implemented validators for conflicting configuration values
diff --git a/src/Config.cpp b/src/Config.cpp index 0cbd082..bec02b1 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -75,6 +75,19 @@ Config::Config() { char value = std::any_cast<char>(elem); return value; }; + auto validate_quote = [&](std::string key, std::any elem) { + bool value ...
1
1
1
[{"id": "G0", "claim": "The conflict error message should name the conflicting values instead of the generic 'Configuration value is conflicting with other value', to help the user fix the issue.", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Koihik__LuaFormatter__54
Koihik/LuaFormatter
54
defect
03bc9d1f2c926d47e8453dd91acf1fb2eb17c465
c01475608a32d9565b5e2fb6992a5299f8a5aa02
feature: add string literal transformation
now it's possible to specify string literals preference for example: local foo = "a" <-> local foo = 'a' local foo = 'don\'t' <-> local foo = "don't"
diff --git a/README.md b/README.md index ebe32b9..7e71710 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,8 @@ chop_down_kv_table: true table_sep: "," extra_sep_at_table_end: false break_after_operator: true +double_quote_to_single_quote: false +single_quote_to_double_quote: false ``` ## Limitations diff --g...
1
1
0
[{"id": "G0", "claim": "The string-literal transformation logic should be moved out of lua-format.cpp into FormatVisitor.cpp by overriding visitString in LuaBaseVisitor to transform the string AST node.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
KomputeProject__kompute__184
KomputeProject/kompute
184
defect
50366c665809f6f6acc66b89beae2d758381acc0
f52efcef0f4c585250d3b8663888078aff356c41
Device Properties
Added `Manager::getDeviceProperties()` which exposes some device parameters that are relevant for Kompute ```python devprops = mgr.get_device_properties() print(devprops) ``` ``` Device Name: SwiftShader Device (LLVM 10.0.0) Maximum Workgroup Count: 65535, 65535, 65535 Maximum Workgr...
diff --git a/python/src/main.cpp b/python/src/main.cpp index 9e065c21..33f9d02a 100644 --- a/python/src/main.cpp +++ b/python/src/main.cpp @@ -217,7 +217,26 @@ PYBIND11_MODULE(kp, m) { py::arg("spirv"), py::arg("workgroup") = kp::Workgroup(), py::arg("spec_consts") = kp::Constants...
2
2
1
[{"id": "G0", "claim": "Avoid creating a new DeviceProperties struct in C++: return the raw vk::PhysicalDeviceProperties from Manager::getDeviceProperties, and expose the subset of properties to Python as a plain dict in the pybind binding instead of binding a new class.", "category": "design", "verdict": "supported", ...
null
KomputeProject__kompute__448
KomputeProject/kompute
448
defect
ec7f8160ba094a8490a09d0e1879f7eff8661978
acbb3d6c58e8ced5ca2f8af7386028fc23c68a2e
Fix family queue selection in tests
Closes #445. This PR will add a check in the `Manager` class to check, if the given family queues exists and have compute capabilities. If the selected queue has no compute capability, it can lead to problems e.g. a display freeze on my current AMD Linux system. The PR also tries to generalize the test `TestAsyn...
diff --git a/src/Manager.cpp b/src/Manager.cpp index b74dc59c..b5facd0c 100644 --- a/src/Manager.cpp +++ b/src/Manager.cpp @@ -398,6 +398,22 @@ Manager::createDevice(const std::vector<uint32_t>& familyQueueIndices, this->mComputeQueueFamilyIndices.push_back(computeQueueFamilyIndex); } else { + st...
1
1
0
[{"id": "G0", "claim": "The parallel-execution timing assert can fail on hardware whose compute queues cannot run in parallel, so the test should either be moved to the benchmark suite or the assert should get a message explaining the likely hardware cause when it fires.", "category": "testing", "verdict": "supported",...
null
KonaeAkira__raphael-rs__259
KonaeAkira/raphael-rs
259
defect
16dc4105e7b29291ef9da4dee7648974e6cb009f
e222384c235aab899d257c7d8b128e0b8e677869
Make buffed stats editable
Makes the buffed stats editable in the GUI. This is achieved through new `[…]_unbuffed` functions that return `Some(unbuffed_stat)` if there exists a value that results in the buffed stat, or `None` if no such value exists. Currently, if the input buffed stats are not obtainable with the selected consumables, the in...
diff --git a/raphael-data/src/consumables.rs b/raphael-data/src/consumables.rs index aed9c7b0..fc61c7b5 100644 --- a/raphael-data/src/consumables.rs +++ b/raphael-data/src/consumables.rs @@ -70,46 +70,50 @@ pub fn stat_bonuses(base_stats: [u16; 3], consumables: &[Option<Consumable>]) -> }) } -#[cfg(test)] -...
2
2
0
[{"id": "G0", "claim": "The unbuffed-stat prediction should use only `max_total` (with `.sum()` instead of `.fold(id, f)`) because the `rel_total` speedup is not worth the extra code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Replace `ui.ad...
null
Kong__deck__1269
Kong/deck
1,269
defect
40d355afd954f1ca4f2a7edf0672a68fd591d809
ab86a1066373214da7448834f856d37b21f462fa
Fix & Update: file linting: Adds support for extends keyword and upgrades vacuum lib
* Adds better support for linting OAS in addition to existing deck file linting. * Upgrades the vacuum dependency to 0.9.11 * Adds more linting integration tests
diff --git a/cmd/file_lint.go b/cmd/file_lint.go index a19919804f..0d94919199 100644 --- a/cmd/file_lint.go +++ b/cmd/file_lint.go @@ -56,17 +56,41 @@ func ParseSeverity(s string) Severity { } return SeverityWarn } +func isOpenApiSpec(fileBytes []byte) bool { + + fileContent := string(fileBytes) + + lines := strin...
1
1
1
[{"id": "G0", "claim": "isOpenApiSpec fails for JSON documents whose first line is only an opening bracket, since it only checks line 1 for \"openapi\"; a more stable resolution is needed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Kong__deck__137
Kong/deck
137
defect
803cea5ec901cf3deba59c46875a98bb8f9695a3
24271cfbdf7856c0bd0567b81a0aafe2ab82169d
feat(state) support multiple files in args
### Objective: I have different state-directories for each environment (ex: production, staging) And I want to have common configuration for both environments, so I could create a symlink for a **common** directory inside each environment directory. (ex: production/common -> ../common) ### Problem: Currently,...
diff --git a/cmd/common.go b/cmd/common.go index a86c9652f..ead652c33 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -59,7 +59,7 @@ func checkWorkspace(config utils.KongClientConfig) error { return nil } -func syncMain(filename string, dry bool, parallelism int) error { +func syncMain(filenames []string, dry bo...
2
2
1
[{"id": "G0", "claim": "Add a test case in the `file` package for the new multi-file state behavior.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Change the state flag's --help text to the multi-line form \"file(s) containing Kong's configuration.\" /...
null
Kong__deck__1765
Kong/deck
1,765
defect
752116ab42d61c1f82b2a045c1fd5b30fff50545
e51873cc7edb29688ff4d993eab0ceb6114bf239
feat: added skip-hash for basic auth for Konnect
This feature introduces a flag to be used with sync command to skip-hashing of basic-auth credential passwords when using with Konnect. An info field is also added for the same. Linked PRs: https://github.com/Kong/go-kong/pull/576 https://github.com/Kong/go-database-reconciler/pull/342 For #1747
diff --git a/cmd/common.go b/cmd/common.go index 1cd63e61fe..d9b9733c03 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -177,6 +177,8 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism, cmd = "diff" } + dumpConfig.SkipHashForBasicAuth = determineSkipHashForBasicAuth(*targetContent,...
1
1
1
[{"id": "G0", "claim": "The new --skip-hash-for-basic-auth flag should also be registered for the `gateway apply` command, not only for `gateway sync`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Kong__deck__1875
Kong/deck
1,875
defect
5a0df61683c0551b0a4a449cf8dc7a18786d9af4
9be79ce7e6849c9496d49ade73c9ebd3ee17624b
fix: added validation for --skip-consumers with default lookup consum…
https://github.com/Kong/deck/issues/1844 https://konghq.atlassian.net/browse/FTI-7230 We have added a validation on deck, where --skip-consumers flag with default-look-up tags(consumer and consumer-groups) shouldn't be allowed together.
diff --git a/cmd/common.go b/cmd/common.go index 1a0e80f14..bf4fda271 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -155,6 +155,13 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism, if err != nil { return err } + + if dumpConfig.SkipConsumers && targetContent.Info != nil && targ...
1
1
0
[{"id": "G0", "claim": "The --skip-consumers validation in syncMain should be moved into a dedicated function for readability, and existing functions in cmd/common.go that check for lookup tags' presence should be reused.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Kong__deck__240
Kong/deck
240
defect
57bfa63661f09960328b5749df92046d81c46b27
c2efe8750a17d816e9780e569091a3c8821113a1
fix(types) ignore tag order for object comparisons
Ignore tag order for object comparisons by sorting the string slices that contain them before checking object equality. This avoids issues with spurious diffs resulting in unnecessary changes when the tag order constructed by deck from dump YAML and the tag order reported by admin API JSON differ. Because Kong objec...
diff --git a/state/types.go b/state/types.go index 85e6affc80..5af8ec78d4 100644 --- a/state/types.go +++ b/state/types.go @@ -2,6 +2,7 @@ package state import ( "reflect" + "sort" "github.com/kong/go-kong/kong" ) @@ -84,7 +85,7 @@ func (s1 *Service) Console() string { // Equal returns true if s1 and s2 ar...
3
3
2
[{"id": "G0", "claim": "The Equal() functions should be refactored into passthroughs to EqualWithOpts() as part of this change, since the two families of functions are diverging.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The PR should add tests co...
null
Kong__deck__286
Kong/deck
286
defect
99f3a8454b6b229c810f950b5dc01247f9a9ebcc
ffbbc92f83b7cbc1a7286cabf55f4edf2781958a
feat(file) implement env var substitution for state files
Introducing support for envirment variable substitution in state files. This is primarily intended for injecting sensitive data at runtime. Fix #191
diff --git a/file/readfile.go b/file/readfile.go index 39a0c19e5..2d214a32c 100644 --- a/file/readfile.go +++ b/file/readfile.go @@ -2,6 +2,9 @@ package file import ( "bufio" + "bytes" + "fmt" + "html/template" "io" "io/ioutil" "os" @@ -87,6 +90,11 @@ func readContent(reader io.Reader) (*Content, error) { ...
6
6
3
[{"id": "G0", "claim": "Letting the state file read arbitrary environment variables can be a security vulnerability (used to exfiltrate environment variables if the deck file is controlled by an actor interested in the host's environment variables), so available env vars should be restricted, e.g. to those sharing a pr...
null
Kong__deck__305
Kong/deck
305
defect
8507631cfa2d53d2a24db904ca23107c91023ee9
bd96e725549bdb58d7a9286c2e0c8c8c8fb81186
Use only one library for yaml handling : github.com/ghodss/yaml
Was there any particular reason for using different yaml libraries : * github.com/ghodss/yaml * gopkg.in/yaml.v2 I replaced gopkg.in/yaml.v2 with github.com/ghodss/yaml as it was more frequently used
diff --git a/file/types_test.go b/file/types_test.go index 4bed35398..1d64927cf 100644 --- a/file/types_test.go +++ b/file/types_test.go @@ -5,9 +5,9 @@ import ( "reflect" "testing" + yaml "github.com/ghodss/yaml" "github.com/kong/go-kong/kong" "github.com/stretchr/testify/assert" - yaml "gopkg.in/yaml.v2" )...
2
1
0
[{"id": "G0", "claim": "The github.com/ghodss/yaml import should be aliased `ghodss` instead of `yaml` so it is not mistaken for the more popular gopkg.in/yaml.v2.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Swapping the YAML library could po...
null
Kong__deck__404
Kong/deck
404
defect
8010c2fcc2a0c3a686075d6b38f5140accede7eb
f4c11b0040bac502856792d741b568befe359b52
chore: bump up linter, more linters, conditionally skip bodyclose
The bodyclose linter is going off incorrectly. The body is actually closed before returning so we are disabling the linter.
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4381daa928..425e4fad7c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,7 +15,7 @@ jobs: - name: Setup golangci-lint uses: golangci/golangci-lint-action@v2.5.2 with: - version:...
2
1
0
[{"id": "G0", "claim": "The bodyclose linter expects callers to close http.Response and so is incompatible with how konnect.Client's Do() closes the response body and returns the response, so the check cannot work in this codebase and should be removed altogether.", "category": "correctness", "verdict": "supported", "p...
null
Kong__deck__562
Kong/deck
562
defect
6cf2b011d98bdc11928df41db6827ce904805622
92e844a50dd0dce36114f213da5e18f81a210077
feat: populate plugin defaults from their schemas
Currently `deck` doesn't automatically inject plugins' defaults, which means it keeps showing misleading diffs when running the `sync` subcommand, trying to remove the default values for both `config` and `protocols` properties: ``` $ cat kong.yaml _format_version: "1.1" plugins: - config: day: null he...
diff --git a/cmd/common.go b/cmd/common.go index 3965ce0338..59298a45cb 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -140,7 +140,7 @@ func syncMain(ctx context.Context, filenames []string, dry bool, parallelism, rawState, err := file.Get(targetContent, file.RenderConfig{ CurrentState: currentState, KongVer...
20
19
8
[{"id": "G0", "claim": "Plumb the context from the command through to the builder and create it with a timeout defined by --timeout; no background or TODO context should exist in any code path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Simplify...
null
Kong__deck__564
Kong/deck
564
defect
6cf2b011d98bdc11928df41db6827ce904805622
4ae369ade1f940e7f419019883f96ba33ce7d966
feat: don't manage Konnect internal-only plugins
Plugins created by Konnect for internal-use only are tagged with 'konnect-managed-plugin'. decK should not allow users to interact with any plugins with this tag. This skips plugins with internal-only konnect tags.
diff --git a/dump/dump.go b/dump/dump.go index cf2e874a3..759f79986 100644 --- a/dump/dump.go +++ b/dump/dump.go @@ -168,11 +168,11 @@ func getProxyConfiguration(ctx context.Context, group *errgroup.Group, if err != nil { return fmt.Errorf("plugins: %w", err) } + plugins = excludeKonnectManagedPlugins(plugin...
5
5
0
[{"id": "G0", "claim": "The inner tag-detection loop should break out as soon as a konnect-managed tag is found, instead of scanning every remaining tag.", "category": "performance", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The comment on excludeKonnectManagedPlugins shou...
null
Kong__deck__571
Kong/deck
571
defect
7a725b769ae4b9a29c9ee3ba8a598039c2599516
98c61b468a8cc49eb7edf3d4f052da0997e9d3bb
fix: unexpected error with --select-tag and multiple files
When running sync with multiple files and `--select-tag`, deck simply appends the existing `_info.select_tags` of the various files. If the same tag(s) are present in the files, these are appended together making `deck` fail because the tags passed via the command flag and the ones coming from the files are expect...
diff --git a/cmd/common.go b/cmd/common.go index f0cf4f553..f130f26e4 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -172,12 +172,13 @@ func determineSelectorTag(targetContent file.Content, config dump.Config) ([]str if targetContent.Info != nil { if len(targetContent.Info.SelectorTags) > 0 { if len(config....
1
1
1
[{"id": "G0", "claim": "The PR should add a case to cmd/common_test.go that would trigger the issue without this fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
Kong__deck__573
Kong/deck
573
defect
be847bab933d016f74870780bbe39e9b841d315c
be5c87c481ae8ef40af1f73ec3aa474e2175b4f5
feat: add entities defaults from their schemas
Today deck populates entities defaults defining them as part of the Defaulter utility. This PR introduces the ability to pull the schema of an entity from the Admin API and to add its defaults from there. What this PR doesn't do is change a thing on Defaulter. A refactoring PR will follow. This needs https://...
diff --git a/file/builder.go b/file/builder.go index e996d6d10..73a79d592 100644 --- a/file/builder.go +++ b/file/builder.go @@ -551,6 +551,9 @@ func (b *stateBuilder) services() { } func (b *stateBuilder) ingestService(s *FService) error { + if err := b.addEntityDefaults("services", &s.Service); err != nil { + re...
5
3
3
[{"id": "G0", "claim": "Merge the upstream go-kong PR, cut a go-kong release, and bump the go.mod dependency off the commit-hash pseudo-version, since hash-based dependencies can point to a stale commit (flagged as a blocker for this PR).", "category": "maintainability", "verdict": "supported", "priority": "P1", "scope...
null
Kong__deck__576
Kong/deck
576
defect
be847bab933d016f74870780bbe39e9b841d315c
567d3400742e362d64787caecbc7e2939ee70030
fix: unexpected behaviour with sync and multiple ws
When passing to `sync` multiple files (or a folder) with different _workspace definition, sync merges the files and applies them only to a single workspace. This change makes `sync` returning an error when attempting a deployment with multiple workspaces.
diff --git a/file/readfile.go b/file/readfile.go index 4a59b920b..568f5cb25 100644 --- a/file/readfile.go +++ b/file/readfile.go @@ -20,6 +20,7 @@ import ( // these files and renders a Content. func getContent(filenames []string) (*Content, error) { var allReaders []io.Reader + var workspaces []string for _, file...
4
2
1
[{"id": "G0", "claim": "The case where the workspace given via the --workspace CLI flag and the workspace in the state file differ needs to be taken into account, otherwise the PR is good.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new error prin...
null
Kong__deck__619
Kong/deck
619
defect
39a3d6b644ddbef287128f762ad7ea9cf5594b88
c290b0902ec2c956ef1a1fe84ff93b6b41655b57
fix: add custom marshaller for FRBACEndpointPermission
Paired with https://github.com/Kong/go-kong/pull/148 [Sample kong.yaml.txt](https://github.com/Kong/deck/files/8286097/kong.yaml.txt) ``` $ ./deck sync --rbac-resources-only creating rbac-role workspace-super-admin creating rbac-role workspace-read-only creating rbac-role workspace-portal-admin creating rbac...
diff --git a/file/types.go b/file/types.go index d1f0fca4e8..dde183dfa1 100644 --- a/file/types.go +++ b/file/types.go @@ -507,6 +507,32 @@ type FRBACEndpointPermission struct { kong.RBACEndpointPermission `yaml:",inline,omitempty"` } +func (frbac FRBACEndpointPermission) MarshalJSON() ([]byte, error) { + m := map...
2
2
1
[{"id": "G0", "claim": "The PR's change to kong.yaml appears to remove all resources currently present in it and replace them with a set of RBAC resources, and the reviewer asks whether the existing resources should instead be kept (concatenated).", "category": "correctness", "verdict": "supported", "priority": "P1", "...
null
Kong__deck__677
Kong/deck
677
defect
f73967a5728d93179982db3e729151d99c353da5
d22523573cd335b4ddfaadef67230d9a74d5fb64
fix: populate missing 'enabled' service field from file
Without this decK is failing at parsing the 'enabled' field for services entities.
diff --git a/file/types.go b/file/types.go index 43740ae61..0f37854c8 100644 --- a/file/types.go +++ b/file/types.go @@ -70,6 +70,7 @@ type service struct { TLSVerify *bool `json:"tls_verify,omitempty" yaml:"tls_verify,omitempty"` TLSVerifyDepth *int `json:"tls_verify_depth,omitempty" yaml:"tl...
2
2
1
[{"id": "G0", "claim": "Can you add a pending release changelog entry for the 'enabled' service field fix?", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please add a test covering the change.", "category": "testing", "verdict": "supported", "prio...
null
Kong__deck__918
Kong/deck
918
defect
71896144f1ec1ac61ae173cdba6de0bd686b7c3b
b8abb2c8ea5feb2f086fcd0548c438db99c1f4ef
feat: allow updating entities' IDs while keeping their names
This adds an additional step to the `diff.Syncer`'s `diff` producer - `deleteDuplicates`. Its purpose is to clean up the entities in the **current** state that have duplicates with the same names in the **target** state before proceeding with updates/creates and regular deletes. Without that additional step, it's not p...
diff --git a/diff/diff.go b/diff/diff.go index c9bc97e667..214945ffd0 100644 --- a/diff/diff.go +++ b/diff/diff.go @@ -166,15 +166,74 @@ func (sc *Syncer) init() error { } func (sc *Syncer) diff() error { - var err error - err = sc.createUpdate() - if err != nil { - return err + for _, operation := range []func() ...
5
5
2
[{"id": "G0", "claim": "The error messages in the new DuplicatesDeletes helpers on types/consumer.go and types/route.go say 'error fetching services from state' where they fetch consumers and routes respectively (copy-paste from the service code).", "category": "correctness", "verdict": "supported", "priority": "P2", "...
null
Kong__insomnia__9515
Kong/insomnia
9,515
defect
1c1c7b4179aaec5212f01017efc093abc5d2febb
47b2f00cc6e07c7bc9f5038328544086869e00b7
refactor: replace node:url with URL in cert and proxy match
## Background Replace node:url package with URL, so that these files can get rid of Node.js dependencies. [INS-1819](https://konghq.atlassian.net/browse/INS-1819) [INS-1819]: https://konghq.atlassian.net/browse/INS-1819?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
diff --git a/packages/insomnia/src/network/is-url-matched-in-no-proxy-rule.ts b/packages/insomnia/src/network/is-url-matched-in-no-proxy-rule.ts index b12cae57fef3..9920947a5e45 100644 --- a/packages/insomnia/src/network/is-url-matched-in-no-proxy-rule.ts +++ b/packages/insomnia/src/network/is-url-matched-in-no-proxy-r...
1
1
0
[{"id": "G0", "claim": "In urlMatchesCertHost the variable `hostname` is typed `string | null`, but the URL API's `hostname` property always returns a string (empty string when there is no hostname), so the type should be `string` instead of `string | null`.", "category": "maintainability", "verdict": "supported", "pri...
null
Kong__insomnia__9712
Kong/insomnia
9,712
defect
c9dd397f632ec0298b5ec72bd795fb86941e4989
39b70acaf65b95788442ed2d0ed144cf7269728a
Git Credentials optimizations [INS-1947]
<img width="769" height="693" alt="image" src="https://github.com/user-attachments/assets/8db85dc4-6e9d-4bfc-8dd5-8548a83b6217" /> <img width="955" height="488" alt="image" src="https://github.com/user-attachments/assets/17f23723-f7b4-438d-b101-e7ad0ee1800e" /> <img width="683" height="418" alt="image" src="https...
diff --git a/packages/insomnia/src/entry.preload.ts b/packages/insomnia/src/entry.preload.ts index 43a30cb267c4..0e1266bab28b 100644 --- a/packages/insomnia/src/entry.preload.ts +++ b/packages/insomnia/src/entry.preload.ts @@ -142,6 +142,7 @@ const git: GitServiceAPI = { listGitProviders: () => ipcRenderer.invoke('g...
4
3
2
[{"id": "G0", "claim": "The console.error calls in git-service.ts interpolate the non-literal `provider` variable into the format string, which could let an injected format specifier forge the log message; constant values should be used for the format string.", "category": "security", "verdict": "supported", "priority"...
null
Kong__insomnia__9715
Kong/insomnia
9,715
defect
aae93484c1f077c9a4db7c818e5db9a880e1c214
5f04204dc9451868e45dab568ee547fccc7a6227
Separate GUI & internal state of runner iteration count [INS-2130]
This PR allows users to temporarily clear the Iterations input in the Runner without impacting the internal iterationCount that Insomnia tracks. In the current Insomnia version users can't change the iteration count in the input by deleting the existing value and typing a new one. For example, if the iteration count is...
diff --git a/packages/insomnia-smoke-test/tests/smoke/runner.test.ts b/packages/insomnia-smoke-test/tests/smoke/runner.test.ts index c02df5e22479..0bca768a8d53 100644 --- a/packages/insomnia-smoke-test/tests/smoke/runner.test.ts +++ b/packages/insomnia-smoke-test/tests/smoke/runner.test.ts @@ -239,6 +239,46 @@ test.des...
1
1
0
[{"id": "G0", "claim": "The mechanism could probably also be enabled for the input at runner.tsx line 521.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
Kong__insomnia__9720
Kong/insomnia
9,720
defect
2485393bf14e750ec9501bc75f1e4e14da07d4a7
56c8fffd0116d0ce4b43b9ef15dddf65ea515e87
Update the logic for indentifing system changes [INS-2165]
<img width="1024" height="552" alt="image" src="https://github.com/user-attachments/assets/2ad74206-c765-459c-951a-022220e99a81" /> ### Reworked system-change detection logic (significant-diff-detection.ts) The previous implementation used the `diff` library to compare the original and modified text line-by-line,...
diff --git a/packages/insomnia/src/common/significant-diff-detection.ts b/packages/insomnia/src/common/significant-diff-detection.ts index c3bc711af1a7..6ec0884c98a9 100644 --- a/packages/insomnia/src/common/significant-diff-detection.ts +++ b/packages/insomnia/src/common/significant-diff-detection.ts @@ -1,7 +1,6 @@ ...
12
9
2
[{"id": "G0", "claim": "Remove the debug console.log of the system-change intervals before merging; leaving it in will spam the console in production/Electron and can leak internal state into logs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
Kong__insomnia__9724
Kong/insomnia
9,724
defect
2485393bf14e750ec9501bc75f1e4e14da07d4a7
7787cab8095c4b3a38950904763c5dffdcc373a5
feat: Extract vault and kv-pair utility methods out of environment model
## Background For the environment model, certain functions do not depend on the DB and are not model operations. Move them to separate utils to simplify and clarify the model logic. ## Changes - Move `encryptSecretValue` and `decryptSecretValue` to the vault utils. - Move `getKVPairFromData`, `getDataFromKVPair` ...
diff --git a/packages/insomnia/src/common/insomnia-v5.ts b/packages/insomnia/src/common/insomnia-v5.ts index af88b6455ee6..296a2f3be5bc 100644 --- a/packages/insomnia/src/common/insomnia-v5.ts +++ b/packages/insomnia/src/common/insomnia-v5.ts @@ -18,13 +18,14 @@ import { type AllExportTypes, MODELS_BY_EXPORT_TYPE } fro...
8
2
2
[{"id": "G0", "claim": "checkNestedKeys recurses into any value whose typeof is 'object', which includes null, so an environment containing a null value will call checkNestedKeys(null, false) and throw at runtime; guard against null (and ideally only recurse for non-null objects/arrays) before recursing.", "category": ...
null
Kong__insomnia__9733
Kong/insomnia
9,733
defect
700fb8ff17371dce2fc27e37de046d4e387bf978
119b4f471d3bac9699bb6beb721a1149a9f90c4e
feat: new deep link import
Adds support for skipping certain aspects of app-uri imports `insomnia://app/import?...`: - cURL imports: - When valid, skip/auto-scan to the project/collection selection step - When invalid, offer corrections by opening regular project-scoped import dialog - OpenAPI spec imports: - If existing Document ma...
diff --git a/packages/insomnia/src/common/import.ts b/packages/insomnia/src/common/import.ts index 0dfb76c0c2f3..fa3dc9d2d5b1 100644 --- a/packages/insomnia/src/common/import.ts +++ b/packages/insomnia/src/common/import.ts @@ -4,8 +4,9 @@ import { z, type ZodError } from 'zod/v4'; import { type McpRequest } from '~/in...
7
6
4
[{"id": "G0", "claim": "pathPatternMatches builds a RegExp from a function argument, which might allow an attacker to cause ReDoS, so hardcoded regexes or input validation are recommended.", "category": "security", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G2", "claim": "findExistingImpo...
null
Kong__insomnia__9738
Kong/insomnia
9,738
defect
700fb8ff17371dce2fc27e37de046d4e387bf978
fab83d631d007a48cf04bd54f1e6cc012e6cbc55
Fix the bug that self-hosted mock server URL can not be edited when reating a new mock server [INS-2150]
Fixed the bug that users can not edit the Self-hosted Mock Server URL when creating a self-hosted mock server within a local project. For existing Mock Servers, changing the server type is no longer allowed. This is because we cannot automatically migrate existing Mock Routes to a new type. Permitting such changes w...
diff --git a/packages/insomnia/src/routes/organization.$organizationId.project.$projectId._index.tsx b/packages/insomnia/src/routes/organization.$organizationId.project.$projectId._index.tsx index 75f690b5a3da..58b54e8c0a0c 100644 --- a/packages/insomnia/src/routes/organization.$organizationId.project.$projectId._index...
4
1
1
[{"id": "G0", "claim": "In the workspace settings modal the self-hosted URL field is only rendered when mockServer.url is truthy, so a self-hosted mock server with an empty stored URL cannot be seen or fixed in settings; render the URL field whenever the mock server is self-hosted and rely on validation/placeholder for...
null
Kong__insomnia__9741
Kong/insomnia
9,741
defect
c9decc8750ec4012bdbe13abeb693d3104199ed9
3f31401a7f6c483f8949aeaf9db42c4b15389755
feat: migrate models to insomnia-data - p5
Migrating the following models to insomnia-data: - plugin-data - proto-directory - proto-file - user-session - stats - o-auth-2-token [INS-2206](https://konghq.atlassian.net/browse/INS-2206) [INS-2206]: https://konghq.atlassian.net/browse/INS-2206?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZj...
diff --git a/packages/insomnia/src/account/session.ts b/packages/insomnia/src/account/session.ts index 2eff1f998789..4d0a94b9a1fd 100644 --- a/packages/insomnia/src/account/session.ts +++ b/packages/insomnia/src/account/session.ts @@ -1,10 +1,11 @@ import { logout as logoutAPI, whoami } from 'insomnia-api'; -import ...
2
1
0
[{"id": "G0", "claim": "Because services.pluginData.getByKey() returns PluginData | undefined (per IDatabase.findOne), the unchanged `return doc !== null` in pluginData.hasItem incorrectly returns true when the key is missing (undefined), breaking pluginData.hasItem for templating-worker callers; the check should treat...
null
Kong__insomnia__9751
Kong/insomnia
9,751
defect
ab9d5da5c17977f8072ee8864dc6a2c69a5a66b3
7af2fd339b554d8d64b47e66916e7048278ea002
feat: migrate models to insomnia-data - p8
Migrate the following models into `insomnia-data`: - socket-io-payload - socket-io-request - socket-io-response - websocket-payload - websocket-request - websocket-response [INS-2210](https://konghq.atlassian.net/browse/INS-2210) [INS-2210]: https://konghq.atlassian.net/browse/INS-2210?atlOrigin=eyJpIjoiNWR...
diff --git a/packages/insomnia/src/common/import.ts b/packages/insomnia/src/common/import.ts index f684d9d3cf3d..a248463cd525 100644 --- a/packages/insomnia/src/common/import.ts +++ b/packages/insomnia/src/common/import.ts @@ -1,7 +1,8 @@ import orderedJSON from 'json-order'; import { z, type ZodError } from 'zod/v4'...
8
3
1
[{"id": "G0", "claim": "In the websocket-response node service, calling `models.requestVersion.create(...)` through the `models` object imported from `~/insomnia-data` will fail because the insomnia-data models object does not include `requestVersion`.", "category": "correctness", "verdict": "supported", "priority": "P...
null
Kong__insomnia__9759
Kong/insomnia
9,759
defect
486b91ab2b6a6baa8af3b4e925ae774d5936d773
bd56533e6f5f79d792f736c675cdaca070f6ec33
fix: Execute bundle plugin actions with correct execution environment
## Background Currently, the `executePluginMainAction` will execute bundle plugin exported actions in renderer process, regardless of the `Allow elevated access for plugins` setting. This causes issues because Nujuck tag related bundle plugins are imported in either the main or renderer process depending on that s...
diff --git a/packages/insomnia-smoke-test/server/index.ts b/packages/insomnia-smoke-test/server/index.ts index f34f0216afb1..f3536537c573 100644 --- a/packages/insomnia-smoke-test/server/index.ts +++ b/packages/insomnia-smoke-test/server/index.ts @@ -144,6 +144,13 @@ app.get('/updates/win', (request, response) => { ...
7
5
2
[{"id": "G0", "claim": "The new async `util.openInBrowser` returns nothing in either branch, dropping the Promise from `shell.openExternal` in the main-process branch, which risks unhandled rejections and makes awaiting it resolve before the browser open completes; the branches should be returned/awaited.", "category":...
null
Kong__insomnia__9770
Kong/insomnia
9,770
defect
9fbfa3adc5d8ceb1ec0c941df948a867cfd9241b
c7918185531a54686462185007e48e8c6dde2a55
fix: prevent duplicate imports during auto-scan
Prevents multiple scan calls occurring simultaneously from storing duplicates in the cache
diff --git a/packages/insomnia/src/common/import.ts b/packages/insomnia/src/common/import.ts index b3db743e4ea4..8f520865fac3 100644 --- a/packages/insomnia/src/common/import.ts +++ b/packages/insomnia/src/common/import.ts @@ -175,7 +175,8 @@ export const MODELS_BY_EXPORT_TYPE: Record<AllExportTypes, AllTypes> = { exp...
1
1
1
[{"id": "G0", "claim": "There is no regression test covering concurrent scanResources() executions, so consider adding a Vitest case that runs two concurrent scans (with a stubbed/delayed importer) and asserts no duplicated ResourceCacheType entries.", "category": "testing", "verdict": "supported", "priority": "P1", "s...
null
Kong__insomnia__9785
Kong/insomnia
9,785
defect
02213242fe320870d56991383f94e8a8df907be9
d42064e4aa8d368fbf0aad03a703c21437602db7
feat: integrate v3 user endpoints
Migrate user API calls from v1 to v3 SDK - Introduces `@kong/insomnia-api-sdk` to insomnia-api and migrates user profile and encryption key fetching from v1 endpoints to `GET /v3/users/me` and `GET /v3/users/me/encryption-keys`. - `absorbKey` now makes parallel v3 calls instead of a single `whoami`. - Smoke test...
diff --git a/package-lock.json b/package-lock.json index 766d13b8e2ba..a93064ecad97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4027,6 +4027,12 @@ "node": ">= 18" } }, + "node_modules/@kong/insomnia-api-sdk": { + "version": "1.0.2", + "resolved": "https://npm.pkg.github....
9
6
3
[{"id": "G0", "claim": "The 'throws when session is empty' test returns early when a session id is already set, so it can pass without ever asserting the expected error; the session should be cleared in the test and the actual error asserted.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "...
null
Kong__insomnia__9796
Kong/insomnia
9,796
defect
156c60476efdc6023d5b10f67e3a589fedd91245
a7d53d1a408d01096eafdfab845a3cdfb08bc231
feat: move model migrate and initModel to database
## Changes - Move initModel to a new file since it should only be used in the database - Unify the imports of service files - Move some of the legacy model APIs to insomnia-data
diff --git a/packages/insomnia/src/insomnia-data/node-src/database/database-nedb.ts b/packages/insomnia/src/insomnia-data/node-src/database/database-nedb.ts index 791f74ac1277..0323b864073f 100644 --- a/packages/insomnia/src/insomnia-data/node-src/database/database-nedb.ts +++ b/packages/insomnia/src/insomnia-data/node...
8
2
1
[{"id": "G0", "claim": "In migrateBody, `typeof contentType !== 'string'` is unreachable because contentType is always a string after `|| ''`, leaving a dead branch and contradictory migration logic; the comment suggests replacing it with `!contentType`.", "category": "correctness", "verdict": "uncertain", "priority": ...
null
Kong__insomnia__9798
Kong/insomnia
9,798
defect
3082b1022bf14425a7d33df147a760caeeaf8e96
f972a6440d4c81f715698e62944fd6df4646ac7c
fix(Git Sync): auto-resolve non-YAML file conflicts to remote during merge
# Overview A YAML parsing error is thrown when pulling from a Git remote that has conflicting non-YAML files (e.g., .gitignore). The merge conflict resolution logic attempts to parse every conflicting file as YAML, regardless of file type, causing a crash when it encounters files like .gitignore containing node_modu...
diff --git a/packages/insomnia/src/sync/git/git-vcs.ts b/packages/insomnia/src/sync/git/git-vcs.ts index 26b46577e4c0..dd4a9f517d41 100644 --- a/packages/insomnia/src/sync/git/git-vcs.ts +++ b/packages/insomnia/src/sync/git/git-vcs.ts @@ -1352,6 +1352,19 @@ export class GitVCS { })); } + function rea...
6
5
4
[{"id": "G0", "claim": "Non-YAML conflicts are added to the returned conflicts array with a non-YAML mergeResult, which the SyncMergeModal will block on YAML/InsomniaFileSchema validation in editorType='merge' and whose MANUAL resolutionSource the diff editor overwrites, so the theirs version should be auto-applied/sta...
null
Kong__insomnia__9805
Kong/insomnia
9,805
defect
3ec916e4363ef2ab4023433a5895641c85b26951
d4a4333e6787f8530f9052f450073d59ca1b3dc7
refactor: remove route path builtin imports
Plan: https://github.com/Kong/insomnia/pull/9803 ## Purpose - Remove route-local `node:path` usage from the first route-only migration slice. - Switch these routes to the existing `window.path` preload bridge without changing route behavior. ## Files in scope - `packages/insomnia/src/routes/import.scan.tsx` - `packag...
diff --git a/packages/insomnia/config/renderer-node-import-baseline.json b/packages/insomnia/config/renderer-node-import-baseline.json index e0837c2da815..e8b2d550075e 100644 --- a/packages/insomnia/config/renderer-node-import-baseline.json +++ b/packages/insomnia/config/renderer-node-import-baseline.json @@ -160,10 +1...
2
2
2
[{"id": "G0", "claim": "The new isZipFilePath (filePath.toLowerCase().endsWith('.zip')) is not equivalent to the prior path.extname(filePath) === '.zip' check, so a file literally named '.zip' would now be treated as a zip; if the intent is to keep behavior identical while removing node:path, the helper should match th...
null
Kong__insomnia__9809
Kong/insomnia
9,809
defect
38c1a34ba355f69f77e3ccd88923b0f6fb56c53d
ca6b70ae4c57a14fe0559043e2e7241d3396740b
refactor: import to main
Plan: https://github.com/Kong/insomnia/pull/9803 blocked by: #9827 Removes 9 renderer node imports ## Purpose - Stop renderer-reachable code from importing `src/main` implementations when only pure helpers, constants, or types are needed. - Extract shared logic out of main-only modules while leaving privileged ...
diff --git a/eslint.config.mjs b/eslint.config.mjs index 867748de13b3..b605817f4d88 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -12,6 +12,23 @@ import globals from 'globals'; import tseslint from 'typescript-eslint'; const rendererBuiltinSpecifiers = [...builtinModules, ...builtinModules.map(moduleNam...
7
3
2
[{"id": "G0", "claim": "The new writeResponseBodyToFile flow passes a renderer-controlled sourcePath to the main process without validating that it belongs to allowed locations, so a compromised renderer could have main read arbitrary files and write them to a chosen destination.", "category": "security", "verdict": "s...
null
Kong__insomnia__9810
Kong/insomnia
9,810
defect
38c1a34ba355f69f77e3ccd88923b0f6fb56c53d
4956a1e50a5a22039898bd3dfb16e4c277570fe6
refactor: shared browser safe helper cleanup
Plan: https://github.com/Kong/insomnia/pull/9803 ## Purpose - Remove Node builtin usage from helper modules that should stay safe to load in the renderer. - Update the affected call sites to consume browser-safe or shared helpers without changing app behavior. ## Files in scope - `packages/insomnia/src/common/misc.ts...
diff --git a/eslint.config.mjs b/eslint.config.mjs index 867748de13b3..b605817f4d88 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -12,6 +12,23 @@ import globals from 'globals'; import tseslint from 'typescript-eslint'; const rendererBuiltinSpecifiers = [...builtinModules, ...builtinModules.map(moduleNam...
2
1
0
[{"id": "G0", "claim": "The new IPC handler writeResponseBodyToFile copies from a caller-supplied sourcePath without verifying the caller may access that file, and should restrict sourcePath to verified response body paths or add authorization/whitelisting checks.", "category": "security", "verdict": "uncertain", "prio...
null
Kong__insomnia__9811
Kong/insomnia
9,811
defect
e12d66224d72b021b918bfe10d7afefd2b7f2e2f
9cb0f95c3ead54416cf635e93f29300a48785933
feat: konnect integration proxy url and regex support
This PR improves regex path handling and adds proxy URL auto-population to the Konnect sync integration. - Extracts path/header/env-var transform logic into a dedicated transform.ts module - Regex route paths (~ prefix) are parsed into Insomnia colon-style path parameters; complex regexes fall back to `/:path` - U...
diff --git a/packages/insomnia/src/konnect/__tests__/api.test.ts b/packages/insomnia/src/konnect/__tests__/api.test.ts index 08f7eff11a34..10fa839fc608 100644 --- a/packages/insomnia/src/konnect/__tests__/api.test.ts +++ b/packages/insomnia/src/konnect/__tests__/api.test.ts @@ -1,6 +1,6 @@ import { afterEach, beforeEa...
2
2
0
[{"id": "G0", "claim": "entry.protocol is typed as a required string but the code uses optional chaining, making proto string|undefined that flows into HTTP_LIKE_PROTOCOLS.has(proto) and formatHttpLikeHost(..., proto) — which should be a TypeScript type error and can also hide genuinely missing/invalid protocols at run...
null
Kong__insomnia__9828
Kong/insomnia
9,828
defect
2a98aba3e5f1498a7b7e1bed6a70be6bdd1a8135
12f67c3a1a0513ecc8b6385008197419a79d6790
chore: isolate gRPC proto file preparation behind IPC boundary
## Purpose Isolate gRPC proto temp-file creation behind the Electron preload boundary, removing `fs`, `os`, and `path` ownership from the renderer-reachable code path as part of the `nodeIntegration: false` migration. ## Single feature scope Preparing proto directories and temp proto files for gRPC request execution. ...
diff --git a/packages/insomnia/config/renderer-node-import-baseline.json b/packages/insomnia/config/renderer-node-import-baseline.json index 6ba8e0ca1b7f..b9b099974ba0 100644 --- a/packages/insomnia/config/renderer-node-import-baseline.json +++ b/packages/insomnia/config/renderer-node-import-baseline.json @@ -80,26 +80...
1
1
1
[{"id": "G0", "claim": "The import-validation loop no longer parses proto content because window.main.grpc.writeProtoFile only prepares the temp files, so invalid proto syntax may never trigger the 'Invalid Proto File' error path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc...
null
Kong__insomnia__9830
Kong/insomnia
9,830
defect
307654cab328be1d680b15c96c3760f6974cc006
8b02a077eb575c8e1947ca190ad187b943ecec50
feat: konnect integration expressions support
Kong Konnect has an expressions router where routes use a DSL string (`expression` field) instead of traditional `methods`, `paths`, `hosts`, `headers` fields. Insomnia parses simple expressions via regex to extract those fields, then feeds them into the standard sync pipeline. **Supported predicates**: `http.method...
diff --git a/packages/insomnia/src/konnect/__tests__/expression-parser.test.ts b/packages/insomnia/src/konnect/__tests__/expression-parser.test.ts new file mode 100644 index 000000000000..63af101c12fb --- /dev/null +++ b/packages/insomnia/src/konnect/__tests__/expression-parser.test.ts @@ -0,0 +1,173 @@ +import { descr...
3
2
1
[{"id": "G0", "claim": "konnectRequests is typed to return Request[] but is used to filter grpcRequest/webSocketRequest results, which can cause TypeScript type errors or force incorrect typing; make the helper generic or return a shared minimal shape instead of Request[].", "category": "maintainability", "verdict": "s...
null
Kong__insomnia__9831
Kong/insomnia
9,831
defect
307654cab328be1d680b15c96c3760f6974cc006
6d2ed05bd5040c2791d6ee0c4e6b36a272461490
feat: konnect integration sanitizes nunjucks templates on sync
Insomnia uses Nunjucks templating to render request URLs, headers, and other fields at send time — evaluating expressions like {{ _.proxy_host }} against the active environment. This means any string stored on a request that contains {{ }} or {% %} syntax will be executed when the user sends the request. During a Ko...
diff --git a/packages/insomnia/src/konnect/__tests__/transform.test.ts b/packages/insomnia/src/konnect/__tests__/transform.test.ts index b0f161d0f7be..a4cb8545dd51 100644 --- a/packages/insomnia/src/konnect/__tests__/transform.test.ts +++ b/packages/insomnia/src/konnect/__tests__/transform.test.ts @@ -8,6 +8,7 @@ impor...
5
5
4
[{"id": "G0", "claim": "Sanitizing a method like \"{{ ... }}\" to an empty string leaves a non-null methods array containing empty strings, which syncHttpRoute turns into requests with method '' and '::-containing keys, bypassing the fallback default methods; methods that sanitize to empty/whitespace should be filtered...
null
Kong__insomnia__9834
Kong/insomnia
9,834
defect
6d916253693cb6f21b29c74a0c3133ae6d281b10
506da649cd064e4626da11bf79ab9940234dc447
refactor: auth header to main
replaces this PR: https://github.com/Kong/insomnia/pull/9829 ## Summary This PR moves request-auth header generation and the OAuth token acquisition paths out of renderer-owned network code and into the Electron main process. The core scope is making auth header resolution main-owned so request execution no longer d...
diff --git a/packages/insomnia-inso/src/cli.test.ts b/packages/insomnia-inso/src/cli.test.ts index 2c17f56e7f59..6db8d8661122 100644 --- a/packages/insomnia-inso/src/cli.test.ts +++ b/packages/insomnia-inso/src/cli.test.ts @@ -42,6 +42,8 @@ const shouldReturnSuccessCode = [ '$PWD/packages/insomnia-inso/bin/inso run ...
7
6
4
[{"id": "G0", "claim": "Depending on the context, passing user-controlled data through Object.assign when building the hawk header options can cause the web response to include data it should not have or lead to a mass assignment vulnerability.", "category": "security", "verdict": "supported", "priority": "P3", "scope"...
null
Kong__insomnia__9838
Kong/insomnia
9,838
defect
86d9e2ba0c695b9bd0d95efadbf74ee0dc1ee163
fb07b541171ab85bbf22df7c1fe727526fab2862
feat: default user-agent for cURL imports [INS-2416]
This change brings parity to cURL imports with cURL command-line functionality and normal request creation. Insomnia currently adds a default `User-Agent` to new requests (if not explicitly disabled in settings), and cURL on the command-line will default to adding a `User-Agent` if one is not specified. Imported cUR...
diff --git a/packages/insomnia/src/main/importers/importers/curl.test.ts b/packages/insomnia/src/main/importers/importers/curl.test.ts index ab2392cf44af..70a1d996a822 100644 --- a/packages/insomnia/src/main/importers/importers/curl.test.ts +++ b/packages/insomnia/src/main/importers/importers/curl.test.ts @@ -192,22 +1...
1
1
1
[{"id": "G0", "claim": "The default User-Agent injected by the cURL importer doesn't appear to respect the user setting that disables the app-version User-Agent on new requests (settings.disableAppVersionUserAgent), so the injection should be gated on that setting to avoid leaking the app version when users opted out."...
null
Kong__insomnia__9839
Kong/insomnia
9,839
defect
cd8b74524f02ade813c9d52fad0b0e1746f431cd
306c44696bc37a18f18a05f6871b3b88e0a4fc93
chore: resolve GHA warning annotations and reduce CI time [INS-2312]
CI speedups with e2e sharding + skipping an unnecessary package step for Windows builds
diff --git a/.github/workflows/homebrew.yml b/.github/workflows/homebrew.yml index 53ed15a0af33..e03bc73b5925 100644 --- a/.github/workflows/homebrew.yml +++ b/.github/workflows/homebrew.yml @@ -22,7 +22,7 @@ jobs: - name: Cache Homebrew Bundler RubyGems id: cache - uses: actions/cache@v3 + ...
3
3
0
[{"id": "G0", "claim": "The actions referenced in the new e2e test job (actions/upload-artifact@v7, actions/checkout@v6, actions/setup-node@v6) are referenced by bare version tags while the rest of the workflow pins commit hashes - pin hashes for these as well.", "category": "security", "verdict": "supported", "priorit...
null
Kong__insomnia__9851
Kong/insomnia
9,851
defect
c40c222623a319662cee81f97bb0a20f39dd6637
6e1327622a2bf06e56a97988623400dce52d842a
Refactor:use electron store for oauth session
prep work for oauth PR #9834 This code path is covered by oauth.test.ts the biggest decision in this PR is the lifespan of the electronStore. Option 1: Per-request / per-IPC-call (ephemeral) A new instance is created for each request and discarded after the response. This is the most granular option — cheapes...
diff --git a/packages/insomnia-api/tsconfig.json b/packages/insomnia-api/tsconfig.json index 1cf9c3d3a31d..28c95abbeddd 100644 --- a/packages/insomnia-api/tsconfig.json +++ b/packages/insomnia-api/tsconfig.json @@ -9,7 +9,6 @@ "isolatedModules": true, "module": "ESNext", "sourceMap": true, - "baseUrl"...
10
7
5
[{"id": "G0", "claim": "ElectronStorage is created or captured at module load, before app.setPath('userData')/initElectronStorage runs, so it can lock onto the pre-override directory for the app lifetime or be captured as null, leaving the window-state persistence calls no-ops.", "category": "correctness", "verdict": "...
null
Kong__insomnia__9882
Kong/insomnia
9,882
defect
7809d458aaeb9fb706996faeb8d5f737dea1deff
0fc695686f9453f937c111fbf06340dce016bce3
feat(Git Sync): Downgrade -> Upgrade path
# Overview - [x] Protects git-backed projects from data corruption when users downgrade to an older app version and then re-upgrade. The fix encodes the linked `GitRepository` ID using a prefix swap (`git_xxx` → stored as `gr_xxx` on the project's `gitRepositoryId` field). The old app's model lookup returns `null` f...
diff --git a/packages/insomnia/src/insomnia-data/src/models/project.ts b/packages/insomnia/src/insomnia-data/src/models/project.ts index b5692ca73f0f..7145d0db6af1 100644 --- a/packages/insomnia/src/insomnia-data/src/models/project.ts +++ b/packages/insomnia/src/insomnia-data/src/models/project.ts @@ -15,10 +15,49 @@ e...
4
4
2
[{"id": "G0", "claim": "The new console.log/console.warn calls interpolate variables into the format string, so a format specifier injected in the values could forge log messages; use constant format strings instead.", "category": "security", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1"...
null
Kong__insomnia__9895
Kong/insomnia
9,895
defect
71dc5c9370fa24d8fa7989214534fe7bb3ebdb79
c9648399a30d8c3bfd0d6b3c9af76307d891b3df
chore: normalize konnect api responses
The Konnect API started omitting a nullable field, breaking sync. This PR introduces more stringent API response normalization to explicitly handle these cases.
diff --git a/packages/insomnia/src/konnect/__tests__/api.test.ts b/packages/insomnia/src/konnect/__tests__/api.test.ts index 10fa839fc608..655976e70a55 100644 --- a/packages/insomnia/src/konnect/__tests__/api.test.ts +++ b/packages/insomnia/src/konnect/__tests__/api.test.ts @@ -116,9 +116,9 @@ describe('validatePat', (...
1
1
1
[{"id": "G0", "claim": "Regression tests should be added for the PR's new fetchAllServices and route normalization paths, since the tests only exercise already-null shapes and would not catch a regression in converting omitted nullable fields (name/path/tags and the route fields) to null.", "category": "testing", "verd...
null
Kong__kubernetes-ingress-controller__4788
Kong/kubernetes-ingress-controller
4,788
defect
a7d258a11650254d5d5adf64d5b0c23ac3d8af21
49a77f87dd93f985e822c844fffffaa1f216ec16
test: add host to MustHTTPRequest and implement HTTP client with proxy
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/test/expressionrouter/generate_test.go b/test/expressionrouter/generate_test.go index fb64307e848..f284b902580 100644 --- a/test/expressionrouter/generate_test.go +++ b/test/expressionrouter/generate_test.go @@ -6,7 +6,6 @@ import ( "context" "fmt" "net/http" - "net/url" "testing" "time" @@ -44...
3
3
0
[{"id": "G0", "claim": "Replace the string literal \"GET\" with the http.MethodGet constant in the new calls to helpers.MustHTTPRequest (and the same in the other call sites).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Make the leading `/` i...
null
Kong__kubernetes-ingress-controller__4838
Kong/kubernetes-ingress-controller
4,838
defect
46929c11cddc0ae39057a1869024701cf562f1b8
5f4ec240af1122f883fda71be8dd4839302acd32
feat: HTTPRoute extensionRef filter converted onto plugin
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/internal/dataplane/parser/translate_httproute.go b/internal/dataplane/parser/translate_httproute.go index 23190ee5c2..25d4a3aaf4 100644 --- a/internal/dataplane/parser/translate_httproute.go +++ b/internal/dataplane/parser/translate_httproute.go @@ -270,8 +270,7 @@ func generateKongRoutesFromHTTPRouteMatch...
8
7
0
[{"id": "G0", "claim": "The new subtests should have more descriptive names, and a case that fails as expected with an assertion on the failure should be added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The repeatedly concatenated annotation key sh...
null
Kong__kubernetes-ingress-controller__5785
Kong/kubernetes-ingress-controller
5,785
defect
17588a4c7ecfd8fa134010f737e9f118b0b03be6
192cc6aacf125037dfd60d1d13637ade9d18a080
Report resource errors in DB mode
**What this PR does / why we need it**: Uses the [GDR Syncer result channel](https://github.com/Kong/go-database-reconciler/pull/76) to receive individual CRUD events and errors from sync operations. Log events and generate resource errors from sync errors, which are then output as Kubernetes Events. **Which issu...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 1eaf2fc7063..35701546e4c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -86,6 +86,11 @@ Adding a new version? You'll need three changes: ## Unreleased +### Added + +- DB mode now supports Event reporting for resources that failed to apply. + [#5785](https://github.c...
6
4
1
[{"id": "G0", "claim": "The first argument of logger.Info in HandleEvents should be an independent message followed by key-value pairs, not the value it is given.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "resourceErrors uses map[int]Resourc...
null
Kong__kubernetes-ingress-controller__5965
Kong/kubernetes-ingress-controller
5,965
defect
c722afb7472e96a1bdae8a94a36783d0d94e6468
69b454a8ca75364eadd128d0ddbfc8b38ab402ac
feat(plugins) allow cross-namespace plugin references
**What this PR does / why we need it**: Add a new colon-delimited value format for the `konghq.com/plugins` CSV annotation. The string before the colon indicates a remote KongPlugin namespace. This namespace must contain a ReferenceGrant that allows this reference. While the existing `konghq.com/plugins: foo,bar`...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2eb57c0bd6..fbdaf798e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -130,6 +130,16 @@ Adding a new version? You'll need three changes: for headers specified with `konghq.com/headers.*` annotations. Moreover parsing a content of `konghq.com/headers.*` is more robus...
10
8
3
[{"id": "G0", "claim": "The new NamespacedKongPlugin struct could be a type alias for k8s.io/apimachinery/pkg/types.NamespacedName.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "ExtractNamespacedKongPluginsFromAnnotations should have a unit test.", "cat...
null
Kong__kubernetes-ingress-controller__6059
Kong/kubernetes-ingress-controller
6,059
defect
436c1a32cb7468b3137a2a7a81aee7fe5bd6a8be
ceec8830019e83b325de89031e3b7e2a7b791af4
feat: resolve dependencies for Service, KongConsumer and KongConsumerGroup, improve for plugins
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob...
diff --git a/internal/dataplane/fallback/graph_dependencies.go b/internal/dataplane/fallback/graph_dependencies.go index 55476c5378e..77e285fcf7c 100644 --- a/internal/dataplane/fallback/graph_dependencies.go +++ b/internal/dataplane/fallback/graph_dependencies.go @@ -21,8 +21,12 @@ import ( // Every supported object ...
1
1
0
[{"id": "G0", "claim": "The dual lookup should be simplified by `continue`ing once a namespaced KongPlugin is found so the KongClusterPlugin fetch and priority re-check are skipped when a namespaced plugin already exists.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Kong__kubernetes-ingress-controller__6062
Kong/kubernetes-ingress-controller
6,062
defect
a8aeaac0e9d3110fae404b2017ef1698d5136231
2c797c9adeb79c5bd3d11b1c5415dd41da64e420
feat: resolve dependencies for KongPlugin and KongClusterPlugin
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/internal/dataplane/fallback/graph_dependencies_kong.go b/internal/dataplane/fallback/graph_dependencies_kong.go index 48a7fcda200..3008804e64e 100644 --- a/internal/dataplane/fallback/graph_dependencies_kong.go +++ b/internal/dataplane/fallback/graph_dependencies_kong.go @@ -1,6 +1,8 @@ package fallback ...
2
2
2
[{"id": "G0", "claim": "The new resolveKongPluginDependencies should also resolve Secret references made via KongPlugin ConfigPatches, not only ConfigFrom.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new resolveKongClusterPluginDependencies s...
null
Kong__kubernetes-ingress-controller__6073
Kong/kubernetes-ingress-controller
6,073
defect
eb04ce9dd29b581b83b0e0c557906bf051fe50fb
e7342072457313eb25f73ab1d30909d00f77f121
fix(diag) correct redaction toggle
**What this PR does / why we need it**: Reverses the dataplane logic for the sensitive config check. If diagnostic dumps are set to include sensitive data, it will use the original target content. If they are set to not include sensitive data, they will use a redacted content. **Which issue this PR fixes**: So...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 98b6f2eb90..e2f8cf913d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -178,6 +178,8 @@ Adding a new version? You'll need three changes: [#5919](https://github.com/Kong/kubernetes-ingress-controller/pull/5919) - Redacted values no longer cause collisions in configurati...
2
1
0
[{"id": "G0", "claim": "A unit test should be added to cover the diagnostic config-dump sanitization behaviour.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "sendDiagnostic should be made a no-op when client.IsKonnect() is true (or a separate dump of...
null
Kong__kubernetes-ingress-controller__6097
Kong/kubernetes-ingress-controller
6,097
defect
fd03b86eab52a9800c05a3978595c831ab7d02c4
83aa9749f0bfa641a7fc23581ff02021e5530648
fix(gwapi): fix missing predicates for gateway-to-reconcile
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/internal/controllers/configuration/kongupstreampolicy_utils.go b/internal/controllers/configuration/kongupstreampolicy_utils.go index 7161765168..b29462973a 100644 --- a/internal/controllers/configuration/kongupstreampolicy_utils.go +++ b/internal/controllers/configuration/kongupstreampolicy_utils.go @@ -2...
8
7
0
[{"id": "G0", "claim": "The error log for listing gateways for a service should use the key \"service\" with svc.GetName() instead of \"svc\", to be consistent with other log lines such as line 288.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
Kong__kubernetes-ingress-controller__6101
Kong/kubernetes-ingress-controller
6,101
defect
fd03b86eab52a9800c05a3978595c831ab7d02c4
d21564ca30e1bdcbc0f5c55a423209a5f86a9a2d
feat(diag) expose fallback diagnostic
**What this PR does / why we need it**: Expose a new `/debug/config/problems` endpoint that lists problem objects received from the fallback system. Structure config dump diagnostic metadata. Add additional metadata to diagnostic config dumps indicating whether the dump is a result of a fallback config push an...
diff --git a/internal/dataplane/fallback/cache_to_graph.go b/internal/dataplane/fallback/cache_to_graph.go index e3de15a3eb6..caee2062f45 100644 --- a/internal/dataplane/fallback/cache_to_graph.go +++ b/internal/dataplane/fallback/cache_to_graph.go @@ -8,6 +8,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" ...
3
2
1
[{"id": "G0", "claim": "Keep ObjectHash close to the graph definition as before and, instead of reusing it for diagnostics, define a separate type in the diagnostics package holding the fields passed to the response, preferably with explicit JSON tags used when marshaling.", "category": "design", "verdict": "supported"...
null
Kong__kubernetes-ingress-controller__6118
Kong/kubernetes-ingress-controller
6,118
defect
c24305af598daecd757164741f231e056c892ac3
06e37c3eb71cd9830d2a5576effbb29184c8b5ae
chore(tests): introduce isolated TestHTTPRouteWithBrokenPluginFallback
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/examples/gateway-httproute-broken-plugin-fallback.yaml b/examples/gateway-httproute-broken-plugin-fallback.yaml new file mode 100644 index 00000000000..0c0d5af77ba --- /dev/null +++ b/examples/gateway-httproute-broken-plugin-fallback.yaml @@ -0,0 +1,171 @@ +# This configuration file presents fallback confi...
1
1
0
[{"id": "G0", "claim": "The package-level helper `testScenario` should be renamed more precisely, e.g. `runHTTPRouteExampleTestScenario`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
Kong__kubernetes-ingress-controller__6132
Kong/kubernetes-ingress-controller
6,132
defect
7de426cbc2aad81f26851b18cd70615b5b03ebac
9e5c99a331ab704f2ad9f94abaec1f8fc1a24551
Fix CG+<service/route> associated plugins
**What this PR does / why we need it**: Make KongPlugins applied to both a KongConsumerGroup and Ingress or Service produce a plugin bound to both a consumer group and route (or service). **Which issue this PR fixes**: The test portion added by this PR currently fails. Instead of creating the plugin described ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 45b12ea1c8..74c9e84711 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -220,6 +220,11 @@ Adding a new version? You'll need three changes: - Fixed KIC non leaders correctly getting up to date Admin API addresses by not requiring leader election for the related controlle...
4
3
1
[{"id": "G0", "claim": "The condition `len(relations.Route)+len(relations.Service) > 0` should be written as `len(relations.Route) > 0 || len(relations.Service) > 0` to be more intuitive.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new co...
null
Kong__kubernetes-ingress-controller__6137
Kong/kubernetes-ingress-controller
6,137
defect
21ad6608c4dcd6367c12189938920812b17cabc0
792d9cffad0c58a5becadd460c932563a2376b0e
add integration tests for custom entities
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/Makefile b/Makefile index 926ee7b1f53..459a2925bfa 100644 --- a/Makefile +++ b/Makefile @@ -366,7 +366,7 @@ PKG_LIST = ./pkg/...,./internal/... INTEGRATION_TEST_TIMEOUT ?= "45m" E2E_TEST_TIMEOUT ?= "45m" E2E_TEST_RUN ?= "" -KONG_CONTROLLER_FEATURE_GATES ?= GatewayAlpha=true +KONG_CONTROLLER_FEATURE_GATE...
2
2
1
[{"id": "G0", "claim": "The example YAML's explanatory comment should read 'can be only used with Kong gateway enterprise installed' instead of the typo 'enterprised installed', as suggested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new ...
null
Kong__kubernetes-ingress-controller__6158
Kong/kubernetes-ingress-controller
6,158
defect
7dc67be4e6ec24d2652fef091bf8cc42a0d5b616
2e1ab3a0cfe8c592a0aa5c570321f8160c7b0f4a
chore(tests): introduce isolated TestHTTPRouteUseLastValidConfigWithBrokenPluginFallback
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/internal/manager/featuregates/feature_gates.go b/internal/manager/featuregates/feature_gates.go index 914ae273e69..0bfd55b26bb 100644 --- a/internal/manager/featuregates/feature_gates.go +++ b/internal/manager/featuregates/feature_gates.go @@ -28,7 +28,7 @@ const ( // SanitizeKonnectConfigDumps is the na...
2
2
1
[{"id": "G0", "claim": "The test step label duplicates the word \"broken\" (\"assign broken broken plugin to a working route\") and should read \"assign broken plugin to a working route\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The test ...
null
Kong__kubernetes-ingress-controller__6166
Kong/kubernetes-ingress-controller
6,166
defect
77af8dc7adb4cb37ce5763d48e4cc81618b5df46
744ddb82dc4b90c4bce5f08b39bb40439c4449c1
fix: handing GRPCRoute hostname from Gateway
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/internal/dataplane/translator/subtranslator/grpcroute.go b/internal/dataplane/translator/subtranslator/grpcroute.go index ce42517b498..b4fd75f444c 100644 --- a/internal/dataplane/translator/subtranslator/grpcroute.go +++ b/internal/dataplane/translator/subtranslator/grpcroute.go @@ -8,6 +8,7 @@ import ( ...
8
5
2
[{"id": "G0", "claim": "The error from storer.GetGateway is silently swallowed with `return nil`; it should be propagated (or at least logged, e.g. 'Invalid parentRef detected') so misconfigurations are visible.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
Kong__kubernetes-ingress-controller__6237
Kong/kubernetes-ingress-controller
6,237
defect
3fa3bc74e3ae66ca02ef8b8704a048836da370d9
30679316d252a3091caaa1fb9c0d4e995e9e23cc
fix: try recovering from gateway sync failure only on UpdateError
**What this PR does / why we need it**: We should try recovering with the fallback configuration (either generated or the persisted last valid one) only if we get an expected `UpdateError` from the `UpdateStrategy`. Otherwise, we can assume the error is unrecoverable through the fallback configuration (e.g. transien...
diff --git a/CHANGELOG.md b/CHANGELOG.md index c4cb761fc6..afdb5ab91b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -96,6 +96,9 @@ Adding a new version? You'll need three changes: - Services using `Secret`s containing the same certificate as client certificates by annotation `konghq.com/client-cert` can be correc...
1
1
0
[{"id": "G0", "claim": "The API of ReloadDeclarativeRawConfig is awkward because it returns a body that can still be meaningful when an error is returned, and the reviewer would prefer that be cleaned up out of this PR (e.g. by making a task / follow-up).", "category": "design", "verdict": "supported", "priority": "P2"...
null
Kong__kubernetes-ingress-controller__6298
Kong/kubernetes-ingress-controller
6,298
defect
ff56bcee6e033c43ea207265cc90b20a04c904b1
92d885bcdd4bf8369748f2286f61f69f31380ee5
chore(tests): do not use InsecureSkipVerify for GRPC and TLS tests
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, read our contributor guidelines https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#the-pull-request-submit-process and developer guide https://github.com/kubernetes/community/blob/mas...
diff --git a/examples/gateway-grpcroute-via-https.yaml b/examples/gateway-grpcroute-via-https.yaml index 12e0871ec3..3d7f50e136 100644 --- a/examples/gateway-grpcroute-via-https.yaml +++ b/examples/gateway-grpcroute-via-https.yaml @@ -43,8 +43,8 @@ kind: Secret metadata: name: grpcroute-example data: - tls.crt: L...
2
1
0
[{"id": "G0", "claim": "Add a document describing how to generate the certificate in examples/gateway-tlsroute.yaml so that it can be regenerated after it expires.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment should read \"mentioning t...
null