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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
smallrye__smallrye-config__696 | smallrye/smallrye-config | 696 | defect | dfedeac7d08c944c45d9f57de943e70ae0719dad | 3fe7922b8a3d92ee3f51d02ebeb35c4979389a07 | fix race condition in ConfigMappingLoader | Hi,
after enabling parallel unit tests on one of my projects I got test failures caused by a non thread safe implementation in ConfigMappingLoader:
```
java.lang.LinkageError: loader 'app' attempted duplicate class definition for io.smallrye.config.ConfigMappingLoaderTest$Server-1289738797Impl. (io.smallrye.conf... | diff --git a/implementation/src/main/java/io/smallrye/config/ConfigMappingLoader.java b/implementation/src/main/java/io/smallrye/config/ConfigMappingLoader.java
index 7c3333965..011d67568 100644
--- a/implementation/src/main/java/io/smallrye/config/ConfigMappingLoader.java
+++ b/implementation/src/main/java/io/smallrye... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added method-level synchronized on loadClass could probably be improved by locking on the class name instead (like the ClassLoader does), and the reviewer asks the PR be updated accordingly.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-config__871 | smallrye/smallrye-config | 871 | defect | 56b9c972cd471d1162ad6726dacb12ffb7946b1d | 698765947c90be3c686cf392c8f84599c2acbc41 | unwrap config instead of just cast | My app uses MicroProfile Config generically, and also uses the SmallRye implementation. My config provider returns a class called `SmallRyeAppSettings` which `implements Config`. I think this is valid according to the MP spec. However, when I try to inject config, I end up with a class cast exception.
```
Caused by... | diff --git a/cdi/src/main/java/io/smallrye/config/inject/ConfigPropertiesInjectionBean.java b/cdi/src/main/java/io/smallrye/config/inject/ConfigPropertiesInjectionBean.java
index 75e72b544..61928de6e 100644
--- a/cdi/src/main/java/io/smallrye/config/inject/ConfigPropertiesInjectionBean.java
+++ b/cdi/src/main/java/io/s... | 3 | 3 | 0 | [{"id": "G0", "claim": "The instanceof check added in ConfigPropertiesInjectionBean is unnecessary; unwrap SmallRyeConfig directly from the Config as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Also fix the other places in the code... | null |
smallrye__smallrye-config__907 | smallrye/smallrye-config | 907 | defect | ad8b6dffd49c1f4fe4d86cb7dcff9e408afcd5dd | 39d10256d89ed08d33fe4adb70f9a3acb44769f6 | NPE when obtaining ConfigValue via `getValue` | Fixes #906 | diff --git a/implementation/src/main/java/io/smallrye/config/ExpressionConfigSourceInterceptor.java b/implementation/src/main/java/io/smallrye/config/ExpressionConfigSourceInterceptor.java
index 740799f9f..09b73ecef 100644
--- a/implementation/src/main/java/io/smallrye/config/ExpressionConfigSourceInterceptor.java
+++ ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request should also provide the test case that causes the issue it fixes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallrye__smallrye-config__939 | smallrye/smallrye-config | 939 | defect | 636bc3be402efdd276352312deea7aabc85543bd | db123dacf12248e9c84d35111f8f126d47a2d33d | Support defaults in Maps | Adds a way to support defaults in Maps. This requires the `@WithDefaults` annotation, since we cannot generate the defaults without an explicit declaration because the Map value may not contain defaults for every property.
Example:
```java
@ConfigMapping(prefix = "map")
interface MapDefaults {
@Wit... | diff --git a/implementation/src/main/java/io/smallrye/config/ConfigMappingContext.java b/implementation/src/main/java/io/smallrye/config/ConfigMappingContext.java
index 044f32d73..7d24b1cda 100644
--- a/implementation/src/main/java/io/smallrye/config/ConfigMappingContext.java
+++ b/implementation/src/main/java/io/small... | 1 | 1 | 1 | [{"id": "G0", "claim": "Defaulting @WithDefault.value to \"\" hides that the default was never set until runtime, so the PR should not introduce a usability regression for a niche feature and should use a separate @WithDefaults annotation instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope... | null |
smallrye__smallrye-config__984 | smallrye/smallrye-config | 984 | defect | 6bd3669d79732288e5786d7659809c737f0dc316 | 5f5367f888f383c07d15914decf49d99fe56124e | Reduce String/StringBuilder allocations | This is addressing https://github.com/quarkusio/quarkus/issues/35406 is the most brutal way: reducing immutability and ensuring to reduce hot-paths useless allocations as much as possible | diff --git a/common/src/main/java/io/smallrye/config/common/utils/StringUtil.java b/common/src/main/java/io/smallrye/config/common/utils/StringUtil.java
index a66064013..1d9695fb7 100644
--- a/common/src/main/java/io/smallrye/config/common/utils/StringUtil.java
+++ b/common/src/main/java/io/smallrye/config/common/utils... | 6 | 2 | 1 | [{"id": "G0", "claim": "equalsIgnoreCaseReplacingNonAlphanumericByUnderscores should also handle the case where the property name is one char bigger than the mapped sequence, when the sequence's last char is a quote and the name's last two chars are underscores, by comparing only up to length - 1.", "category": "correc... | null |
smallrye__smallrye-mutiny__104 | smallrye/smallrye-mutiny | 104 | defect | 9defe13f672aa618e793ba510394acfd23fc3c7a | 692481566c7d0409411f1100787e95e0a8527bbe | Unchecked functions/consumers/suppliers helpers | This PR provides a set of helper classes to ease the integration of operation throwing checked exceptions. `java.util.functions` classes require the code to not throw checked exception. So it can be inconvenient to wrap the code in a try/catch construct. These helpers avoid that by doing the wrapping automatically.
... | diff --git a/documentation/src/main/docs/faq.adoc b/documentation/src/main/docs/faq.adoc
index a566b2926..df77967fa 100644
--- a/documentation/src/main/docs/faq.adoc
+++ b/documentation/src/main/docs/faq.adoc
@@ -9,6 +9,13 @@ To transform items synchronously use the `apply` operators:
include::../../../src/test/java/s... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the grammar of the new FAQ sentence \"`io.smallrye.mutiny.unchecked.Unchecked` let you wrap code throwing checked exceptions into the expected Java type\" — the reviewer suggests \"lets you wrap the code\", and in the author's proposed rewording asks that \"wrap\" become \"wraps\".", "catego... | null |
smallrye__smallrye-mutiny__1369 | smallrye/smallrye-mutiny | 1,369 | defect | 521822f445c34dc67a652cf256f155d24a310757 | 4aec4ad925154c2857d07f3a932f2f94dfb2de78 | docs: document how to express branching in a pipeline | Fixes #1367 | diff --git a/documentation/docs/guides/branching.md b/documentation/docs/guides/branching.md
new file mode 100644
index 000000000..8a9292717
--- /dev/null
+++ b/documentation/docs/guides/branching.md
@@ -0,0 +1,53 @@
+---
+tags:
+- guide
+- intermediate
+---
+
+# How to do branching in a reactive pipeline?
+
+Mutiny an... | 6 | 6 | 0 | [{"id": "G0", "claim": "The opening sentence should read \"do not have _branching_ operators similar to `if / else` and `switch/case` statements in Java\" instead of \"that would be similar to ... `switch / case`\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
smallrye__smallrye-mutiny__1448 | smallrye/smallrye-mutiny | 1,448 | defect | f6be4a86c1d0ad2190344ff477053ac1060248b5 | b552fc4fd50c233cac04f44dcc85968888753bc1 | fix: rewrite of the concatenation operators | This fixes race conditions in concatMap and stream concatenation operators.
Refs: #1388 | diff --git a/implementation/revapi.json b/implementation/revapi.json
index d37de1ac5..2c593c3f8 100644
--- a/implementation/revapi.json
+++ b/implementation/revapi.json
@@ -51,7 +51,14 @@
"criticality" : "highlight",
"minSeverity" : "POTENTIALLY_BREAKING",
"minCriticality" : "documented",
- "differenc... | 1 | 1 | 0 | [{"id": "G0", "claim": "The manual `upstream = subscription;` assignment in ConcatMapSubscriber.onSubscribe is unnecessary because the UPSTREAM_UPDATER atomic field updater already sets the field.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-mutiny__1453 | smallrye/smallrye-mutiny | 1,453 | defect | 3de0f29c3518381a05d8cf16981314748e381173 | 00e1dcdaa77b123aa4718eea606c158a6b063491 | fix: exponentialBackoffExpireAt should start at 0 | Fixes https://github.com/smallrye/smallrye-mutiny/issues/1447 | diff --git a/implementation/src/main/java/io/smallrye/mutiny/helpers/ExponentialBackoff.java b/implementation/src/main/java/io/smallrye/mutiny/helpers/ExponentialBackoff.java
index a735382b9..4d3e28cc0 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/helpers/ExponentialBackoff.java
+++ b/implementation/src/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test covering the PR's changed retry-backoff/expiry behaviour, in UniOnFailureRetryTest.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallrye__smallrye-mutiny__1483 | smallrye/smallrye-mutiny | 1,483 | defect | 8fcbf85e7886fa692011931c4e81c109828197f0 | 49a83e53185efae46b5d98136089e2a69fc482bd | fix: properly remove subscriptions in ReplayOperator | Fixes a memory leak caused by old subscriptions not being removed properly. In addition, this fixes the edge case where no completion event would be sent for replay subscriptions if the number of requested items was exactly equal to the number of available items.
Fixes #1482 | diff --git a/implementation/src/main/java/io/smallrye/mutiny/operators/multi/replay/AppendOnlyReplayList.java b/implementation/src/main/java/io/smallrye/mutiny/operators/multi/replay/AppendOnlyReplayList.java
index 8698c38d0..496b72f96 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/operators/multi/replay/... | 2 | 1 | 0 | [{"id": "G0", "claim": "Rename the snake_case test methods (should_complete_when_request_equals_max, should_remove_subscription_after_completion) to camel case to match the project's naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
smallrye__smallrye-mutiny__1693 | smallrye/smallrye-mutiny | 1,693 | defect | 0f930a6606147c13e3ad7b406cd6ed1b78c6ed25 | bd4d3adda0cea685e6107e11a3d11a33d779cf89 | fix: timing issue in MultiOnSubscribeCall where the Multi could terminate before the Uni |
Fixes #1678 | diff --git a/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiOnSubscribeCall.java b/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiOnSubscribeCall.java
index 0107c86f3..45aada86c 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiOnSubscribeCall.... | 2 | 2 | 0 | [{"id": "G0", "claim": "A comment should be added explaining why a try/finally cannot be used here because the callback must be invoked without holding the lock.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In uniFailed, wrapping the critical ... | null |
smallrye__smallrye-mutiny__1731 | smallrye/smallrye-mutiny | 1,731 | defect | 79b9c6aa144b9d2dcd66ec5746d4baeca6f9f75c | 86928f05f92d36bc9657b33367f3463bf107838c | Additional overload of distinct using a key extractor | As discussed in https://github.com/smallrye/smallrye-mutiny/discussions/1729, this PR adds an overload to `distinct` in `MultiSelect` so that a function can be provided to extract a key which is used to eliminate duplicates. This can provide a lower memory footprint than the 2 existing methods as only references to sim... | diff --git a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiSelect.java b/implementation/src/main/java/io/smallrye/mutiny/groups/MultiSelect.java
index 26252e2fa..a1eac8590 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiSelect.java
+++ b/implementation/src/main/java/io/smallrye/mu... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the test helper class, use `{ }` blocks even for one-line `if` statements.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "It would be great to have a test with something other than `Functions.identity()` as the key ext... | null |
smallrye__smallrye-mutiny__180 | smallrye/smallrye-mutiny | 180 | defect | c08060e7ecb779b3cc2c0a4fce5b55949ccb5266 | 9a151e119d16743d901978f7d74263231a113175 | Add support for repeat whilst | Improve the support of paginated API:
```
Multi<Page> stream = Multi.createBy().repeating()
.uni(
() -> new AtomicInteger(),
state -> api.retrieve(state.getAndIncrement()))
.whilst(page -> page.hasNext());
```
Fix #176 | diff --git a/documentation/src/main/docs/faq.adoc b/documentation/src/main/docs/faq.adoc
index a268c2877..9af36be1b 100644
--- a/documentation/src/main/docs/faq.adoc
+++ b/documentation/src/main/docs/faq.adoc
@@ -547,7 +547,7 @@ include::../../../src/test/java/snippets/PollableSourceTest.java[tags=code2]
=== How do ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new FAQ sentence \"lets you should the number of iteration using\" is garbled and missing something, so it does not make sense.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `until` bullet is contradictory: it says... | null |
smallrye__smallrye-mutiny__1848 | smallrye/smallrye-mutiny | 1,848 | defect | 924d13d4ecfc5b7c89dd4f100fc9ca37d1f81860 | aefa34ace6ae7c4d15d1ede434c4d0010af9dc4e | refactor: make the onFailure to be typed when we use onFailure(RuntimeException.class) | When I am using mutiny many times I would like to handle a given type of Exception nicelly to recover or convert the exception.
```
onFailure(SomeException.class)
.transform(someException -> {
LOGGER.info("some exception occured with field: {}", someException.someSpecialField);
return new Some... | diff --git a/implementation/revapi.json b/implementation/revapi.json
index d37de1ac5..024bd6541 100644
--- a/implementation/revapi.json
+++ b/implementation/revapi.json
@@ -51,7 +51,207 @@
"criticality" : "highlight",
"minSeverity" : "POTENTIALLY_BREAKING",
"minCriticality" : "documented",
- "differen... | 2 | 2 | 1 | [{"id": "G0", "claim": "Rename the TT parametric type of UniOnFailure (and the related typed classes) to E (for error).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add more unit tests showing the failure type specialization in the API, especi... | null |
smallrye__smallrye-mutiny__185 | smallrye/smallrye-mutiny | 185 | defect | 42c442991b8df0c3fd4cc43ded8639870b5cc562 | 9d3ddc19e97166149699ff6283a6e8f1ad7bb028 | Add onItem() / onFailure() invokeUni | Add `onItem() / onFailure() invokeUni`.
Relates to #178.
| diff --git a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiOnFailure.java b/implementation/src/main/java/io/smallrye/mutiny/groups/MultiOnFailure.java
index 152b9aa81..fbdabe0bf 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiOnFailure.java
+++ b/implementation/src/main/java/io/sm... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the new invokeUni methods of MultiOnFailure and the other group classes, the null checks could use Objects.requireNonNull instead of ParameterValidation.nonNull / a manual NullPointerException throw.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduc... | null |
smallrye__smallrye-mutiny__1857 | smallrye/smallrye-mutiny | 1,857 | defect | 3d6cfedc43d8d9d4c58dd2bd268fd271c9484507 | 17249e51e0a9f66b4ee0f085838a6556d3ac6e78 | fix: harmonize cancellation and termination callback orders | This aligns with the other termination operators where the cancellation signal is sent upstream only after the callback / uni provider has completed.
Fixes #1843 | diff --git a/implementation/src/main/java/io/smallrye/mutiny/operators/uni/UniOnTermination.java b/implementation/src/main/java/io/smallrye/mutiny/operators/uni/UniOnTermination.java
index 1b531c8e0..832b4813f 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/operators/uni/UniOnTermination.java
+++ b/impleme... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new test checkCancellationAndTerminationCallbackOrder is flaky and needs to be reworked.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallrye__smallrye-mutiny__1911 | smallrye/smallrye-mutiny | 1,911 | defect | 88d3161d3355fde65cefb5f7cdaa787a4d1dc7b4 | b56e31351a11dcc641d9db525c68a8178472fdb8 | fix: deadlock in Uni memoization | There was a possibility for pipelines having multiple memoized Unis to cause a deadlock. This is due to the usage of an internal reeentrant lock that was held even when forwarding upstream and downstream signals, which is bad because this exposes to deadlocks by design, and this may also involved I/O operations.
Loc... | diff --git a/implementation/src/main/java/io/smallrye/mutiny/operators/uni/UniMemoizeOp.java b/implementation/src/main/java/io/smallrye/mutiny/operators/uni/UniMemoizeOp.java
index f013818e3..a51b8374f 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/operators/uni/UniMemoizeOp.java
+++ b/implementation/src/... | 1 | 1 | 0 | [{"id": "G0", "claim": "Adding runSubscriptionOn with an executor to the combined.subscribeAsCompletionStage() call would make the test fail instead of hang on deadlock, and is worth adding.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-mutiny__2003 | smallrye/smallrye-mutiny | 2,003 | defect | 7634309efee9e678082c6b0d5ed1c4b3a73bfb87 | 251d09fad660e5c9c96be10d4cefe51849473751 | Reproducer and fix for the groupBy operator upstream requests | It makes prefetch amount of request each time drain loop does not emit any items
Seen in testing a solution for https://github.com/quarkusio/quarkus/issues/50595 | diff --git a/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiGroupByOp.java b/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiGroupByOp.java
index e695d9c5d..0b8fbd451 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiGroupByOp.java
+++ b/impleme... | 3 | 3 | 0 | [{"id": "G0", "claim": "Consider using `AssertSubscriber` in the new test instead of a bare lambda subscriber, though it may not be very relevant here.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the `System.out.println(requestCounter.get());`... | null |
smallrye__smallrye-mutiny__2021 | smallrye/smallrye-mutiny | 2,021 | defect | 8b8d066c58caa353eea8405493975cac4bed661b | 08eb285ba6de2e40d7439a4f9b4d6bd4906fa74d | fix: demand pauser clear queue inside drain loop to avoid concurrent read access | The issue seen in #2019 checks : MultiDemandPausingTckTest>PublisherVerification.required_spec317_mustNotSignalOnErrorWhenPendingAboveLongMaxValue
NPE in spsc queue :
```
java.lang.NullPointerException: Cannot invoke "java.util.concurrent.atomic.AtomicReferenceArray.length()" because "buf" is null
at org.jctool... | diff --git a/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiDemandPausingOp.java b/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiDemandPausingOp.java
index 3bfe4a2e9..034dc3692 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/operators/multi/MultiDemandPausingOp.... | 2 | 2 | 1 | [{"id": "G0", "claim": "clearQueue() should be flipped to do the clearQueue CaS before the wip increment, because in the current order a rare race may trigger another drain loop iteration before the flag clearance has been set, so the queue may be missed when clearing.", "category": "correctness", "verdict": "supported... | null |
smallrye__smallrye-mutiny__205 | smallrye/smallrye-mutiny | 205 | defect | 0d429899a5e486219c376a13f2e662cf7f0ca65b | 32f727f7c2044e72284e066c2dae491e80bb903f | Add eventually methods to Uni | This is the equivalent of a finally block in Java.
Relates to #178 | diff --git a/implementation/src/main/java/io/smallrye/mutiny/Uni.java b/implementation/src/main/java/io/smallrye/mutiny/Uni.java
index 5e95ef23d..eb62bd4c3 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/Uni.java
+++ b/implementation/src/main/java/io/smallrye/mutiny/Uni.java
@@ -5,10 +5,7 @@
import java.u... | 1 | 1 | 1 | [{"id": "G0", "claim": "The PR should add the new Uni.eventually() shortcuts to the shortcut table in the documentation.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallrye__smallrye-mutiny__226 | smallrye/smallrye-mutiny | 226 | defect | eeed07a528428d77faa6ce82ca5d18e2cfad54da | 931c6b3b287f5e159f6473640f31c1ee35bdedfa | Create onCancellation() groups for Uni and Multi | Fix for #221
- Move uni.on().cancellation() to uni.onCancellation()
- Move multi.on().cancellation() to multi.onCancellation()
- Documentation update for multi.onCancellation()
| diff --git a/documentation/src/test/java/snippets/EventsTest.java b/documentation/src/test/java/snippets/EventsTest.java
index 3d781ee0c..80f51c5ce 100644
--- a/documentation/src/test/java/snippets/EventsTest.java
+++ b/documentation/src/test/java/snippets/EventsTest.java
@@ -17,8 +17,7 @@ public void test() {
... | 2 | 2 | 0 | [{"id": "G0", "claim": "The MultiOnCancel javadoc should mention what happens when the callback throws an exception, when the supplier throws or produces a failure, and that the produced item is ignored.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
smallrye__smallrye-mutiny__351 | smallrye/smallrye-mutiny | 351 | defect | dfb4823e686b8aaf2bfd603d10ff9f5d26aca4f1 | ff53cd194eaa7e6c0c700faf98eea54d7c41c9dc | Implement batching with maximumDelay | Fixes #232. Thanks to @dcram for providing the code idea. | diff --git a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiGroupIntoLists.java b/implementation/src/main/java/io/smallrye/mutiny/groups/MultiGroupIntoLists.java
index 71f1c0498..d575c7468 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiGroupIntoLists.java
+++ b/implementation/src/... | 6 | 4 | 1 | [{"id": "G0", "claim": "The indentation had been changed and should be restored.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "We would need tests for the change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "intr... | null |
smallrye__smallrye-mutiny__377 | smallrye/smallrye-mutiny | 377 | defect | 4c9ccebad708711b3512b798a3c1263560db4c36 | 89f6d6c61bb8077c3c7fd55de3f67a96a4d85cd4 | Internal optimisations | A set of performance-oriented optimisations and cleanups. | diff --git a/implementation/src/main/java/io/smallrye/mutiny/converters/uni/ToPublisher.java b/implementation/src/main/java/io/smallrye/mutiny/converters/uni/ToPublisher.java
index 8b1a2e6e6..91335434c 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/converters/uni/ToPublisher.java
+++ b/implementation/src/... | 3 | 2 | 1 | [{"id": "G0", "claim": "The one-line class wrapping the Uni-to-Publisher conversion may not be needed.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "UniToMultiPublisher.onItem should not call downstream.onError when the failure comes from the downstream; ... | null |
smallrye__smallrye-mutiny__457 | smallrye/smallrye-mutiny | 457 | defect | d96cb81b7f3b9c85e80bcc56753da13e32654720 | 2288a1959b7dd5937d320e3bb2529f3371d793eb | Add the ability to create a Uni from a Future or a Supplier of Future | Fix #456
| diff --git a/implementation/src/main/java/io/smallrye/mutiny/groups/UniCreate.java b/implementation/src/main/java/io/smallrye/mutiny/groups/UniCreate.java
index 98dc93c65..a8bb5d139 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/groups/UniCreate.java
+++ b/implementation/src/main/java/io/smallrye/mutiny/g... | 12 | 12 | 0 | [{"id": "G0", "claim": "In the UniCreate.fromFuture Javadoc, the line should read \"requires blocking a thread\" instead of \"requires a thread blocked\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the UniCreate.fromFuture Javadoc, the line... | null |
smallrye__smallrye-mutiny__487 | smallrye/smallrye-mutiny | 487 | defect | b6390ee2576c69e1b18ebb6b298dbcd40547307c | a30bad7131f57972b852f182139061ef22d97963 | Uni.replaceWithVoid | Uni.replaceWithNull is useful, but sometimes we need the return type to be switched to Void.
Fixes #486 | diff --git a/implementation/src/main/java/io/smallrye/mutiny/Uni.java b/implementation/src/main/java/io/smallrye/mutiny/Uni.java
index 97d0baac0..d6145411d 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/Uni.java
+++ b/implementation/src/main/java/io/smallrye/mutiny/Uni.java
@@ -805,6 +805,17 @@ default Un... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a note to the replaceWithVoid javadoc explaining how it differs from replaceWithNull.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-mutiny__595 | smallrye/smallrye-mutiny | 595 | defect | 2b0603304527877af8b8e423a3b3f39bb9295c97 | 067cd112b13e08ee30ab8df38278ab4dcb695d3c | Implement Uni.replaceIfNullWith(value / supplier) shortcuts | Closes #175
| diff --git a/implementation/src/main/java/io/smallrye/mutiny/Uni.java b/implementation/src/main/java/io/smallrye/mutiny/Uni.java
index 1e0fdc9b7..9a16e6d8b 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/Uni.java
+++ b/implementation/src/main/java/io/smallrye/mutiny/Uni.java
@@ -690,6 +690,30 @@ default Un... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new replaceIfNullWith shortcut should also be added to the shortcut list in the documentation.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-mutiny__627 | smallrye/smallrye-mutiny | 627 | defect | 58c1ee4fd98165a81ef74cd3c0fe9ee0362f2056 | c45d1ae6371642d96247053b9b3ad43f01882694 | Add failWith methods to UniOnNotNull | Add the following sintax
```
Uni.createFrom().item("hello").onItem().ifNotNull().failWith(() -> new IllegalStateException("boom"))
```
Fixes #624
Need a little help to check typos, english is not my main language! 😞
| diff --git a/implementation/src/main/java/io/smallrye/mutiny/groups/UniOnNotNull.java b/implementation/src/main/java/io/smallrye/mutiny/groups/UniOnNotNull.java
index a70884d2e..0ed99e2c1 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/groups/UniOnNotNull.java
+++ b/implementation/src/main/java/io/smallrye... | 7 | 7 | 1 | [{"id": "G0", "claim": "The failure produced by the supplier should be null-checked with Mutiny's ParameterValidation instead of Objects.requireNonNull.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "failWith(Supplier) need not wrap its result i... | null |
smallrye__smallrye-mutiny__69 | smallrye/smallrye-mutiny | 69 | defect | f449222cc0be4bd7d2b9abb48e0cf13e034913e6 | dec054c95f0ca72a3266e29e9d119415b6571d4e | Provides the Multi.createFrom().resource() builder | This builder allows attaching finalizers called when the stream completes, fails or when the subscriber cancels.
It is useful to perform cleanup after consumption or failure. | diff --git a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiCreate.java b/implementation/src/main/java/io/smallrye/mutiny/groups/MultiCreate.java
index b4e88916e..f2f1f48e3 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/groups/MultiCreate.java
+++ b/implementation/src/main/java/io/smallrye/mu... | 3 | 3 | 0 | [{"id": "G0", "claim": "The class-level javadoc should read \"supplier called for/by each individual Subscriber\" — a \"by\" or \"with\" is missing between \"supplier\" and \"called\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc sho... | null |
smallrye__smallrye-mutiny__737 | smallrye/smallrye-mutiny | 737 | defect | d20b7e61d3e3d8279d7eeb71f4639488b38a4740 | 2ef66d49d68d7780530c21a620cf48e429b0a6c5 | Add item timeouts to Multi | This PR adds `ifNoItem()` to Multi allowing for handling when a stream is slower than expected. The operator uses a timer to count down the time since the last item was emitted and will throw a TimeoutException if the threshold is exceeded. This PR does not address the overall time it takes a Multi to terminate, only t... | diff --git a/implementation/revapi.json b/implementation/revapi.json
index ec2025c61..8bd9ba968 100644
--- a/implementation/revapi.json
+++ b/implementation/revapi.json
@@ -26,6 +26,11 @@
"code": "java.annotation.added",
"annotation": "@io.smallrye.common.annotation.CheckReturnValue",
"justif... | 5 | 4 | 2 | [{"id": "G0", "claim": "The new static AbstractMulti.subscribe() optimization is unneeded and should be removed to simplify the code and to avoid the risk of accidentally introducing a StrictMultiSubscriber between operators.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id... | null |
smallrye__smallrye-mutiny__87 | smallrye/smallrye-mutiny | 87 | defect | 05d238237667afa9df1c1dd824d98f6f703f2266 | 477ce126eff1d79b850af777f1643523cccfe8ab | Explain the difference between emitOn and subscribeOn | Add a few sentences and an example illustrating how to invoke a blocking method for each item of a Multi.
Fix https://github.com/smallrye/smallrye-mutiny/issues/84. | diff --git a/documentation/src/main/docs/faq.adoc b/documentation/src/main/docs/faq.adoc
index e6c1eabc8..bc0e7c578 100644
--- a/documentation/src/main/docs/faq.adoc
+++ b/documentation/src/main/docs/faq.adoc
@@ -323,6 +323,16 @@ Here we pass the default worker thread pool, but you can use your own executor.
Note that... | 1 | 1 | 0 | [{"id": "G0", "claim": "The documentation added by this pull request should read \"But, when you are dealing with `Multi`...\" instead of the typo \"But, we you are dealing with `Multi`...\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-mutiny__875 | smallrye/smallrye-mutiny | 875 | defect | ff046d8a7d896600849455245a79833631d699e8 | eb2664abfb92adc95651fefd295efbc09e55e455 | New Multi demand pacing operator | Demand pacing can be controlled from previous demands and the number of emitted items since the last request.
The initial implementation ships with a fixed demand implementation of the demand pacing interface.
Users can easily define their own policies, and we can introduce other concrete implementations in the future... | diff --git a/documentation/src/main/jekyll/_data/categories.yml b/documentation/src/main/jekyll/_data/categories.yml
index 400d6797d..3d3f03dd3 100644
--- a/documentation/src/main/jekyll/_data/categories.yml
+++ b/documentation/src/main/jekyll/_data/categories.yml
@@ -30,6 +30,7 @@
- logging
- context-passing... | 4 | 3 | 2 | [{"id": "G0", "claim": "A cancellation check should be added in the onSubscribe/demandAndSchedule path so that the downstream onFailure calls are safe once the subscription is cancelled and no extra executor task is scheduled after cancellation.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc... | null |
smallrye__smallrye-mutiny__997 | smallrye/smallrye-mutiny | 997 | defect | 1ddf9ecc0113a8a1ae11a90bd98625aa39c9f4f6 | b128d6149497ac5279d8702722f8103a7de83246 | ConcatMap operator without prefetch | Requests are forwarded lazily to the upstream when:
* First downstream request
* The inner has no more outstanding requests
* The inner completed without emitting items or with outstanding requests
Added entrypoints `Multi.concatMap(mapper, prefetch)` and `MultiFlatten.concatanate(prefetch)`.
Existing `trans... | diff --git a/implementation/src/main/java/io/smallrye/mutiny/Multi.java b/implementation/src/main/java/io/smallrye/mutiny/Multi.java
index 4aa1b1ac3..82db54357 100644
--- a/implementation/src/main/java/io/smallrye/mutiny/Multi.java
+++ b/implementation/src/main/java/io/smallrye/mutiny/Multi.java
@@ -459,7 +459,7 @@ def... | 4 | 4 | 1 | [{"id": "G0", "claim": "The API should expose the no-prefetch mode through `concatenate(prefetch)` with the 2.x default inverted to no prefetch (a boolean restores prefetching), rather than adding a separate `concatMap(mapper, prefetch)` shortcut to Multi.", "category": "design", "verdict": "supported", "priority": "P2... | null |
smallrye__smallrye-open-api__1350 | smallrye/smallrye-open-api | 1,350 | defect | a64b6af6156337f0a2dbc4ab9d7d559fee991817 | 804b8ef79591626ac9fff6f220a3301a12ce7923 | Set YAMLFactory loader options to allow for larger files than the current SnakeYaml constraint (3MB) | Fixes #1351
This is to pass a `LoaderOptions`, that carries a hardcoded value for the limit of loaded files, to a [jackson-dataformats-text](https://github.com/FasterXML/jackson-dataformats-text) YAMLFactory instance [when OpenAPIProcessor creates it](https://github.com/smallrye/smallrye-open-api/blob/5d7ae7ce8c90ea... | diff --git a/README.adoc b/README.adoc
index 92a1f2ddd..f70bac5ff 100644
--- a/README.adoc
+++ b/README.adoc
@@ -42,3 +42,5 @@ mvn clean install
** A fully-qualified class name of an implementation of a Jackson property naming strategy base class (`com.fasterxml.jackson.databind.PropertyNamingStrategies.NamingBase`). ... | 3 | 3 | 1 | [{"id": "G0", "claim": "A config value under `mp.openapi.extensions.smallrye.` should be added so the maximum static file size constraint is configurable instead of hard-coded.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Tests are needed for the new m... | null |
smallrye__smallrye-open-api__1706 | smallrye/smallrye-open-api | 1,706 | defect | e903be11d64f560ab0f9d6a6c9670b77eb13ff78 | 2b12346b8a0a93f7ebedd46dccdc6e3d355b6289 | Fix false-positive duplicate operation-ID w/ javax+jakarta annotations | Fixes #1688 | diff --git a/extension-jaxrs/src/main/java/io/smallrye/openapi/jaxrs/JaxRsAnnotationScanner.java b/extension-jaxrs/src/main/java/io/smallrye/openapi/jaxrs/JaxRsAnnotationScanner.java
index 46c8c3f39..3c61bd599 100644
--- a/extension-jaxrs/src/main/java/io/smallrye/openapi/jaxrs/JaxRsAnnotationScanner.java
+++ b/extensi... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test method should add an explicit assertion — e.g. wrap the scan call in assertDoesNotThrow — to make explicit that nothing is thrown under FAIL DuplicateOperationIdBehavior and to quiet Sonar's missing-assertion bug flag.", "category": "testing", "verdict": "supported", "priority": "P2... | null |
smallrye__smallrye-open-api__1823 | smallrye/smallrye-open-api | 1,823 | defect | e47033dca7fe383ebfcc64b4c8abf64156966a3e | 04e5ad44f96e1af6edee41fdce6af57ea537caed | feat(spring): support SpringDoc `@ParameterObject` | proposal for support of @ParameterObject as discussed in
https://github.com/smallrye/smallrye-open-api/issues/1819 | diff --git a/extension-spring/pom.xml b/extension-spring/pom.xml
index 13f40bb8d..e10930575 100644
--- a/extension-spring/pom.xml
+++ b/extension-spring/pom.xml
@@ -14,6 +14,7 @@
<properties>
<version.spring>5.3.34</version.spring>
+ <version.springdoc>1.8.0</version.springdoc>
</properties>... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Spring scanner should treat the fields of an un-annotated SpringDoc `@ParameterObject` bean passed to a GET method as query parameters on its own, without relying on or using Jakarta REST `@QueryParam` annotations.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope... | null |
smallrye__smallrye-open-api__2169 | smallrye/smallrye-open-api | 2,169 | defect | bd6420eaf04c330774a4b688ffa09e8a2b6a50a1 | 70b3ce9d7d1dc55eeaa9e541883e9c3f85470abc | Add support for managed JAX-RS subresource locators | This addresses #2168. The problem originates from the fact that `context.getResourceTypeResolver().resolve(method.returnType());` was assumed to contain the type of the sub resource. However, when dealing with managed resources, the `methodReturnType` will be set to `Class<SomeManagedResource>` which will not be found ... | diff --git a/extension-jaxrs/src/main/java/io/smallrye/openapi/jaxrs/JaxRsAnnotationScanner.java b/extension-jaxrs/src/main/java/io/smallrye/openapi/jaxrs/JaxRsAnnotationScanner.java
index 845754652..e209a1f60 100644
--- a/extension-jaxrs/src/main/java/io/smallrye/openapi/jaxrs/JaxRsAnnotationScanner.java
+++ b/extensi... | 2 | 2 | 2 | [{"id": "G0", "claim": "The `Class<X>` return type parameter should be extracted after the raw type has been resolved (so the resolver sees the raw type before unwrapping), rather than resolved on the extracted type argument; the reviewer proposes that ordering in a suggestion block.", "category": "correctness", "verdi... | null |
smallrye__smallrye-open-api__2248 | smallrye/smallrye-open-api | 2,248 | defect | a2ada460b93526730c3f6592cd70e50e8ecc914d | 03e4016ede8147696f8146f3350ba0b561ee79f4 | Add option to disable sorted parameters | Closes #1957
This will also be cherry-picked for 4.0.11 | diff --git a/README.adoc b/README.adoc
index e2092cc62..fa9a1f33d 100644
--- a/README.adoc
+++ b/README.adoc
@@ -95,3 +95,11 @@ Set this value in order to change the maximum threshold for processed static fil
mp.openapi.extensions.smallrye.merge-schema-examples
----
Set this boolean value to disable the merging of t... | 2 | 2 | 0 | [{"id": "G0", "claim": "The README documentation for the new `mp.openapi.extensions.smallrye.sorted-parameters.enable` option should state what its default value is.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The conditional sort of the parame... | null |
smallrye__smallrye-open-api__2256 | smallrye/smallrye-open-api | 2,256 | defect | a2ada460b93526730c3f6592cd70e50e8ecc914d | fcf1a8abdd52e7edfcc120cb60c40e2ccc3d6c4f | fix: use array item schema ref when available instead of inline schema | Resolves problem described in quarkusio/quarkus#47653
This will also be cherry-picked for 4.0.11 | diff --git a/core/src/main/java/io/smallrye/openapi/runtime/io/schema/SchemaFactory.java b/core/src/main/java/io/smallrye/openapi/runtime/io/schema/SchemaFactory.java
index 12f7ebf5a..467d65e15 100644
--- a/core/src/main/java/io/smallrye/openapi/runtime/io/schema/SchemaFactory.java
+++ b/core/src/main/java/io/smallrye/... | 1 | 1 | 1 | [{"id": "G0", "claim": "Wrapping the result of readClassSchema(context, type, false) in lookupRef seems contradictory, and it is unclarified where and when the item schema gets registered; readClassSchema's other setItems sites may also need to look up references.", "category": "correctness", "verdict": "supported", "p... | null |
smallrye__smallrye-open-api__2257 | smallrye/smallrye-open-api | 2,257 | defect | a2ada460b93526730c3f6592cd70e50e8ecc914d | 20a28b008b7446d4343bda8b7f21e091a07048f8 | fix: preserve Schema annotation `nullable` after setting type | Fixes #2254
This will also be cherry-picked for 4.0.11 | diff --git a/core/pom.xml b/core/pom.xml
index aef809cca..ed7f054d5 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -113,6 +113,12 @@
<version>1.1.7</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>org.jetbrains</groupId>
+ <artifactId... | 1 | 1 | 1 | [{"id": "G0", "claim": "Needing to reorder setNullable after setType in SchemaFactory.readSchema suggests SchemaSupport.setType/setNullable are broken, apparently because setTypeList calls setType unconditionally and thereby loses the nullable extension, so the root cause should be fixed in setTypeList (only calling se... | null |
smallrye__smallrye-open-api__2465 | smallrye/smallrye-open-api | 2,465 | defect | 427c1ff1061038ec3cc3f285299cabc3d3fabe4b | ac90ee5ce666e85e9eb8c8124cee9747668b90dd | Add filter and configuration to remove any kind of unused component | Add filter and configuration to remove any kind of unused component.
Closes #2463 | diff --git a/README.adoc b/README.adoc
index bda303248..612868902 100644
--- a/README.adoc
+++ b/README.adoc
@@ -53,12 +53,22 @@ Define a naming strategy to be used globally for all schema properties. Set to o
** A fully-qualified class name of an implementation of a JSON-B property naming strategy (`jakarta.json.bind... | 5 | 4 | 4 | [{"id": "G0", "claim": "removeSchemaReferences should also include the additional OAS 3.1 sub-schema getters (getContains, getContentSchema, getDependentSchemas, getElseSchema, getIfSchema, getPatternProperties, getPrefixItems, getPropertyNames, getThen, getUnevaluatedItems, getUnevaluatedProperties), or iterate reflec... | null |
smallrye__smallrye-open-api__2548 | smallrye/smallrye-open-api | 2,548 | defect | b696ab5c1b2f877c9f28bef88b84c8fa1aa79fec | 6f22686cc5fafcb64d9fe40422b774b790b6d5a2 | Process profiles in filter phase | For quarkusio/quarkus#53479
This change moves the handling of operation profiles to the filter phase, allowing operations contributed to the model from a static file or `OASModelReader` to be included/excluded according to any given configurations. | diff --git a/README.adoc b/README.adoc
index 84e0fc3f4..8b4735aab 100644
--- a/README.adoc
+++ b/README.adoc
@@ -169,7 +169,9 @@ Set this boolean value to enable or disable the expansion of YAML aliases when l
mp.openapi.extensions.smallrye.scan.profiles
mp.openapi.extensions.smallrye.scan.exclude.profiles
----
-The... | 1 | 1 | 1 | [{"id": "G0", "claim": "When both an include list and an exclude list are configured, the include list is ignored completely and only the exclude list takes effect, even though the user can specify both.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallrye__smallrye-reactive-messaging__1018 | smallrye/smallrye-reactive-messaging | 1,018 | defect | 60666c5ef90463289fc1c62d2df94d40c43daab1 | e602346538c6e298cd98b2b1b5fbb8cf4cc1b436 | Add delivery.timeout.ms configuration parameter | * add delivery.timeout.ms to set an expiration time limit
* Fix #1013 | diff --git a/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/KafkaConnector.java b/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/KafkaConnector.java
index 5dab1b471a..ecbc2b6147 100644
--- a/smallrye-reactive-messaging-kafka/src/main/java/io/sm... | 3 | 2 | 2 | [{"id": "G0", "claim": "The delivery.timeout.ms attribute description should also say that the connector uses (and defaults to) Kafka's default delivery timeout.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new retry logic relies only on the... | null |
smallrye__smallrye-reactive-messaging__1092 | smallrye/smallrye-reactive-messaging | 1,092 | defect | 434431cd3ed232ddbae0edacca41153ebc0f28e8 | 2e670d0dbd48bf8f78b3c3766c7baf5f98252d67 | Implement default and named config lookup for the kafka connector | Implement default and named configuration lookup for the Kafka connector.
This allows the connector to resolve the configuration from named `Map` (exposed using CDI).
| diff --git a/documentation/src/main/doc/modules/connectors/partials/META-INF/connector/smallrye-kafka-incoming.adoc b/documentation/src/main/doc/modules/connectors/partials/META-INF/connector/smallrye-kafka-incoming.adoc
index d356c5c92d..984104867b 100644
--- a/documentation/src/main/doc/modules/connectors/partials/ME... | 4 | 4 | 1 | [{"id": "G0", "claim": "The pull request should not use `@Named` for the default Kafka configuration lookup (it does not behave like normal CDI qualifiers) and should use `@Identifier` instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The documente... | null |
smallrye__smallrye-reactive-messaging__1339 | smallrye/smallrye-reactive-messaging | 1,339 | defect | 01b8cc7d1ab91e1c6291bbbeeb9321fdcf71eee8 | ed70cf4e3fdcc3b2d2d6650ccbe73400ea830e7b | Refactor pause/resume logic to address performance regression | When the downstream processing can't keep up with incoming message ingestion, the Kafka consumer applied pause/resume logic as a backpressure strategy. This prevents the buffered messages waiting to be processed from overflowing and causing an out-of-memory error.
The previous pause/resume logic paused – and resumed... | diff --git a/documentation/src/main/doc/modules/connectors/partials/META-INF/connector/smallrye-kafka-incoming.adoc b/documentation/src/main/doc/modules/connectors/partials/META-INF/connector/smallrye-kafka-incoming.adoc
index e563055f64..05c4f89572 100644
--- a/documentation/src/main/doc/modules/connectors/partials/ME... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new connector attribute should be named `max-poll-buffer-size`, since the convention is dotted names for Kafka properties and dashed names for the connector's own properties.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-reactive-messaging__1364 | smallrye/smallrye-reactive-messaging | 1,364 | defect | 54b6e239e636552308134e5acfe53276eb7ad665 | 29fd22db6c19cc9641cc991fea24b9240d109888 | Reduce the dependency on Reactive Streams Operators | - Reduce dependency on Reactive Streams Operators
- Allow @Blocking(ordered=false) to be called concurrently | diff --git a/api/src/main/java/io/smallrye/reactive/messaging/ChannelRegistry.java b/api/src/main/java/io/smallrye/reactive/messaging/ChannelRegistry.java
index 10885ff037..3998c20303 100644
--- a/api/src/main/java/io/smallrye/reactive/messaging/ChannelRegistry.java
+++ b/api/src/main/java/io/smallrye/reactive/messagin... | 3 | 3 | 0 | [{"id": "G0", "claim": "The inline exception construction in ConnectorFactories (the two spots marked 'TODO Extract') should be extracted into the ProviderExceptions i18n class.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "handlePreProcessingA... | null |
smallrye__smallrye-reactive-messaging__1404 | smallrye/smallrye-reactive-messaging | 1,404 | defect | 434431cd3ed232ddbae0edacca41153ebc0f28e8 | b92ca2118675492f73bf93220caf48c5a4b48aaf | Clear queue of kafka records from revoked partitions | @cescoffier This work is based on the findings of this issue https://github.com/smallrye/smallrye-reactive-messaging/issues/1403
The jist of it is that it clears the stream's queue of records from revoked partitions. This greatly reduces dup and concurrent processing during a rebalance when replaying a topic. | diff --git a/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/commit/KafkaThrottledLatestProcessedCommit.java b/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/commit/KafkaThrottledLatestProcessedCommit.java
index 6b76607dca..3cba9046fb 100644
---... | 3 | 2 | 0 | [{"id": "G0", "claim": "Queue records from revoked partitions are removed for all commit strategies, which the reviewer thinks risks dropping records when the commit strategy is NONE with auto.commit enabled, and asks whether the removal should only be done for throttled.", "category": "design", "verdict": "opposed", "... | null |
smallrye__smallrye-reactive-messaging__1434 | smallrye/smallrye-reactive-messaging | 1,434 | defect | 6a4f5d876dfa0e960fea16be85858a63ab367d04 | e60402fe0ed965508d02c8e3b1a05452cb822ee4 | Handle Vert.x Context in MutinyEmitter.send | When the `MutinyEmitter.send` method is called from a Vert.x context, the acknowledgement event should be emitted on the same context.
This PR captures the context in the `send` method, if there is one.
In this case, it emits the result on the same context. | diff --git a/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/extension/MutinyEmitterImpl.java b/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/extension/MutinyEmitterImpl.java
index 94e5488ea1..6a6830dac1 100644
--- a/smallrye-reactive-messaging-provi... | 1 | 1 | 0 | [{"id": "G0", "claim": "In the new testWithPayloadsAndAckComingBackOnSameEventLoop test, a second assert is missing after the second reference.set for the send of \"b\" on the fresh event-loop context.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-reactive-messaging__1655 | smallrye/smallrye-reactive-messaging | 1,655 | defect | 2faf87d08a7633b8ccc4bbc6f75a313515577c81 | 5502c4409bc7d8eed5a15d4febe02e9037a89376 | Setup Revapi for tracking API changes | Manual release process to include extracting breaking changes to release description and clearing them on post-release.
Tracked modules:
- API : packages _org.eclipse.microprofile.reactive.messaging.*_ and _io.smallrye.reactive.messaging.*_
- provider : packages _io.smallrye.reactive.messaging.providers_, _io.smal... | diff --git a/.github/CompatibilityUtils.java b/.github/CompatibilityUtils.java
new file mode 100644
index 0000000000..404e32ec86
--- /dev/null
+++ b/.github/CompatibilityUtils.java
@@ -0,0 +1,187 @@
+///usr/bin/env jbang "$0" "$@" ; exit $? # (1)
+//DEPS io.vertx:vertx-core:3.9.4
+//DEPS info.picocli:picocli:4.5.0
+
+
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The provider module should be excluded from the API compatibility tracking completely instead of tracking the whole io.smallrye.reactive.messaging.providers package, since public API belongs in the API module.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
smallrye__smallrye-reactive-messaging__1838 | smallrye/smallrye-reactive-messaging | 1,838 | defect | bed0624f7726a492fcea7f0d97b0f73dc7a64cc0 | a03b282939ce747178819f64f460ac46730926e5 | Kafka commit and failure SPI | CDI-based extension points for implementing custom commit and failure handlers.
Introduces `KafkaCommitHandler.Factory` and `KafkaFailureHandler.Factory` interfaces.
Custom implementations are discovered through a CDI bean which implement the Factory interface with an `@Identifier` which holds the handler name. Ch... | diff --git a/documentation/src/main/docs/kafka/receiving-kafka-records.md b/documentation/src/main/docs/kafka/receiving-kafka-records.md
index f9d1c05029..b313eac08b 100644
--- a/documentation/src/main/docs/kafka/receiving-kafka-records.md
+++ b/documentation/src/main/docs/kafka/receiving-kafka-records.md
@@ -220,6 +22... | 10 | 9 | 1 | [{"id": "G0", "claim": "The new KafkaCommitHandler SPI should be marked @Experimental for now.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The file-based checkpoint implementation dispatches file I/O on Vert.x's internal worker thread because file sys... | null |
smallrye__smallrye-reactive-messaging__1928 | smallrye/smallrye-reactive-messaging | 1,928 | defect | 1eb5a6df2f014283b1520e27afe3dcaef90a264e | 655295a8596497334ae8d41388c71428ac89195a | Add cause exception type to DLQ headers | Closes #1913 | diff --git a/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/fault/KafkaDeadLetterQueue.java b/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/fault/KafkaDeadLetterQueue.java
index 3db075700b..0f0abd1da7 100644
--- a/smallrye-reactive-messaging-k... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the new dead-letter-exception header to exception-class-name to avoid confusion with the reason and cause headers, and also add a cause-class-name header.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-reactive-messaging__2007 | smallrye/smallrye-reactive-messaging | 2,007 | defect | 853cb811d80751df464efb704519ad0f65bcaf8e | 9e1a58705b62a6781c74a784effb810caa5865f0 | Restore context decorator | Restores ContextDecorator removed in 3.22.0. Its removal caused stream transformers to dispatch messages on EventLoopContext instead of message duplicated context. See https://github.com/quarkusio/quarkus/issues/23612#issuecomment-1323870540
The removal of ContextDecorator was an attempt to resolve the issue of mes... | diff --git a/pom.xml b/pom.xml
index dbf4cb1eb3..c7c88dcea1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -110,7 +110,7 @@
<jandex-maven-plugin.version>1.2.3</jandex-maven-plugin.version>
<nats-embedded.version>2.1.0</nats-embedded.version>
- <slf4j-log4j12.version>2.0.5</slf4j-log4j12.version>
+ <slf4j-log4j... | 1 | 1 | 0 | [{"id": "G0", "claim": "slf4j 2.x should be banned for now so the dependency tooling stops proposing the slf4j 2 upgrades that had to be reverted.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
smallrye__smallrye-reactive-messaging__2075 | smallrye/smallrye-reactive-messaging | 2,075 | defect | ac10d991f8515a8f79b0828aef183d124e6ee259 | b7201d50fc0299f87fadd8fd5c5a7545275f5887 | Split package resolution for io.smallrye.reactive.messaging.providers.connectors | in-memory package moved to io.smallrye.reactive.messaging.providers.connectors.in.memory | diff --git a/documentation/src/main/java/testing/MyTest.java b/documentation/src/main/java/testing/MyTest.java
index db26829b46..d72c54ec2d 100644
--- a/documentation/src/main/java/testing/MyTest.java
+++ b/documentation/src/main/java/testing/MyTest.java
@@ -8,9 +8,9 @@
import org.junit.jupiter.api.BeforeAll;
import ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new package name `io.smallrye.reactive.messaging.in.memory` is unappealing and should perhaps just be `io.smallrye.reactive.messaging.memory`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallrye__smallrye-reactive-messaging__2137 | smallrye/smallrye-reactive-messaging | 2,137 | defect | bc8c2965e1170b32e9e440682adb3f29f336629b | a619319307994684b3736ecff3f7381ee845170e | RabbitMQ - Add binding exchange and queue with arguments | Regarding the following issue: https://github.com/smallrye/smallrye-reactive-messaging/issues/2135 | diff --git a/smallrye-reactive-messaging-rabbitmq/src/main/java/io/smallrye/reactive/messaging/rabbitmq/RabbitMQConnector.java b/smallrye-reactive-messaging-rabbitmq/src/main/java/io/smallrye/reactive/messaging/rabbitmq/RabbitMQConnector.java
index 6fbb53c35f..c3190baf6b 100644
--- a/smallrye-reactive-messaging-rabbitm... | 3 | 3 | 0 | [{"id": "G0", "claim": "The attribute names in the added @ConnectorAttribute descriptions should be wrapped in ticks ('exchange.type') so they render as code.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DLQ binding log should use its own lo... | null |
smallrye__smallrye-reactive-messaging__2141 | smallrye/smallrye-reactive-messaging | 2,141 | defect | bc8c2965e1170b32e9e440682adb3f29f336629b | 2b9a0628c636ee6dd31015c056598d6ac09115d0 | Make Kafka Companion KafkaFuture/Uni wrapper repeatable | Fixes the waitForTopic NPE bug #2033
Thanks, @kabir for the reproducer | diff --git a/smallrye-reactive-messaging-kafka-test-companion/src/main/java/io/smallrye/reactive/messaging/kafka/companion/ClusterCompanion.java b/smallrye-reactive-messaging-kafka-test-companion/src/main/java/io/smallrye/reactive/messaging/kafka/companion/ClusterCompanion.java
index 02b3d915b8..060af1cf36 100644
--- a... | 1 | 1 | 0 | [{"id": "G0", "claim": "Questions whether the asterisk (wildcard) import of org.apache.kafka.clients.admin.* introduced in TopicsCompanion.java is okay, implying it should be replaced with explicit imports.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
smallrye__smallrye-reactive-messaging__2189 | smallrye/smallrye-reactive-messaging | 2,189 | defect | 7c50fe0e9f9d16ea3178d3e668fad80bb53bc67e | b417315a9486da66e0055d4dcbdbe87308a5e461 | Messages utility and KeyMulti<K, Message<V>> support | - Provide a utility class that allows merging incoming messages and manage ack/nack properly and also merge metadata.
- Add support for KeyMulti<K, Message<V>> parameters
| diff --git a/api/revapi.json b/api/revapi.json
index 7bc3bce7fb..256b7f1b67 100644
--- a/api/revapi.json
+++ b/api/revapi.json
@@ -27,7 +27,29 @@
"criticality" : "highlight",
"minSeverity" : "POTENTIALLY_BREAKING",
"minCriticality" : "documented",
- "differences" : [ ]
+ "differences" : [
+ ... | 2 | 1 | 1 | [{"id": "G0", "claim": "In the metadata merge loop the code reads list.get(1) where it should read list.get(i), so every iteration after the first re-merges the second message's metadata instead of the i-th message's.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": ... | null |
smallrye__smallrye-reactive-messaging__2409 | smallrye/smallrye-reactive-messaging | 2,409 | defect | 3dfeebf5bb1f50ff7e815878dcc6d4ce322b58a3 | dcccc6a1fd34522d0fa04c15c911ee6844d90448 | Kafka Request Reply emitter and manual partition assignment | On #2406
Kafka connector `assign-seek` attribute for manual partition assignment of Kafka consumers.
Optionally receives the offset portion to seek the partition to an offset after assignment.
Kafka Request/Reply emitter is a custom emitter that allows sending request messages to a Kafka topic and receiving ba... | diff --git a/documentation/mkdocs.yml b/documentation/mkdocs.yml
index dfc6d4c5db..6fcb4bbeaa 100644
--- a/documentation/mkdocs.yml
+++ b/documentation/mkdocs.yml
@@ -47,6 +47,7 @@ nav:
- 'Customizing Default Kafka Configuration': kafka/default-configuration.md
- 'Test Companion for Kafka': kafka/test... | 2 | 1 | 1 | [{"id": "G0", "claim": "The documentation on omitting the offset in `assign-seek` is ambiguous about the resulting consumer position — the reviewer wondered whether it means 'last' but notes it could equally mean 'first'.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {... | null |
smallrye__smallrye-reactive-messaging__2584 | smallrye/smallrye-reactive-messaging | 2,584 | defect | b38a33b5debfa0362305006d85c113273fe507f7 | 02538ac0ce8cadec3ecb274911674d39b8afa8aa | feature: Pulsar pool messages support in failure handlers | Added messages release in failure handler, What do you think @ozangunalp @marekczajkowski? | diff --git a/smallrye-reactive-messaging-pulsar/src/main/java/io/smallrye/reactive/messaging/pulsar/fault/PulsarContinue.java b/smallrye-reactive-messaging-pulsar/src/main/java/io/smallrye/reactive/messaging/pulsar/fault/PulsarContinue.java
index 7e8c567b09..9efd1d71a9 100644
--- a/smallrye-reactive-messaging-pulsar/sr... | 3 | 2 | 2 | [{"id": "G0", "claim": "Calling message.unwrap().release() in PulsarIgnore.handle before message.ack() would not work because the ack needs to access the message id, and releasing recycles the message and nulls the messageId.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"},... | null |
smallrye__smallrye-reactive-messaging__2667 | smallrye/smallrye-reactive-messaging | 2,667 | defect | 3b6a92b0c5cf507bc2a54f9ddd9fe21cee10fb40 | e8758a748b1315596b0c93c33e70b12752b13302 | Pausable channels | Adds a new decorator for pausing and accumulating downstream requests to connector channels.
A channel needs to set the `pausable` flag to true. The pause/resume is controlled by the `PausableChannel` that is accessible from `ChannelRegistry` by channel name.
Closes #1649 | diff --git a/api/revapi.json b/api/revapi.json
index 7bc3bce7fb..758ec827d3 100644
--- a/api/revapi.json
+++ b/api/revapi.json
@@ -27,7 +27,18 @@
"criticality" : "highlight",
"minSeverity" : "POTENTIALLY_BREAKING",
"minCriticality" : "documented",
- "differences" : [ ]
+ "differences" : [
+ ... | 3 | 3 | 2 | [{"id": "G0", "claim": "In PausableProcessor.request() the numberOfItems <= 0 validation should be placed before the cancellation check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The behavior with unbounded (Long.MAX_VALUE) or very large reques... | null |
smallrye__smallrye-reactive-messaging__2727 | smallrye/smallrye-reactive-messaging | 2,727 | defect | 8427a52664c023341f24dd2a19ab7f1ca90a6f6d | 6d765c879ed0e6a9210ef6ef4a34152b5c9043cf | Added tracing using opentelemetry for jms like kafka does. | JMS Connector did not have tracing capabilities like kafka did.
Here is a PR, that contains this functionality.
Please review and give me feedback on this | diff --git a/smallrye-reactive-messaging-jms/pom.xml b/smallrye-reactive-messaging-jms/pom.xml
index 9093296dbd..332cb46d3a 100644
--- a/smallrye-reactive-messaging-jms/pom.xml
+++ b/smallrye-reactive-messaging-jms/pom.xml
@@ -106,6 +106,16 @@
<version>${project.version}</version>
<scope>test</scope>
... | 11 | 9 | 2 | [{"id": "G0", "claim": "The jms module pom should need only the smallrye-reactive-messaging-otel dependency (at ${project.version}) instead of also declaring the opentelemetry-instrumentation-api and opentelemetry-instrumentation-api-incubator artifacts.", "category": "maintainability", "verdict": "supported", "priorit... | null |
smallrye__smallrye-reactive-messaging__2772 | smallrye/smallrye-reactive-messaging | 2,772 | defect | 4d869e428e72012a81b91699bdeaf496e78acb57 | 43ed7349b427476badac1684290f10fa196518d9 | Tries to inject Vertx instance from CDI using a qualifier | Fixes #2771
This PR tries to add 2 config items:
* `mp.messaging.connector.vertx.cdi.qualifier`, which is used to tries to inject the Vertx instance with the specified qualifier if configured.
* `mp.messaging.connector.vertx.cdi.qualifier.required`, boolean, which is used to indicate if the qualifier is required ... | diff --git a/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/providers/connectors/ExecutionHolder.java b/smallrye-reactive-messaging-provider/src/main/java/io/smallrye/reactive/messaging/providers/connectors/ExecutionHolder.java
index e9c22e016e..8b29ca526e 100644
--- a/smallrye-reacti... | 5 | 5 | 3 | [{"id": "G0", "claim": "Select the Vertx instance with SmallRye Common's @Identifier qualifier instead of @Named/NamedLiteral, whose hidden semantics are not wanted here.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Drop the second mp.messaging.connect... | null |
smallrye__smallrye-reactive-messaging__2940 | smallrye/smallrye-reactive-messaging | 2,940 | defect | c8e8fd7c070ef0b45a70d83959aeaf0dc882bbb6 | 68cea14f7dfed721492006a494a481bab4bd5afe | Introduce TopicsCompanion#clearIfExists | Closes #2930 | diff --git a/smallrye-reactive-messaging-kafka-test-companion/src/main/java/io/smallrye/reactive/messaging/kafka/companion/TopicsCompanion.java b/smallrye-reactive-messaging-kafka-test-companion/src/main/java/io/smallrye/reactive/messaging/kafka/companion/TopicsCompanion.java
index 706caade17..41f517bf97 100644
--- a/s... | 1 | 1 | 1 | [{"id": "G0", "claim": "In clearIfExists, existing topics among the given list should still be cleared while non-existent ones are skipped, but the code passes all requested topics to clear, making it behave all-or-nothing.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallrye__smallrye-reactive-messaging__3110 | smallrye/smallrye-reactive-messaging | 3,110 | defect | 78a513547639ba94a5e363fdb0002128148745e8 | b88459d4e1c38ec803ad350a66eba72f68baf5e6 | Make it possible to reuse the Connection used on a JMSContext, by cal… | …ling JMSContext.createContext.
This is to reuse JMS Connection objects. When using the createContext from ConnectionFactory, a new is created everytime, with this change, it can be configured if you want to reuse the connections.
I need some feedback on the test side. I have created one test that uses the new re... | diff --git a/smallrye-reactive-messaging-jms/src/main/java/io/smallrye/reactive/messaging/jms/JmsConnector.java b/smallrye-reactive-messaging-jms/src/main/java/io/smallrye/reactive/messaging/jms/JmsConnector.java
index 8a7d201a79..8a95eafbb0 100644
--- a/smallrye-reactive-messaging-jms/src/main/java/io/smallrye/reactiv... | 1 | 1 | 1 | [{"id": "G0", "claim": "There is no easy way to verify that connection reuse actually results in only one parent JMS context/connection being created, and an integration test using ActiveMQ's management API should assert the actual connection count.", "category": "testing", "verdict": "supported", "priority": "P1", "sc... | null |
smallrye__smallrye-reactive-messaging__783 | smallrye/smallrye-reactive-messaging | 783 | defect | 917d11e30309d832e6cfab60f18dd09c272304f1 | 056efa4b5d56308b8e5341661a00feb538b2dc85 | CDI Events for Consumer/Producer | Skipping qualifier for create/delete for now.. so the event is only for create.
Some other detection (or maybe a separate event entirely) would be needed for destroy.
--> Edit: we used same event for create & destroy. If the parameter is new, it is a create. If the parameter has been seen before, it is a destroy. | diff --git a/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/KafkaCDIEvents.java b/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/KafkaCDIEvents.java
new file mode 100644
index 0000000000..5ee907fd41
--- /dev/null
+++ b/smallrye-reactive-messagi... | 3 | 1 | 0 | [{"id": "G0", "claim": "The private `KafkaCDIEvents(boolean isNoop)` constructor is apparently unused and undocumented for its non-standard role, so it should be explained with a comment or removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ... | null |
smallrye__smallrye-reactive-messaging__867 | smallrye/smallrye-reactive-messaging | 867 | defect | 532a1e3d15ab282c1115173a1d81211f4dc06239 | 9e0f888978cfa2cd91f30bc16ee6b40c0b6a6288 | Improve reporting when too many records are not committed | Fix #865
Improve reporting when too many message have not been acked or nacked.
| diff --git a/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/commit/KafkaThrottledLatestProcessedCommit.java b/smallrye-reactive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/commit/KafkaThrottledLatestProcessedCommit.java
index e911032748..3e06c0c52e 100644
---... | 2 | 1 | 1 | [{"id": "G0", "claim": "The added log message's remark that the buffer reached its maximum capacity may not always be true (in the reviewer's case only the timeout hit), so the wording should be reconsidered.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "... | null |
smallstep__certificates__1030 | smallstep/certificates | 1,030 | defect | 87f28a7ec9f4a2e9df7e25370cba99825599f9ff | 6b7b98998856afbf0289c78ad5b5b766b8de4a6f | Add provisioner template validation | Fixes #1012
Needs https://github.com/smallstep/crypto/pull/62 to be merged first. Will fix the modules after that. | diff --git a/authority/admin/api/provisioner.go b/authority/admin/api/provisioner.go
index 149f2c6ad..2898d6d07 100644
--- a/authority/admin/api/provisioner.go
+++ b/authority/admin/api/provisioner.go
@@ -1,10 +1,13 @@
package api
import (
+ "fmt"
"net/http"
"github.com/go-chi/chi"
+ "go.step.sm/crypto/sshu... | 1 | 1 | 1 | [{"id": "G0", "claim": "Validating the templates and failing the request is too strict: ValidateTemplate easily fails on valid templates, forcing users to create more complicated templates.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallstep__certificates__1058 | smallstep/certificates | 1,058 | defect | 6cdaaf5e0cb2413be6827740b5bf95c487e17045 | 8cf6675ce459432c4713e41cea951d87b3627ee8 | Return the internal error instead of the ACME error | ### Description
For ACME errors, return the internal error string instead of the ACME one on the "Error() string" function. This way, the logs will have more information about the cause of an error.
Fixes #1057 | diff --git a/acme/errors.go b/acme/errors.go
index 95c006b79..3158b19b0 100644
--- a/acme/errors.go
+++ b/acme/errors.go
@@ -337,7 +337,10 @@ func (e *Error) StatusCode() int {
// Error allows AError to implement the error interface.
func (e *Error) Error() string {
- return e.Detail
+ if e.Err == nil {
+ return e... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on Error() should read '// Error implements the error interface.' instead of '// Error allows AError to implement the error interface.'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
smallstep__certificates__1374 | smallstep/certificates | 1,374 | defect | ef951f2075bbea5eb54c038f3a9920e2c428623e | 81140f859c8fe32e3718f08be99dca13dffe80fa | Log SSH certificates | This PR closes #1257
A log looks like this:
```console
INFO[0015]
certificate="ecdsa-sha2-nistp256-cert-v01@openssh.com AAAAKGVjZHNhLXNoYTItbmlzdHAyNTYtY2Vyd.......EpFTvWiOGbbCSb7WLd68HQU="
certificate-type=user
duration=1.622708ms
duration-ns=1622708
fields.time="2023-05-04T15:30:42+02:00"
method=P... | diff --git a/api/api.go b/api/api.go
index 0ac733172..7a80dc44b 100644
--- a/api/api.go
+++ b/api/api.go
@@ -1,6 +1,7 @@
package api
import (
+ "bytes"
"context"
"crypto"
"crypto/dsa" //nolint:staticcheck // support legacy algorithms
@@ -20,6 +21,8 @@ import (
"github.com/go-chi/chi"
"github.com/pkg/err... | 3 | 2 | 1 | [{"id": "G0", "claim": "SSH certificates issued via the renew (and rekey) endpoints should also be logged, not only on sign.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The logged `certificate` field would be better holding only the base64 key co... | null |
smallstep__certificates__1386 | smallstep/certificates | 1,386 | defect | 6db3f5f09375f51c73287debf5a1d1cf49d55cbe | d14c745d0325ff050856177b1e0b2a6902048cec | Store and verify Acme account location | Fixes #623 | diff --git a/acme/account.go b/acme/account.go
index fa4b1167a..7c270dc46 100644
--- a/acme/account.go
+++ b/acme/account.go
@@ -20,6 +20,15 @@ type Account struct {
Status Status `json:"status"`
OrdersURL string `json:"orders"`
ExternalAccountBinding interface{} ... | 3 | 2 | 0 | [{"id": "G0", "claim": "TestAccount_GetLocation should build the prefix with getAccountLocationPath (or with an account obtained from NewAccount) so the test proves the URL is the right one, with the expected value being the full location URL such as https://test.ca.smallstep.com/acme/foo/account/bar.", "category": "te... | null |
smallstep__certificates__1484 | smallstep/certificates | 1,484 | defect | d604a900ed093adc49b6d7622a8f9c74e8f9a8ac | 5785caa111aa5205647d6bc15a52e7136cfc67f4 | Add support for the disableSmallstepExtensions claim | ### Description
This commit adds a new claim to exclude the Smallstep provisioner extension from the generated certificates.
Fixes #620
| diff --git a/authority/config/config.go b/authority/config/config.go
index ae284fb91..27c4919b2 100644
--- a/authority/config/config.go
+++ b/authority/config/config.go
@@ -35,6 +35,9 @@ var (
// DefaultEnableSSHCA enable SSH CA features per provisioner or globally
// for all provisioners.
DefaultEnableSSHCA = fa... | 3 | 2 | 0 | [{"id": "G0", "claim": "The WithControllerOptions comment is confusing and inaccurate — it says \"returns\" though the method mutates the option, and it mixes \"options\" and \"claims\" terminology — and should be rewritten per the suggestion with a clearer options-vs-claims distinction.", "category": "documentation", ... | null |
smallstep__certificates__1660 | smallstep/certificates | 1,660 | defect | 4016b69b28778e2633ebb408b312269ac8382ffc | 73b31585c4bc1d25c292bb0a921f28c709b973fa | Check cnf claim with CSR fingerprint | This commit allows tying tokens with the provided CSR or SSH public key. Tokens with a confirmation claim kid (`cnf.kid`) will validate that the provided fingerprint (kid) matches the CSR or SSH public key.
This check will only be present in JWK and X5C provisioners.
Fixes #1637
Related PRs:
- [x] https://gi... | diff --git a/authority/authorize_test.go b/authority/authorize_test.go
index 8f3c1ae28..551fd95a0 100644
--- a/authority/authorize_test.go
+++ b/authority/authorize_test.go
@@ -88,6 +88,39 @@ func generateToken(sub, iss, aud string, sans []string, iat time.Time, jwk *jose
return jose.Signed(sig).Claims(claims).Compac... | 4 | 3 | 1 | [{"id": "G0", "claim": "The fingerprintValidator doc comment should say it checks the fingerprint of the certificate request, not of the certificate.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new sshFingerprintValidator validates the SSH ... | null |
smallstep__certificates__1797 | smallstep/certificates | 1,797 | defect | 397877a7b6105494e6a2aff4259ab1cf87747af2 | 725a913f66e890c68422cfb2a408d8faa854d265 | Allow custom SCEP key manager | ### Description
This commit allows the injection of a custom key manager for SCEP.
| diff --git a/authority/authority.go b/authority/authority.go
index c112bc257..72e217671 100644
--- a/authority/authority.go
+++ b/authority/authority.go
@@ -62,9 +62,10 @@ type Authority struct {
x509Enforcers []provisioner.CertificateEnforcer
// SCEP CA
- scepOptions *scep.Options
- validateSCEP bool
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The leftover debugging code that logs on the \"fail key type\" test case is superfluous and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallstep__certificates__1844 | smallstep/certificates | 1,844 | defect | e3ba70281138416c89d4314a700d1c6127fd47de | 5fa5a63de89c0bd379b08a34d94c56e948a9ebb3 | Verify provisioner with id if available | This commit allows verifying the account provisioner with the request provisioner using the ID instead of the name. When the provisioner are stored in the DB, the provisioner ID is not mutable but the name is.
| diff --git a/acme/api/account_test.go b/acme/api/account_test.go
index 7d799c883..b0fa6e2c3 100644
--- a/acme/api/account_test.go
+++ b/acme/api/account_test.go
@@ -14,6 +14,7 @@ import (
"time"
"github.com/go-chi/chi/v5"
+ "github.com/google/uuid"
"github.com/pkg/errors"
"go.step.sm/crypto/jose"
@@ -66,6 +... | 1 | 1 | 1 | [{"id": "G0", "claim": "There is an unlikely case in which the IDs don't match but the account has the old provisioner name and another provisioner was renamed to that old name, which the combined ID/name check would now consider OK and thus not return an error; it would be easier to follow if the ID check happened in ... | null |
smallstep__certificates__1850 | smallstep/certificates | 1,850 | defect | fdb0cf03f6e013bf2b72477e75bb3fe0266bbad6 | 9e8087fbb15cf3be083db24cc70da9b486d4167f | Add GetX509Signer method | This commit adds a method to the Authority type that returns the signer used to sign X509 certificates.
| diff --git a/authority/tls.go b/authority/tls.go
index ebc9d0d81..679c28ac5 100644
--- a/authority/tls.go
+++ b/authority/tls.go
@@ -91,6 +91,21 @@ func withDefaultASN1DN(def *config.ASN1DN) provisioner.CertificateModifierFunc {
}
}
+// GetX509Signer returns a [crypto.Signer] implementation using the intermediate
... | 2 | 2 | 0 | [{"id": "G0", "claim": "It would be better to reverse the order of the expected and actual arguments in the assert.Equal calls, though the reviewer notes it is not a blocker.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The t.Errorf message in... | null |
smallstep__certificates__1893 | smallstep/certificates | 1,893 | defect | 9bf6a8369f9315f110f0214522d77e861d82a985 | 38733dab95b380157950863031f916dd7502212f | Return helpful error message when root is not found | Fixes https://github.com/smallstep/cli/issues/841.
Surprisingly (to me), `errs.NotFound` does NOT return an errors that JSON-serializes the error message. Instead, it always serializes the default error message ("The requested resource could not be found. Please see the certificate authority logs for more info.").
... | diff --git a/api/api.go b/api/api.go
index 0b139a710..4619bd1e4 100644
--- a/api/api.go
+++ b/api/api.go
@@ -372,7 +372,7 @@ func Root(w http.ResponseWriter, r *http.Request) {
// Load root certificate with the
cert, err := mustAuthority(r.Context()).Root(sum)
if err != nil {
- render.Error(w, r, errs.Wrapf(http... | 4 | 4 | 0 | [{"id": "G0", "claim": "The not-found error message should quote the fingerprint and say \"root certificate with fingerprint %q was not found\" in api.go and in the test expectations.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The leftover deb... | null |
smallstep__certificates__1903 | smallstep/certificates | 1,903 | defect | a85723d9f82add895a608dea3eeab666699a4654 | cb9abbe25b157acf9251e1014870f079ccb94789 | Add support for validities in templates | This commit upgrades go.step.sm/crypto with a version that adds support for setting validity bounds in templates. It also modifies the X.509 certificate modifiers to support them. SSH certificate modifiers should work without changes.
The priority for the validity bounds are:
1. Coming from flags.
2. Coming from t... | diff --git a/authority/provisioner/sign_options.go b/authority/provisioner/sign_options.go
index cde2078d6..a243645e2 100644
--- a/authority/provisioner/sign_options.go
+++ b/authority/provisioner/sign_options.go
@@ -299,14 +299,19 @@ func (v defaultSANsValidator) Valid(req *x509.CertificateRequest) (err error) {
// d... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the new Test_profileDefaultDuration_Option cases, the assert.Equals calls should pass the expected value first (assert.Equals(t, nb, cert.NotBefore)) instead of actual first.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In t... | null |
smallstep__certificates__1910 | smallstep/certificates | 1,910 | defect | 8829b4227898a7ab97c342e9674862857b1e1841 | ed71ac024b728d630d5804880d0fdb1d468604a8 | Do strict DNS lookup on ACME | This commit changes the ACME challenges to perform a strict DNS lookup without taking into account the search list in a resolv.conf
| diff --git a/acme/challenge.go b/acme/challenge.go
index 9f3ca388d..beda1bf52 100644
--- a/acme/challenge.go
+++ b/acme/challenge.go
@@ -157,15 +157,40 @@ func http01Validate(ctx context.Context, ch *Challenge, db DB, jwk *jose.JSONWeb
return nil
}
+// rootedName adds a trailing "." to a given domain name.
+func r... | 2 | 2 | 1 | [{"id": "G0", "claim": "The error messages should not report the rooted name (the trailing dot the strict DNS lookup adds); the rooted form should be kept strictly internal so the user sees the URL they requested.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"... | null |
smallstep__certificates__1922 | smallstep/certificates | 1,922 | defect | 95afe686e0cca7fd0ad5d0ab11b53efae0156253 | 955338a80d364e35ee452cfc7b0cb7c7851524b2 | Create identity uri on any provisioner | ### Description
This commit allows the creation of the identity certificate with the host URI using any provisioner. Before, only the K8SSA provisioner could create an identity certificate with the URI. | diff --git a/api/ssh.go b/api/ssh.go
index e0e4e01cd..abb4ef2d1 100644
--- a/api/ssh.go
+++ b/api/ssh.go
@@ -6,8 +6,11 @@ import (
"encoding/base64"
"encoding/json"
"net/http"
+ "net/url"
+ "strings"
"time"
+ "github.com/google/uuid"
"github.com/pkg/errors"
"golang.org/x/crypto/ssh"
@@ -326,6 +329,7 @@ ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new comment on identityModifier should read \"...fixed duration, and set\" instead of \"...fixed duration. and set\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
smallstep__certificates__1962 | smallstep/certificates | 1,962 | defect | 92e95e4df32e1339a37f6657cdd02e52338c4be6 | d3acbe9cbdf80c9df79dbd749a52b471c50bcbcb | Add endpoints that return intermediate certificates | ### Description
This commit adds new endpoints that return the intermediate certificates used in the CA.
Related to #1848
| diff --git a/api/api.go b/api/api.go
index 0b139a710..4c03b5063 100644
--- a/api/api.go
+++ b/api/api.go
@@ -52,6 +52,7 @@ type Authority interface {
Revoke(context.Context, *authority.RevokeOptions) error
GetEncryptedKey(kid string) (string, error)
GetRoots() ([]*x509.Certificate, error)
+ GetIntermediateCertifi... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comment of IntermediatesPEM should say it returns intermediate certificates instead of root certificates.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Intermediates should marshal the certificates as an Intermedia... | null |
smallstep__certificates__1976 | smallstep/certificates | 1,976 | defect | cc9617e1460a8f0ed5d2b024ad97c8f0f64216eb | 44ba5ce90924b61a961c8e17410205aaafb85cf8 | Add AWS auth method for Vault RA mode | Implements #1946
<!---
Please provide answers in the spaces below each prompt, where applicable.
Not every PR requires responses for each prompt.
Use your discretion.
-->
#### Name of feature:
Add AWS auth method for Vault RA mode.
The available `authOptions` maps directly to the Vault AWS auth [package](... | diff --git a/cas/vaultcas/auth/aws/aws.go b/cas/vaultcas/auth/aws/aws.go
new file mode 100644
index 0000000000..c434759200
--- /dev/null
+++ b/cas/vaultcas/auth/aws/aws.go
@@ -0,0 +1,84 @@
+package aws
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "github.com/hashicorp/vault/api/auth/aws"
+)
+
+// AuthOptions defines the c... | 3 | 3 | 0 | [{"id": "G0", "claim": "The awsAuthType error message should use %q and a semicolon instead of ': %s' formatting.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The SignatureType error message should use %q and a semicolon instead of ': %s' form... | null |
smallstep__certificates__2044 | smallstep/certificates | 2,044 | defect | 946bba29bb1f02fde5e2c2f31cc63550aebb8b7e | 1ef38655ef52a26e247339c423bca3344e6b9e15 | Use dnsNamesSubsetValidator for IID provisioners | ... when disableCustomSANs is set to 'true'.
The DNS names in the certificate request must be a subset of the authorized set of DNS names (from the IID token). The previous functionality required that the DNS names in the certificate request exactly matched the authorized DNS names.
| diff --git a/authority/provisioner/aws.go b/authority/provisioner/aws.go
index e95feedd4..9e1d9b7c6 100644
--- a/authority/provisioner/aws.go
+++ b/authority/provisioner/aws.go
@@ -358,7 +358,7 @@ func (p *AWS) AuthorizeSign(ctx context.Context, token string) ([]SignOption, er
if p.DisableCustomSANs {
dnsName := f... | 3 | 3 | 0 | [{"id": "G0", "claim": "The allowed DNS names map could use map[string]struct{} instead of map[string]bool and be created with capacity len(v).", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The type comment should read \"DNS name SANs\" instead of ... | null |
smallstep__certificates__2065 | smallstep/certificates | 2,065 | defect | 295892ecba96a058a7229e99f7c782f888635550 | f2663dd9d9bd3bc13296d7fd3fc30f4d3a0ae9fb | Add data support on SCEPCHALLENGE webhooks | ### Description
This commit adds support for using template data from SCEPCHALLENGE webhooks.
This is a WIP | diff --git a/authority/provisioner/scep.go b/authority/provisioner/scep.go
index 7213285c3..0bdaf3e99 100644
--- a/authority/provisioner/scep.go
+++ b/authority/provisioner/scep.go
@@ -15,6 +15,7 @@ import (
"go.step.sm/crypto/kms"
kmsapi "go.step.sm/crypto/kms/apiv1"
+ "go.step.sm/crypto/x509util"
"go.step.sm/... | 3 | 2 | 0 | [{"id": "G0", "claim": "The comment on SignCSROption should say \"extra options\" and the type should be declared as `type SignCSROption any` instead of `interface{}`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comment on TemplateDataMod... | null |
smallstep__certificates__2103 | smallstep/certificates | 2,103 | defect | c9869621549de59d075b895e7c73b5c65592623e | 05455984192e3775995bb93900b6c6dbc8b472bf | Transport wrappers | This PR adds references to a transport wrapper that callers may pass in order to inject their own dependecies to references of HTTP clients that the internal packages generate. | diff --git a/authority/authority.go b/authority/authority.go
index 4a9123685..7b93a39ad 100644
--- a/authority/authority.go
+++ b/authority/authority.go
@@ -33,6 +33,7 @@ import (
"github.com/smallstep/certificates/cas"
casapi "github.com/smallstep/certificates/cas/apiv1"
"github.com/smallstep/certificates/db"
+ ... | 2 | 1 | 0 | [{"id": "G0", "claim": "The newly added `TransportWrapper` type alias is unexplained — what is it for? (raised on authority/provisioner/webhook.go and, identically, on authority/options.go).", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Config.WrapT... | null |
smallstep__certificates__2133 | smallstep/certificates | 2,133 | defect | 47c08d5cf04671bf38685b78742b1d36b9427fe6 | a3db8de6614ea02de4a853a243a571434a232f43 | feat(gcp): enable organization validation | Hey all, I'm submitting a PR to enable validating that a project is a part of a GCP organization, rather than a static list of project IDs. As I mention in the commit message, I tried to strike the right balance between production-ready and proof-of-concept, so feel free to leave as much feedback as possible since I'm ... | diff --git a/authority/provisioner/gcp.go b/authority/provisioner/gcp.go
index d848976dd..eeb2ad988 100644
--- a/authority/provisioner/gcp.go
+++ b/authority/provisioner/gcp.go
@@ -20,6 +20,7 @@ import (
"go.step.sm/crypto/sshutil"
"go.step.sm/crypto/x509util"
+ "github.com/smallstep/certificates/authority/provis... | 3 | 2 | 1 | [{"id": "G0", "claim": "OrganizationValidator.ValidateProject discards the project-list validation error when organizationID is set, and the reviewer expects the project-ID check to return an error even when organizationID is set, so both settings are enforced.", "category": "correctness", "verdict": "supported", "prio... | null |
smallstep__certificates__230 | smallstep/certificates | 230 | defect | bcc5a91d1789ff0b5ef54b5345a42a7847b5f946 | 13507efb3557f8b81296885f4b58ccdf0ffc1e9a | Remove the requirement for CSR to have a common name | ### Description
This PR removes the requirement for a certificate request to have a common name. Certificate requests will be accepted if the common name matches the token subject or the common name is empty.
Fixes #226 | diff --git a/authority/provisioner/sign_options.go b/authority/provisioner/sign_options.go
index 074e4470f..92572cde6 100644
--- a/authority/provisioner/sign_options.go
+++ b/authority/provisioner/sign_options.go
@@ -108,9 +108,10 @@ func (v defaultPublicKeyValidator) Valid(req *x509.CertificateRequest) error {
type c... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request makes the common-name validators accept an empty common name but does not add or fix the unit tests, which still assert an error for an empty common name and fail against the new code.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"i... | null |
smallstep__certificates__2325 | smallstep/certificates | 2,325 | defect | 46b1c4c124ce3e41f6a1a4ededa8b32cdd5d4173 | b690e1214d9526ebede6a3d6bd2b75a2aa7d9616 | Memory improvements | This commit replaces the client in provisioners and webhooks with an interface. Then it implements the interface using the new poolhttp package. This package implements the HTTPClient interface but it is backed by a sync.Pool, this improves memory, allowing the GC to clean more memory. It also removes the timer in the ... | diff --git a/authority/authority.go b/authority/authority.go
index 2f66aeb04..f48a888b3 100644
--- a/authority/authority.go
+++ b/authority/authority.go
@@ -8,8 +8,8 @@ import (
"crypto/sha256"
"crypto/x509"
"encoding/hex"
+ "fmt"
"log"
- "net/http"
"strings"
"sync"
"time"
@@ -50,8 +50,8 @@ type Authority... | 8 | 6 | 0 | [{"id": "G0", "claim": "The error fallback message in TestMain should point to https://pkg.go.dev/crypto/x509#SystemCertPool instead of the gmsm URL.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "initializeSystemCertPool's atomic-pointer caching ... | null |
smallstep__certificates__2370 | smallstep/certificates | 2,370 | defect | 9c485c5e9dcbc7c5c7bac2ceca2ef943518a7b02 | b7e59c97f3b8a95a24153aeb85959118953f2bb4 | Add support for YubiKeys 5.7.4+ | ### Description
This change adds the root certificate used on YubiKeys 5.7.4+. Now the attestation certificate will be verified using two roots.
Attestation statements must contain all intermediates, see smallstep/crypto#831
Fixes #2355
| diff --git a/acme/api/revoke_test.go b/acme/api/revoke_test.go
index 85b9a0326..72c4a6121 100644
--- a/acme/api/revoke_test.go
+++ b/acme/api/revoke_test.go
@@ -1094,7 +1094,6 @@ func TestHandler_RevokeCert(t *testing.T) {
assert.Equals(t, res.Header["Content-Type"], []string{"application/problem+json"})
} els... | 1 | 1 | 0 | [{"id": "G0", "claim": "The variable holding the parsed Yubico PIV root CA should be named pivRoot instead of pinRoot (and used as such in roots.AddCert).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallstep__certificates__2533 | smallstep/certificates | 2,533 | defect | ef8d580f3f0a4a8e57fdd414f62e71db49500b7c | bbad043cf242ff86149cc5a650eb679ba6007bd9 | Add HTTP transport decorator | This commit adds a new option to the CA client that allows the customization of the HTTP transport.
| diff --git a/ca/client.go b/ca/client.go
index d98de5f2a..1e287563f 100644
--- a/ca/client.go
+++ b/ca/client.go
@@ -153,8 +153,13 @@ type RetryFunc func(code int) bool
// ClientOption is the type of options passed to the Client constructor.
type ClientOption func(o *clientOptions) error
+// TransportDecorator is t... | 6 | 5 | 0 | [{"id": "G0", "claim": "The TransportDecorator doc comment should say \"support customization of the HTTP transport\" instead of the ungrammatical \"allows customization\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The helper getTransportWith... | null |
smallstep__certificates__281 | smallstep/certificates | 281 | defect | c4f1eea5dc2ca2be6bf4bc8072566b7e86d47be0 | 3ad58248d650a45d251335517f30e9298fb91299 | Only retain `pending' orders in the `acme_account_orders_index` | According to the ACME spec "pending orders SHOULD be returned by the `GetOrders` api".
Invalid orders SHOULD not be returned. Other states, are not discussed and are therefore not necessary to return.
The `acme_account_orders_index` is a table mapping accountID to a list of orders owned by that account. Currently t... | diff --git a/acme/account.go b/acme/account.go
index e340bfa8d..896afd7a7 100644
--- a/acme/account.go
+++ b/acme/account.go
@@ -3,6 +3,7 @@ package acme
import (
"context"
"encoding/json"
+ "reflect"
"time"
"github.com/pkg/errors"
@@ -198,17 +199,46 @@ func getAccountByKeyID(db nosql.DB, kid string) (*accou... | 1 | 1 | 0 | [{"id": "G0", "claim": "Avoid using reflect.DeepEqual to detect changes to the pending order list by detecting this in the previous for loop or with a length check.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smallstep__certificates__440 | smallstep/certificates | 440 | defect | c25586381662b3dd21bdb8f8190f866392a20519 | e9bfa061b80e838018d4dcae70320871efbde42b | Multiple Intermediate Certificates | ### Description
This PR adds support for multiple intermediate certificates in the step-ca authority. To enable multiple certificate the `ca.json'` `crt` property should be a bundle of the final intermediate (issuer) followed by all the intermediates, while the `key` parameter would be only the issuer key.
Fixes ... | diff --git a/authority/authority.go b/authority/authority.go
index 98037cc0b..4518abdf7 100644
--- a/authority/authority.go
+++ b/authority/authority.go
@@ -164,7 +164,7 @@ func (a *Authority) init() error {
// Read intermediate and create X509 signer for default CAS.
if options.Is(casapi.SoftCAS) {
- options... | 3 | 3 | 2 | [{"id": "G0", "claim": "Drop the complicated per-provisioner custom-issuer approach and instead support multiple intermediates by loading ca.json's intermediate as a full bundle into the CAS options (options.CertificateChain via pemutil.ReadCertificateBundle) for SoftCAS to append.", "category": "design", "verdict": "s... | null |
smallstep__certificates__561 | smallstep/certificates | 561 | defect | 582d6b161d1e0744c3f0d152b0a26734cd127b42 | 55fbcfb3be6c24836911864303c3151b4c7a7a14 | Check admin privileges from group membership | - Read `preferred_username` from token
- ~~Add `preferred_username` to the default Usernames~~ (To be discussed in separate PR)
- Check the `admin` array for admin groups that the user might belong to
closes #550 | diff --git a/authority/provisioner/oidc.go b/authority/provisioner/oidc.go
index fa3ca7622..4141171ca 100644
--- a/authority/provisioner/oidc.go
+++ b/authority/provisioner/oidc.go
@@ -44,6 +44,7 @@ type openIDPayload struct {
AuthorizedParty string `json:"azp"`
Email string `json:"email"`
EmailVeri... | 6 | 4 | 3 | [{"id": "G0", "claim": "With these changes an error occurs when trying to automatically create or renew the certificate (the SSH session fails with 'Bad packet length ... message authentication code incorrect').", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c... | null |
smallstep__certificates__672 | smallstep/certificates | 672 | defect | 9572c62520d17761f011e24e0558b2415d5ec757 | 9e5762fe063b663e9e852d3a4a15f9cae7adb4b9 | Allow the reuse of azure tokens if DisableTrustOnFirstUse is true | ### Description
This PR allows the reuse of Azure tokens if DisableTrustOnFirstUse is true
Azure caches a token for up to 24h, and we cannot issue a new certificate for the same instance in that period of time.
The meaning of this parameter is to allow the signing of multiple certificates in one instance. This... | diff --git a/authority/authorize.go b/authority/authorize.go
index 8d1f878ad..69ad2a90d 100644
--- a/authority/authorize.go
+++ b/authority/authorize.go
@@ -173,6 +173,9 @@ func (a *Authority) AuthorizeAdminToken(r *http.Request, token string) (*linkedc
}
// UseToken stores the token to protect against reuse.
+//
+... | 2 | 2 | 0 | [{"id": "G0", "claim": "The doc comment for ErrAllowTokenReuse wraps the identifier DisableTrustOnFirstUse across two lines, splitting it into two words.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The paragraph of the ErrAllowTokenReuse doc co... | null |
smallstep__certificates__731 | smallstep/certificates | 731 | defect | 24a6900de2ccb7ec91a9db6b0ace17b9cb05494e | 56926b9012b4e89377f923f0391db489a01280d4 | Support for CRL | ### Description
This pull adds a new API endpoint `/crl` that will return an on-demand generated PEM-encoded CRL. Fixes #206
The CRL is generated on-demand:
* if it is requested after the `NextUpdate` time specified in any previously generated CRL
* if a certificate has been revoked
* if no CRL has been generat... | diff --git a/api/api.go b/api/api.go
index 30ba03f9a..d8cfa15ff 100644
--- a/api/api.go
+++ b/api/api.go
@@ -46,6 +46,7 @@ type Authority interface {
GetRoots() (federation []*x509.Certificate, err error)
GetFederation() ([]*x509.Certificate, error)
Version() authority.Version
+ GenerateCertificateRevocationList(... | 21 | 15 | 8 | [{"id": "G0", "claim": "The hand-built PEM block (fmt.Sprintf over base64) should be replaced with the standard pem.EncodeToMemory encoding.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "When creating the CRL, expired certificates should be ski... | null |
smallstep__certificates__792 | smallstep/certificates | 792 | defect | 8fee970297c56b579cc100b901b05f85e77db380 | a5455d35728d8308a11c808994103bcc9163c412 | Improve errors related to template execution failures | This PR (slightly) improves error messages reported by `step-ca` when an error occurs related to applying the JSON certificate template. It addresses #791.
Before applying the changes from this PR, an error would be reported roughly like this (when using an ACME provisioner):
`
error finalizing order: error sig... | diff --git a/authority/ssh.go b/authority/ssh.go
index 7b8f26e28..e582eddd6 100644
--- a/authority/ssh.go
+++ b/authority/ssh.go
@@ -198,6 +198,14 @@ func (a *Authority) SignSSH(ctx context.Context, key ssh.PublicKey, opts provisi
errs.WithKeyVal("signOptions", signOpts),
)
}
+ // explicitly check for unma... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new template-error handling should drop the \"authority.Sign\" header and instead return errs.InternalServerErr with the original error (so details go to the logs) plus a generic user-facing message via errs.WithMessage, rather than trimming and exposing the raw message through errs.ApplyOpt... | null |
smallstep__certificates__797 | smallstep/certificates | 797 | defect | 57f9e5415160511d07afbc3a9001d3c8cbd90c04 | 3612eefc318587ca0d585a173f4c48b3a39f02b2 | Fix macOS SCEP client issues | This PR adds the intermediate CA certificate to ClientCAs for chain building and sends root certificates to clients when configured in the SCEP provisioner.
It also includes an additional knob to control the encryption algorithm for clients that don't support the default (DES-CBC).
The SCEP provisioner has now b... | diff --git a/authority/authority.go b/authority/authority.go
index b6fcdf238..da0a6f6fb 100644
--- a/authority/authority.go
+++ b/authority/authority.go
@@ -437,13 +437,6 @@ func (a *Authority) init() error {
}
}
- // Check if a KMS with decryption capability is required and available
- if a.requiresDecrypter() ... | 5 | 5 | 2 | [{"id": "G0", "claim": "The new Authority.GetIntermediateCertificate(), which reads the intermediate from config.IntermediateCert, is not the proper way to obtain the intermediate because not all step-ca configurations (e.g. a default RA) have an intermediate file, so the intermediate should be taken from the server (T... | null |
smallstep__certificates__866 | smallstep/certificates | 866 | defect | 80abda22eed7270f5d123fd93eb0e545373b165c | ba08a35c8528f82857588bfd9db2f2326be967bc | Add /roots.pem handler | ### Description
Add an endpoint that returns all root certificates in PEM format. This avoids the need to parse the JSON response from the current /roots endpoint if you only want the certificate.
Fixes #832
| diff --git a/api/api.go b/api/api.go
index 47d2fd27b..a2270426e 100644
--- a/api/api.go
+++ b/api/api.go
@@ -21,6 +21,7 @@ import (
"github.com/go-chi/chi"
"github.com/pkg/errors"
+ "github.com/smallstep/certificates/api/log"
"github.com/smallstep/certificates/authority"
"github.com/smallstep/certificates/aut... | 4 | 4 | 1 | [{"id": "G0", "claim": "RootsPEM should not return an HTTP 403 Forbidden for an ordinary error from GetRoots(); an internal server error is more appropriate by default.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test request in Test_caHandle... | null |
smallstep__certificates__879 | smallstep/certificates | 879 | defect | 49de04661b8526d05cb9f845a867194acb84c36d | 955d4cf80d1cdcd697b08694c53d57d6effd2ee9 | Add authority.WithX509SignerFunc | ### Description
This change adds a new authority option that allows passing a callback that returns the certificate chain and signer used to sign X.509 certificates.
This option will be used by Caddy, they renew the intermediate certificate weekly and there's no other way to replace it without re-creating the emb... | diff --git a/authority/options.go b/authority/options.go
index a1238b1dc..1c1545775 100644
--- a/authority/options.go
+++ b/authority/options.go
@@ -163,6 +163,22 @@ func WithX509Signer(crt *x509.Certificate, s crypto.Signer) Option {
}
}
+// WithX509SignerFunc defines the function used to get the chain of certifi... | 2 | 1 | 0 | [{"id": "G0", "claim": "The single doc comment covering both CertificateChain and Signer won't be picked up when asking for docs on Signer; the fields' comments should be split.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use testify/assert ins... | null |
smallstep__certificates__958 | smallstep/certificates | 958 | defect | 34d141e4d5ba99480f8a9d6c2af3a32de3959142 | 31af1efa484a91f3f8e5c09dd413210b484ac2a2 | Sign certificates with the issuer signature algorithm | ### Description
An RSA key can sign another certificate using the RSA PKCS#1 and the RSA-PSS scheme, this PR will keep the signature algorithm used in the issuer in the signed certificates instead of using PKCS#1 by default.
Fixes #952
| diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5fb517a16..78d666ad3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Ve... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reword the new CHANGELOG entry to the suggested phrasing stating that certificates are signed using the same algorithm as the issuer certificate was signed with, using an RSA-PSS with SHA-256 example instead of the x509 constant name.", "category": "documentation", "verdict": "supported", "prior... | null |
smallstep__cli__1045 | smallstep/cli | 1,045 | defect | e6e358dce2cb426ca9fee35b0461d9932fbd87fd | 7fb818c05d93bec8c1c5fbd316113aac98e875ef | Make the file reader utility aware of BOMs | Fixes #1042
Made the CLI file reader utility aware of the BOM, and skip it. The code was copied from https://github.com/dimchansky/utfbom.
It might be an option to move this to the https://github.com/smallstep/cli-utils repo and implement this in the `fileutil` package.
In addition to the BOM, this PR also imp... | diff --git a/command/certificate/inspect.go b/command/certificate/inspect.go
index 9fdf1350..677820b0 100644
--- a/command/certificate/inspect.go
+++ b/command/certificate/inspect.go
@@ -235,17 +235,22 @@ func inspectAction(ctx *cli.Context) error {
break
}
if bundle && block.Type != "CERTIFICATE" {
- ... | 1 | 1 | 1 | [{"id": "G0", "claim": "The vendored utfbom package should be moved to an internal package instead of living at the public utils/utfbom path.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smallstep__cli__1092 | smallstep/cli | 1,092 | defect | c0af50f9d9c77dd0d7c6118084305044c4d0f079 | 4616c58b2efbae935e244c98bc1280debf0828c8 | Add handling of `cnf` claim | Allow to add confirmation claims to tokens
This commit allows passing confirmation claims to tokens to tie the
tokens with a provided CSR or SSH public key.
Fixes smallstep/certificates#1637
Related PR:
- [x] https://github.com/smallstep/certificates/pull/1660
| diff --git a/command/ca/sign.go b/command/ca/sign.go
index fa5f3c75..a5505c30 100644
--- a/command/ca/sign.go
+++ b/command/ca/sign.go
@@ -175,7 +175,7 @@ func signCertificateAction(ctx *cli.Context) error {
}
// certificate flow unifies online and offline flows on a single api
- flow, err := cautils.NewCertifica... | 9 | 7 | 0 | [{"id": "G0", "claim": "The new doc example should read 'base64-url encoding without padding' instead of 'base64-url without padding encoding'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In WithFingerprint's default branch the error should rep... | null |
smallstep__cli__115 | smallstep/cli | 115 | defect | 4111ddff4dee4a326523950cb653dd7a357883f4 | 9bbb919459f32437a2b9d86766af99bc0e7b90ef | Add command for base64 encoding/decoding | ### Description
This PR adds a new command `step base64` to base64 encoding or decoding.
Decoding format is automatically detected, while the encoding supports the standard encoding as well as url encoding both with or without padding. | diff --git a/cmd/step/main.go b/cmd/step/main.go
index daeb4a5f..473c6867 100644
--- a/cmd/step/main.go
+++ b/cmd/step/main.go
@@ -19,6 +19,7 @@ import (
"github.com/smallstep/cli/usage"
// Enabled commands
+ _ "github.com/smallstep/cli/command/base64"
_ "github.com/smallstep/cli/command/ca"
_ "github.com/sma... | 2 | 2 | 0 | [{"id": "G0", "claim": "The Usage string should not have a period at the end, since the project does not normally end usage strings with a period.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The docstring examples make piping vs. passing the ... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.