Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,57 @@
* <p>
* The stored {@code completedSteps} set is the single source of truth. The flow can be skipped at the
* start or at any time ({@code skipped}), is finished explicitly ({@code completed} via "Finish"), and
* can be reset back to a clean state (no steps, not skipped, not completed).
* can be reset back to a clean state (no steps, not skipped, not completed, setup wizard not seen).
* <p>
* {@code setupSeen} records that the setup wizard showed this user its last screen ("You are ready to go" /
* "Everything is set up"), so the screen is shown once per user and tenant rather than once per browser.
*/
@Document(collection = "user_onboarding_progress")
Comment thread
hryhorii-chuhuievets marked this conversation as resolved.
Resolved
@CompoundIndex(name = "user_tenant_unique", def = "{'userId': 1, 'tenantId': 1}", unique = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserOnboardingProgress implements TenantScoped {

@Id
private String id;

/** Owning user. Unique together with {@link #tenantId}. */
private String userId;

/** Owning tenant. Unique together with {@link #userId}. */
private String tenantId;

/** Explicitly-completed steps (add-only, idempotent). Subset of {@link UserOnboardingStep}. */
@Builder.Default
private Set<UserOnboardingStep> completedSteps = new LinkedHashSet<>();

/** Set only by the explicit "Finish" action. */
@Builder.Default
private boolean completed = false;

/** When {@link #completed} was set; null while not completed. */
private Instant completedAt;

/** Set by "Skip Onboarding" (at the start or anytime). Cleared by reset. */
@Builder.Default
private boolean skipped = false;

/** When {@link #skipped} was set; null while not skipped. */
private Instant skippedAt;

/** Mingo dialog hosting the Getting Started block; null until "Start with Mingo", overwritten by every start, cleared by reset. */
private String tourDialogId;

/**
* True once the user has seen the setup wizard's last screen. Set by the explicit mark mutation and by
* "Start with Mingo" (a recorded tour implies a seen screen); cleared by reset. Records written before the
* field existed read as {@code false}; there is no backfill.
*/
@Builder.Default
private boolean setupSeen = false;

/** When {@link #setupSeen} was first set; null while not seen. */
private Instant setupSeenAt;
}

Check notice on line 75 in openframe-data-mongo-common/src/main/java/com/openframe/data/document/onboarding/UserOnboardingProgress.java

View workflow job for this annotation

GitHub Actions / Flamingo Code Review

UserOnboardingProgress is changed and no test references it

UserOnboardingProgress is changed and no test references it No test file in this checkout (1125 scanned) mentions `UserOnboardingProgress`. Add or extend a test before merging.
14 changes: 0 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@
<bcprov-lts8on.version>2.73.13</bcprov-lts8on.version>
<libthrift.version>0.25.0</libthrift.version>
<async-http-client.version>3.0.14</async-http-client.version>
<lz4-java.version>1.8.1</lz4-java.version>
<kafka-lz4-java.version>1.12.0</kafka-lz4-java.version>
<guava.version>33.7.2-jre</guava.version>
<snappy-java.version>1.1.10.12</snappy-java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

Check warning on line 50 in pom.xml

View workflow job for this annotation

GitHub Actions / Flamingo Code Review

Removal of pinned guava/snappy-java CVE overrides reopens two HIGH CVEs

Removal of pinned guava/snappy-java CVE overrides reopens two HIGH CVEs The diff removes the `guava.version` (33.7.2-jre) and `snappy-java.version` (1.1.10.12) properties and their matching `<dependencyManagement>` entries. The removed comments explicitly stated these were pinned past CVE-2026-108106/CVE-2026-93451 (snappy-java, transitive of kafka-clients) and CVE-2026-102554 (guava, transitive of grpc/google-cloud-storage). Removing the pin does not remove the transitive dependency — kafka-clients, grpc, and google-cloud-storage still pull in whatever older, vulnerable versions of snappy-java/guava their own poms declare, since nothing in this diff excludes them. This silently reintroduces the vulnerable versions across every downstream module that depends on kafka-clients/grpc/google-cloud-storage (directly or transitively) via this parent POM's dependencyManagement. **What it risks:** Downstream services built against this parent POM will resolve to older, CVE-affected guava and snappy-java versions instead of the patched ones, undoing a deliberate security fix with no equivalent replacement visible in the diff. **How to fix:** Restore the guava.version and snappy-java.version properties and their dependencyManagement entries unless the CVEs have been fixed upstream in a newer kafka-clients/grpc/google-cloud-storage BOM that this POM now manages instead; if that's the case, document the replacement pin.
Comment thread
hryhorii-chuhuievets marked this conversation as resolved.
Resolved
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>

Expand Down Expand Up @@ -307,18 +305,6 @@
<artifactId>lz4-java</artifactId>
<version>${kafka-lz4-java.version}</version>
</dependency>
<!-- Transitive of kafka-clients, pinned past CVE-2026-108106 and CVE-2026-93451 (HIGH, fixed in 1.1.10.9) -->
<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>${snappy-java.version}</version>
</dependency>
<!-- Transitive of grpc and google-cloud-storage, pinned past CVE-2026-102554 (HIGH, fixed in 33.7.2) -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${guava.version}</version>
</dependency>
<dependency>
<groupId>io.nats</groupId>
<artifactId>nats-spring-cloud-stream-binder</artifactId>
Expand Down
Loading