Adosh Singh
04/10/2024, 10:13 AM@GetMapping
public ResponseEntity<?> getBlog(@RequestParam String blogId, @RequestParam String userId) {
try {
Blog blog = blogService.getBlog(blogId);
String role = DataLoader.users.get(userId).getRole();
String own = DataLoader.users.get(userId).getName();
String blogOwner = blog.getOwner();
Principal principal = Principal.newInstance(own, role);
Resource resource = Resource.newInstance("blog", blogId)
.withAttribute("owner", AttributeValue.stringValue(blogOwner));
var cerbosClient1 = new CerbosClientBuilder("localhost:3593")
.withPlaintext()
.buildBlockingClient();
System.out.println("after declearing cerbos client" + cerbosClient1);
CheckResult result = cerbosClient1.check(
principal,
resource,
"read");
System.out.println("after cerbos.Client1.check");
if (!result.isAllowed("read")) {
return ResponseEntity.status(403).body("Forbidden");
}
return ResponseEntity.ok(blog);
} catch (Exception e) {
// e.printStackTrace();
System.out.println("Error processing request: " + e.getMessage());
return ResponseEntity.internalServerError().body("Error processing request: " + e.getMessage());
}
}
When I try to hit this endpoint I am getting an error:
Error processing request: RPC exception [Status{code=INTERNAL, description=Panic! This is a bug!, cause=java.lang.NoSuchMethodError: io.grpc.internal.Http2ClientStreamTransportState: method 'void <init>(int, io.grpc.internal.StatsTraceContext, io.grpc.internal.TransportTracer)' not found....
The way I integrated using java-cerbos-sdk:
I've added this in the build.gradle file:
dependencies {
implementation("dev.cerbos:cerbos-sdk-java:0.+")
implementation("io.grpc:grpc-core:1.+")
}
repositories {
mavenCentral()
}
This is how I am making the client:
var cerbosClient1 = new CerbosClientBuilder("localhost:3593")
.withPlaintext()
.buildBlockingClient();
I ran the cerbos server using:
docker run --rm --name cerbos -d -v "$(Get-Location)/cerbos/policies:/policies" -p 3592:3592 -p 3593:3593 <http://ghcr.io/cerbos/cerbos:0.34.0|ghcr.io/cerbos/cerbos:0.34.0>
and this successfully starts the cerbos server.
Cc:@Rohit GhumareCharith (Cerbos)
./gradlew dependencies
?Adosh Singh
04/10/2024, 12:09 PM> Task :dependencies
------------------------------------------------------------
Root project 'demo-app-final'
------------------------------------------------------------
annotationProcessor - Annotation processors and their dependencies for source set 'main'.
No dependencies
bootArchives - Configuration for Spring Boot archive artifacts. (n)
No dependencies
compileClasspath - Compile classpath for source set 'main'.
+--- org.springframework.boot:spring-boot-starter -> 3.2.3
| +--- org.springframework.boot:spring-boot:3.2.3
| | +--- org.springframework:spring-core:6.1.4
| | | \--- org.springframework:spring-jcl:6.1.4
| | \--- org.springframework:spring-context:6.1.4
| | +--- org.springframework:spring-aop:6.1.4
| | | +--- org.springframework:spring-beans:6.1.4
| | | | \--- org.springframework:spring-core:6.1.4 (*)
| | | \--- org.springframework:spring-core:6.1.4 (*)
| | +--- org.springframework:spring-beans:6.1.4 (*)
| | +--- org.springframework:spring-core:6.1.4 (*)
| | +--- org.springframework:spring-expression:6.1.4
| | | \--- org.springframework:spring-core:6.1.4 (*)
| | \--- io.micrometer:micrometer-observation:1.12.3
| | \--- io.micrometer:micrometer-commons:1.12.3
| +--- org.springframework.boot:spring-boot-autoconfigure:3.2.3
| | \--- org.springframework.boot:spring-boot:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-starter-logging:3.2.3
| | +--- ch.qos.logback:logback-classic:1.4.14
| | | +--- ch.qos.logback:logback-core:1.4.14
| | | \--- org.slf4j:slf4j-api:2.0.7 -> 2.0.12
| | +--- org.apache.logging.log4j:log4j-to-slf4j:2.21.1
| | | +--- org.apache.logging.log4j:log4j-api:2.21.1
| | | \--- org.slf4j:slf4j-api:1.7.36 -> 2.0.12
| | \--- org.slf4j:jul-to-slf4j:2.0.12
| | \--- org.slf4j:slf4j-api:2.0.12
| +--- jakarta.annotation:jakarta.annotation-api:2.1.1
| +--- org.springframework:spring-core:6.1.4 (*)
| \--- org.yaml:snakeyaml:2.2
+--- org.springframework.boot:spring-boot-starter-web -> 3.2.3
| +--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-starter-json:3.2.3
| | +--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
| | +--- org.springframework:spring-web:6.1.4
| | | +--- org.springframework:spring-beans:6.1.4 (*)
| | | +--- org.springframework:spring-core:6.1.4 (*)
| | | \--- io.micrometer:micrometer-observation:1.12.3 (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4
| | | | \--- com.fasterxml.jackson:jackson-bom:2.15.4
| | | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.4 (c)
| | | | \--- com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.4 (c)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4
| | | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | +--- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | \--- com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.4
| | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| +--- org.springframework.boot:spring-boot-starter-tomcat:3.2.3
| | +--- jakarta.annotation:jakarta.annotation-api:2.1.1
| | +--- org.apache.tomcat.embed:tomcat-embed-core:10.1.19
| | +--- org.apache.tomcat.embed:tomcat-embed-el:10.1.19
| | \--- org.apache.tomcat.embed:tomcat-embed-websocket:10.1.19
| | \--- org.apache.tomcat.embed:tomcat-embed-core:10.1.19
| +--- org.springframework:spring-web:6.1.4 (*)
| \--- org.springframework:spring-webmvc:6.1.4
| +--- org.springframework:spring-aop:6.1.4 (*)
| +--- org.springframework:spring-beans:6.1.4 (*)
| +--- org.springframework:spring-context:6.1.4 (*)
| +--- org.springframework:spring-core:6.1.4 (*)
| +--- org.springframework:spring-expression:6.1.4 (*)
| \--- org.springframework:spring-web:6.1.4 (*)
+--- dev.cerbos:cerbos-sdk-java:0.+ -> 0.10.0
\--- io.grpc:grpc-core:1.+ -> 1.63.0
\--- io.grpc:grpc-api:1.63.0
+--- com.google.code.findbugs:jsr305:3.0.2
\--- com.google.errorprone:error_prone_annotations:2.23.0
compileOnly - Compile-only dependencies for the 'main' feature. (n)
No dependencies
default - Configuration for default artifacts. (n)
No dependencies
developmentOnly - Configuration for development-only dependencies such as Spring Boot's DevTools.
No dependencies
implementation - Implementation dependencies for the 'main' feature. (n)
+--- org.springframework.boot:spring-boot-starter (n)
+--- org.springframework.boot:spring-boot-starter-web (n)
+--- dev.cerbos:cerbos-sdk-java:0.+ (n)
\--- io.grpc:grpc-core:1.+ (n)
mainSourceElements - List of source directories contained in the Main SourceSet. (n)
No dependencies
Adosh Singh
04/10/2024, 12:09 PMproductionRuntimeClasspath
+--- org.springframework.boot:spring-boot-starter -> 3.2.3
| +--- org.springframework.boot:spring-boot:3.2.3
| | +--- org.springframework:spring-core:6.1.4
| | | \--- org.springframework:spring-jcl:6.1.4
| | \--- org.springframework:spring-context:6.1.4
| | +--- org.springframework:spring-aop:6.1.4
| | | +--- org.springframework:spring-beans:6.1.4
| | | | \--- org.springframework:spring-core:6.1.4 (*)
| | | \--- org.springframework:spring-core:6.1.4 (*)
| | +--- org.springframework:spring-beans:6.1.4 (*)
| | +--- org.springframework:spring-core:6.1.4 (*)
| | +--- org.springframework:spring-expression:6.1.4
| | | \--- org.springframework:spring-core:6.1.4 (*)
| | \--- io.micrometer:micrometer-observation:1.12.3
| | \--- io.micrometer:micrometer-commons:1.12.3
| +--- org.springframework.boot:spring-boot-autoconfigure:3.2.3
| | \--- org.springframework.boot:spring-boot:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-starter-logging:3.2.3
| | +--- ch.qos.logback:logback-classic:1.4.14
| | | +--- ch.qos.logback:logback-core:1.4.14
| | | \--- org.slf4j:slf4j-api:2.0.7 -> 2.0.12
| | +--- org.apache.logging.log4j:log4j-to-slf4j:2.21.1
| | | +--- org.apache.logging.log4j:log4j-api:2.21.1
| | | \--- org.slf4j:slf4j-api:1.7.36 -> 2.0.12
| | \--- org.slf4j:jul-to-slf4j:2.0.12
| | \--- org.slf4j:slf4j-api:2.0.12
| +--- jakarta.annotation:jakarta.annotation-api:2.1.1
| +--- org.springframework:spring-core:6.1.4 (*)
| \--- org.yaml:snakeyaml:2.2
+--- org.springframework.boot:spring-boot-starter-web -> 3.2.3
| +--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-starter-json:3.2.3
| | +--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
| | +--- org.springframework:spring-web:6.1.4
| | | +--- org.springframework:spring-beans:6.1.4 (*)
| | | +--- org.springframework:spring-core:6.1.4 (*)
| | | \--- io.micrometer:micrometer-observation:1.12.3 (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4
| | | | \--- com.fasterxml.jackson:jackson-bom:2.15.4
| | | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.4 (c)
| | | | \--- com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.4 (c)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4
| | | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | +--- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | \--- com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.4
| | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| +--- org.springframework.boot:spring-boot-starter-tomcat:3.2.3
| | +--- jakarta.annotation:jakarta.annotation-api:2.1.1
| | +--- org.apache.tomcat.embed:tomcat-embed-core:10.1.19
| | +--- org.apache.tomcat.embed:tomcat-embed-el:10.1.19
| | \--- org.apache.tomcat.embed:tomcat-embed-websocket:10.1.19
| | \--- org.apache.tomcat.embed:tomcat-embed-core:10.1.19
| +--- org.springframework:spring-web:6.1.4 (*)
| \--- org.springframework:spring-webmvc:6.1.4
| +--- org.springframework:spring-aop:6.1.4 (*)
| +--- org.springframework:spring-beans:6.1.4 (*)
| +--- org.springframework:spring-context:6.1.4 (*)
| +--- org.springframework:spring-core:6.1.4 (*)
| +--- org.springframework:spring-expression:6.1.4 (*)
| \--- org.springframework:spring-web:6.1.4 (*)
+--- dev.cerbos:cerbos-sdk-java:0.+ -> 0.10.0
| +--- com.google.protobuf:protobuf-java:4.26.0
| +--- com.google.protobuf:protobuf-java-util:3.25.3
| | +--- com.google.protobuf:protobuf-java:3.25.3 -> 4.26.0
| | +--- com.google.code.findbugs:jsr305:3.0.2
| | +--- com.google.code.gson:gson:2.8.9 -> 2.10.1
| | +--- com.google.errorprone:error_prone_annotations:2.18.0 -> 2.23.0
| | +--- com.google.guava:guava:32.0.1-jre -> 32.1.3-android
| | | +--- com.google.guava:failureaccess:1.0.1
| | | +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
| | | +--- com.google.code.findbugs:jsr305:3.0.2
| | | +--- org.checkerframework:checker-qual:3.37.0
| | | \--- com.google.errorprone:error_prone_annotations:2.21.1 -> 2.23.0
| | \--- com.google.j2objc:j2objc-annotations:2.8
| +--- io.grpc:grpc-protobuf:1.62.2
| | +--- io.grpc:grpc-api:1.62.2 -> 1.63.0
| | | +--- com.google.code.findbugs:jsr305:3.0.2
| | | +--- com.google.errorprone:error_prone_annotations:2.23.0
| | | \--- com.google.guava:guava:32.1.3-android (*)
| | +--- com.google.code.findbugs:jsr305:3.0.2
| | +--- com.google.protobuf:protobuf-java:3.25.1 -> 4.26.0
| | +--- com.google.api.grpc:proto-google-common-protos:2.29.0
| | | \--- com.google.protobuf:protobuf-java:3.25.1 -> 4.26.0
| | +--- com.google.guava:guava:32.1.3-android (*)
| | \--- io.grpc:grpc-protobuf-lite:1.62.2
| | +--- io.grpc:grpc-api:1.62.2 -> 1.63.0 (*)
| | +--- com.google.code.findbugs:jsr305:3.0.2
| | \--- com.google.guava:guava:32.1.3-android (*)
| +--- io.grpc:grpc-stub:1.62.2
| | +--- io.grpc:grpc-api:1.62.2 -> 1.63.0 (*)
| | +--- com.google.guava:guava:32.1.3-android (*)
| | \--- com.google.errorprone:error_prone_annotations:2.23.0
| +--- io.grpc:grpc-netty-shaded:1.62.2
| | +--- io.grpc:grpc-util:1.62.2
| | | +--- io.grpc:grpc-api:1.62.2 -> 1.63.0 (*)
| | | +--- io.grpc:grpc-core:1.62.2 -> 1.63.0
| | | | +--- io.grpc:grpc-api:1.63.0 (*)
| | | | +--- com.google.code.gson:gson:2.10.1
| | | | +--- com.google.android:annotations:4.1.1.4
| | | | +--- org.codehaus.mojo:animal-sniffer-annotations:1.23
| | | | +--- com.google.errorprone:error_prone_annotations:2.23.0
| | | | +--- com.google.guava:guava:32.1.3-android (*)
| | | | +--- io.perfmark:perfmark-api:0.26.0
| | | | \--- io.grpc:grpc-context:1.63.0
| | | | \--- io.grpc:grpc-api:1.63.0 (*)
| | | +--- org.codehaus.mojo:animal-sniffer-annotations:1.23
| | | \--- com.google.guava:guava:32.1.3-android (*)
| | +--- io.grpc:grpc-core:1.62.2 -> 1.63.0 (*)
| | +--- com.google.guava:guava:32.1.3-android (*)
| | +--- com.google.errorprone:error_prone_annotations:2.23.0
| | +--- io.perfmark:perfmark-api:0.26.0
| | \--- io.grpc:grpc-api:1.62.2 -> 1.63.0 (*)
| +--- io.netty:netty-tcnative-boringssl-static:2.0.65.Final -> 2.0.61.Final
| | \--- io.netty:netty-tcnative-classes:2.0.61.Final
| +--- org.testcontainers:testcontainers:1.19.7 -> 1.19.5
| | +--- junit:junit:4.13.2
| | | \--- org.hamcrest:hamcrest-core:1.3 -> 2.2
| | | \--- org.hamcrest:hamcrest:2.2
| | +--- org.slf4j:slf4j-api:1.7.36 -> 2.0.12
| | +--- org.apache.commons:commons-compress:1.24.0
| | +--- org.rnorth.duct-tape:duct-tape:1.0.8
| | | \--- org.jetbrains:annotations:17.0.0
| | +--- com.github.docker-java:docker-java-api:3.3.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.10.3 -> 2.15.4 (*)
| | | \--- org.slf4j:slf4j-api:1.7.30 -> 2.0.12
| | \--- com.github.docker-java:docker-java-transport-zerodep:3.3.4
| | +--- com.github.docker-java:docker-java-transport:3.3.4
| | +--- org.slf4j:slf4j-api:1.7.25 -> 2.0.12
| | \--- net.java.dev.jna:jna:5.13.0
| +--- build.buf.protoc-gen-validate:pgv-java-stub:1.0.4
| | +--- com.google.re2j:re2j:1.7
| | +--- commons-validator:commons-validator:1.8.0
| | +--- com.google.protobuf:protobuf-java:3.25.1 -> 4.26.0
| | \--- com.google.protobuf:protobuf-java-util:3.25.1 -> 3.25.3 (*)
| \--- commons-io:commons-io:2.15.1
\--- io.grpc:grpc-core:1.+ -> 1.63.0 (*)
Adosh Singh
04/10/2024, 12:09 PMruntimeClasspath - Runtime classpath of source set 'main'.
+--- org.springframework.boot:spring-boot-starter -> 3.2.3
| +--- org.springframework.boot:spring-boot:3.2.3
| | +--- org.springframework:spring-core:6.1.4
| | | \--- org.springframework:spring-jcl:6.1.4
| | \--- org.springframework:spring-context:6.1.4
| | +--- org.springframework:spring-aop:6.1.4
| | | +--- org.springframework:spring-beans:6.1.4
| | | | \--- org.springframework:spring-core:6.1.4 (*)
| | | \--- org.springframework:spring-core:6.1.4 (*)
| | +--- org.springframework:spring-beans:6.1.4 (*)
| | +--- org.springframework:spring-core:6.1.4 (*)
| | +--- org.springframework:spring-expression:6.1.4
| | | \--- org.springframework:spring-core:6.1.4 (*)
| | \--- io.micrometer:micrometer-observation:1.12.3
| | \--- io.micrometer:micrometer-commons:1.12.3
| +--- org.springframework.boot:spring-boot-autoconfigure:3.2.3
| | \--- org.springframework.boot:spring-boot:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-starter-logging:3.2.3
| | +--- ch.qos.logback:logback-classic:1.4.14
| | | +--- ch.qos.logback:logback-core:1.4.14
| | | \--- org.slf4j:slf4j-api:2.0.7 -> 2.0.12
| | +--- org.apache.logging.log4j:log4j-to-slf4j:2.21.1
| | | +--- org.apache.logging.log4j:log4j-api:2.21.1
| | | \--- org.slf4j:slf4j-api:1.7.36 -> 2.0.12
| | \--- org.slf4j:jul-to-slf4j:2.0.12
| | \--- org.slf4j:slf4j-api:2.0.12
| +--- jakarta.annotation:jakarta.annotation-api:2.1.1
| +--- org.springframework:spring-core:6.1.4 (*)
| \--- org.yaml:snakeyaml:2.2
+--- org.springframework.boot:spring-boot-starter-web -> 3.2.3
| +--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-starter-json:3.2.3
| | +--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
| | +--- org.springframework:spring-web:6.1.4
| | | +--- org.springframework:spring-beans:6.1.4 (*)
| | | +--- org.springframework:spring-core:6.1.4 (*)
| | | \--- io.micrometer:micrometer-observation:1.12.3 (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4
| | | | \--- com.fasterxml.jackson:jackson-bom:2.15.4
| | | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.4 (c)
| | | | \--- com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.4 (c)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4
| | | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | +--- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | \--- com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.4
| | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| +--- org.springframework.boot:spring-boot-starter-tomcat:3.2.3
| | +--- jakarta.annotation:jakarta.annotation-api:2.1.1
| | +--- org.apache.tomcat.embed:tomcat-embed-core:10.1.19
| | +--- org.apache.tomcat.embed:tomcat-embed-el:10.1.19
| | \--- org.apache.tomcat.embed:tomcat-embed-websocket:10.1.19
| | \--- org.apache.tomcat.embed:tomcat-embed-core:10.1.19
| +--- org.springframework:spring-web:6.1.4 (*)
| \--- org.springframework:spring-webmvc:6.1.4
| +--- org.springframework:spring-aop:6.1.4 (*)
| +--- org.springframework:spring-beans:6.1.4 (*)
| +--- org.springframework:spring-context:6.1.4 (*)
| +--- org.springframework:spring-core:6.1.4 (*)
| +--- org.springframework:spring-expression:6.1.4 (*)
| \--- org.springframework:spring-web:6.1.4 (*)
+--- dev.cerbos:cerbos-sdk-java:0.+ -> 0.10.0
| +--- com.google.protobuf:protobuf-java:4.26.0
| +--- com.google.protobuf:protobuf-java-util:3.25.3
| | +--- com.google.protobuf:protobuf-java:3.25.3 -> 4.26.0
| | +--- com.google.code.findbugs:jsr305:3.0.2
| | +--- com.google.code.gson:gson:2.8.9 -> 2.10.1
| | +--- com.google.errorprone:error_prone_annotations:2.18.0 -> 2.23.0
| | +--- com.google.guava:guava:32.0.1-jre -> 32.1.3-android
| | | +--- com.google.guava:failureaccess:1.0.1
| | | +--- com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava
| | | +--- com.google.code.findbugs:jsr305:3.0.2
| | | +--- org.checkerframework:checker-qual:3.37.0
| | | \--- com.google.errorprone:error_prone_annotations:2.21.1 -> 2.23.0
| | \--- com.google.j2objc:j2objc-annotations:2.8
| +--- io.grpc:grpc-protobuf:1.62.2
| | +--- io.grpc:grpc-api:1.62.2 -> 1.63.0
| | | +--- com.google.code.findbugs:jsr305:3.0.2
| | | +--- com.google.errorprone:error_prone_annotations:2.23.0
| | | \--- com.google.guava:guava:32.1.3-android (*)
| | +--- com.google.code.findbugs:jsr305:3.0.2
| | +--- com.google.protobuf:protobuf-java:3.25.1 -> 4.26.0
| | +--- com.google.api.grpc:proto-google-common-protos:2.29.0
| | | \--- com.google.protobuf:protobuf-java:3.25.1 -> 4.26.0
| | +--- com.google.guava:guava:32.1.3-android (*)
| | \--- io.grpc:grpc-protobuf-lite:1.62.2
| | +--- io.grpc:grpc-api:1.62.2 -> 1.63.0 (*)
| | +--- com.google.code.findbugs:jsr305:3.0.2
| | \--- com.google.guava:guava:32.1.3-android (*)
| +--- io.grpc:grpc-stub:1.62.2
| | +--- io.grpc:grpc-api:1.62.2 -> 1.63.0 (*)
| | +--- com.google.guava:guava:32.1.3-android (*)
| | \--- com.google.errorprone:error_prone_annotations:2.23.0
| +--- io.grpc:grpc-netty-shaded:1.62.2
| | +--- io.grpc:grpc-util:1.62.2
| | | +--- io.grpc:grpc-api:1.62.2 -> 1.63.0 (*)
| | | +--- io.grpc:grpc-core:1.62.2 -> 1.63.0
| | | | +--- io.grpc:grpc-api:1.63.0 (*)
| | | | +--- com.google.code.gson:gson:2.10.1
| | | | +--- com.google.android:annotations:4.1.1.4
| | | | +--- org.codehaus.mojo:animal-sniffer-annotations:1.23
| | | | +--- com.google.errorprone:error_prone_annotations:2.23.0
| | | | +--- com.google.guava:guava:32.1.3-android (*)
| | | | +--- io.perfmark:perfmark-api:0.26.0
| | | | \--- io.grpc:grpc-context:1.63.0
| | | | \--- io.grpc:grpc-api:1.63.0 (*)
| | | +--- org.codehaus.mojo:animal-sniffer-annotations:1.23
| | | \--- com.google.guava:guava:32.1.3-android (*)
| | +--- io.grpc:grpc-core:1.62.2 -> 1.63.0 (*)
| | +--- com.google.guava:guava:32.1.3-android (*)
| | +--- com.google.errorprone:error_prone_annotations:2.23.0
| | +--- io.perfmark:perfmark-api:0.26.0
| | \--- io.grpc:grpc-api:1.62.2 -> 1.63.0 (*)
| +--- io.netty:netty-tcnative-boringssl-static:2.0.65.Final -> 2.0.61.Final
| | \--- io.netty:netty-tcnative-classes:2.0.61.Final
| +--- org.testcontainers:testcontainers:1.19.7 -> 1.19.5
| | +--- junit:junit:4.13.2
| | | \--- org.hamcrest:hamcrest-core:1.3 -> 2.2
| | | \--- org.hamcrest:hamcrest:2.2
| | +--- org.slf4j:slf4j-api:1.7.36 -> 2.0.12
| | +--- org.apache.commons:commons-compress:1.24.0
| | +--- org.rnorth.duct-tape:duct-tape:1.0.8
| | | \--- org.jetbrains:annotations:17.0.0
| | +--- com.github.docker-java:docker-java-api:3.3.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.10.3 -> 2.15.4 (*)
| | | \--- org.slf4j:slf4j-api:1.7.30 -> 2.0.12
| | \--- com.github.docker-java:docker-java-transport-zerodep:3.3.4
| | +--- com.github.docker-java:docker-java-transport:3.3.4
| | +--- org.slf4j:slf4j-api:1.7.25 -> 2.0.12
| | \--- net.java.dev.jna:jna:5.13.0
| +--- build.buf.protoc-gen-validate:pgv-java-stub:1.0.4
| | +--- com.google.re2j:re2j:1.7
| | +--- commons-validator:commons-validator:1.8.0
| | +--- com.google.protobuf:protobuf-java:3.25.1 -> 4.26.0
| | \--- com.google.protobuf:protobuf-java-util:3.25.1 -> 3.25.3 (*)
| \--- commons-io:commons-io:2.15.1
\--- io.grpc:grpc-core:1.+ -> 1.63.0 (*)
runtimeElements - Runtime elements for the 'main' feature. (n)
No dependencies
runtimeOnly - Runtime-only dependencies for the 'main' feature. (n)
No dependencies
testAndDevelopmentOnly - Configuration for test and development-only dependencies such as Spring Boot's DevTools.
No dependencies
testAnnotationProcessor - Annotation processors and their dependencies for source set 'test'.
No dependencies
Adosh Singh
04/10/2024, 12:09 PMtestCompileClasspath - Compile classpath for source set 'test'.
+--- org.springframework.boot:spring-boot-starter -> 3.2.3
| +--- org.springframework.boot:spring-boot:3.2.3
| | +--- org.springframework:spring-core:6.1.4
| | | \--- org.springframework:spring-jcl:6.1.4
| | \--- org.springframework:spring-context:6.1.4
| | +--- org.springframework:spring-aop:6.1.4
| | | +--- org.springframework:spring-beans:6.1.4
| | | | \--- org.springframework:spring-core:6.1.4 (*)
| | | \--- org.springframework:spring-core:6.1.4 (*)
| | +--- org.springframework:spring-beans:6.1.4 (*)
| | +--- org.springframework:spring-core:6.1.4 (*)
| | +--- org.springframework:spring-expression:6.1.4
| | | \--- org.springframework:spring-core:6.1.4 (*)
| | \--- io.micrometer:micrometer-observation:1.12.3
| | \--- io.micrometer:micrometer-commons:1.12.3
| +--- org.springframework.boot:spring-boot-autoconfigure:3.2.3
| | \--- org.springframework.boot:spring-boot:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-starter-logging:3.2.3
| | +--- ch.qos.logback:logback-classic:1.4.14
| | | +--- ch.qos.logback:logback-core:1.4.14
| | | \--- org.slf4j:slf4j-api:2.0.7 -> 2.0.12
| | +--- org.apache.logging.log4j:log4j-to-slf4j:2.21.1
| | | +--- org.apache.logging.log4j:log4j-api:2.21.1
| | | \--- org.slf4j:slf4j-api:1.7.36 -> 2.0.12
| | \--- org.slf4j:jul-to-slf4j:2.0.12
| | \--- org.slf4j:slf4j-api:2.0.12
| +--- jakarta.annotation:jakarta.annotation-api:2.1.1
| +--- org.springframework:spring-core:6.1.4 (*)
| \--- org.yaml:snakeyaml:2.2
+--- org.springframework.boot:spring-boot-starter-web -> 3.2.3
| +--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-starter-json:3.2.3
| | +--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
| | +--- org.springframework:spring-web:6.1.4
| | | +--- org.springframework:spring-beans:6.1.4 (*)
| | | +--- org.springframework:spring-core:6.1.4 (*)
| | | \--- io.micrometer:micrometer-observation:1.12.3 (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4
| | | | \--- com.fasterxml.jackson:jackson-bom:2.15.4
| | | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4 (c)
| | | | +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.4 (c)
| | | | \--- com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.4 (c)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4
| | | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | +--- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | +--- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.15.4
| | | +--- com.fasterxml.jackson.core:jackson-annotations:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| | \--- com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.4
| | +--- com.fasterxml.jackson.core:jackson-core:2.15.4 (*)
| | +--- com.fasterxml.jackson.core:jackson-databind:2.15.4 (*)
| | \--- com.fasterxml.jackson:jackson-bom:2.15.4 (*)
| +--- org.springframework.boot:spring-boot-starter-tomcat:3.2.3
| | +--- jakarta.annotation:jakarta.annotation-api:2.1.1
| | +--- org.apache.tomcat.embed:tomcat-embed-core:10.1.19
| | +--- org.apache.tomcat.embed:tomcat-embed-el:10.1.19
| | \--- org.apache.tomcat.embed:tomcat-embed-websocket:10.1.19
| | \--- org.apache.tomcat.embed:tomcat-embed-core:10.1.19
| +--- org.springframework:spring-web:6.1.4 (*)
| \--- org.springframework:spring-webmvc:6.1.4
| +--- org.springframework:spring-aop:6.1.4 (*)
| +--- org.springframework:spring-beans:6.1.4 (*)
| +--- org.springframework:spring-context:6.1.4 (*)
| +--- org.springframework:spring-core:6.1.4 (*)
| +--- org.springframework:spring-expression:6.1.4 (*)
| \--- org.springframework:spring-web:6.1.4 (*)
+--- dev.cerbos:cerbos-sdk-java:0.+ -> 0.10.0
+--- io.grpc:grpc-core:1.+ -> 1.63.0
| \--- io.grpc:grpc-api:1.63.0
| +--- com.google.code.findbugs:jsr305:3.0.2
| \--- com.google.errorprone:error_prone_annotations:2.23.0
\--- org.springframework.boot:spring-boot-starter-test -> 3.2.3
+--- org.springframework.boot:spring-boot-starter:3.2.3 (*)
+--- org.springframework.boot:spring-boot-test:3.2.3
| \--- org.springframework.boot:spring-boot:3.2.3 (*)
+--- org.springframework.boot:spring-boot-test-autoconfigure:3.2.3
| +--- org.springframework.boot:spring-boot:3.2.3 (*)
| +--- org.springframework.boot:spring-boot-test:3.2.3 (*)
| \--- org.springframework.boot:spring-boot-autoconfigure:3.2.3 (*)
+--- com.jayway.jsonpath:json-path:2.9.0
+--- jakarta.xml.bind:jakarta.xml.bind-api:4.0.1
| \--- jakarta.activation:jakarta.activation-api:2.1.2
+--- net.minidev:json-smart:2.5.0
| \--- net.minidev:accessors-smart:2.5.0
| \--- org.ow2.asm:asm:9.3
+--- org.assertj:assertj-core:3.24.2
| \--- net.bytebuddy:byte-buddy:1.12.21 -> 1.14.12
+--- org.awaitility:awaitility:4.2.0
| \--- org.hamcrest:hamcrest:2.1 -> 2.2
+--- org.hamcrest:hamcrest:2.2
+--- org.junit.jupiter:junit-jupiter:5.10.2
| +--- org.junit:junit-bom:5.10.2
| | +--- org.junit.jupiter:junit-jupiter:5.10.2 (c)
| | +--- org.junit.jupiter:junit-jupiter-api:5.10.2 (c)
| | +--- org.junit.jupiter:junit-jupiter-params:5.10.2 (c)
| | \--- org.junit.platform:junit-platform-commons:1.10.2 (c)
| +--- org.junit.jupiter:junit-jupiter-api:5.10.2
| | +--- org.junit:junit-bom:5.10.2 (*)
| | +--- org.opentest4j:opentest4j:1.3.0
| | +--- org.junit.platform:junit-platform-commons:1.10.2
| | | +--- org.junit:junit-bom:5.10.2 (*)
| | | \--- org.apiguardian:apiguardian-api:1.1.2
| | \--- org.apiguardian:apiguardian-api:1.1.2
| \--- org.junit.jupiter:junit-jupiter-params:5.10.2
| +--- org.junit:junit-bom:5.10.2 (*)
| +--- org.junit.jupiter:junit-jupiter-api:5.10.2 (*)
| \--- org.apiguardian:apiguardian-api:1.1.2
+--- org.mockito:mockito-core:5.7.0
| +--- net.bytebuddy:byte-buddy:1.14.9 -> 1.14.12
| \--- net.bytebuddy:byte-buddy-agent:1.14.9 -> 1.14.12
+--- org.mockito:mockito-junit-jupiter:5.7.0
| \--- org.mockito:mockito-core:5.7.0 (*)
+--- org.skyscreamer:jsonassert:1.5.1
| \--- com.vaadin.external.google:android-json:0.0.20131108.vaadin1
+--- org.springframework:spring-core:6.1.4 (*)
+--- org.springframework:spring-test:6.1.4
| \--- org.springframework:spring-core:6.1.4 (*)
\--- org.xmlunit:xmlunit-core:2.9.1
testCompileOnly - Compile only dependencies for source set 'test'. (n)
No dependencies
testImplementation - Implementation only dependencies for source set 'test'. (n)
\--- org.springframework.boot:spring-boot-starter-test (n)
Adosh Singh
04/10/2024, 12:11 PMAdosh Singh
04/10/2024, 12:11 PMtestRuntimeOnly - Runtime only dependencies for source set 'test'. (n)
No dependencies
(c) - A dependency constraint, not a dependency. The dependency affected by the constraint occurs elsewhere in the tree.
(*) - Indicates repeated occurrences of a transitive dependency subtree. Gradle expands transitive dependency subtrees only once per project; repeat occurrences only display the root of the subtree, followed by this annotation.
(n) - A dependency or dependency configuration that cannot be resolved.
A web-based, searchable dependency report is available by adding the --scan option.
BUILD SUCCESSFUL in 46s
1 actionable task: 1 executed
Adosh Singh
04/10/2024, 12:11 PMCharith (Cerbos)
io.grpc:grpc-core:1.62.2 -> 1.63.0
but it hasn't picked up the latest Cerbos SDK that uses that version of gRPC. Try updating your gradle file to explicitly use version 0.11.0 of Cerbos SDK.
dependencies {
implementation("dev.cerbos:cerbos-sdk-java:0.11.0")
implementation("io.grpc:grpc-core:1.+")
}
Adosh Singh
04/10/2024, 12:36 PMAdosh Singh
04/10/2024, 1:10 PM