Skip to content

feat(amphora-service): protect public endpoints

Codecov / codecov/patch failed Nov 15, 2024 in 1s

82.40% of diff hit (target 90.04%)

View this Pull Request on Codecov

82.40% of diff hit (target 90.04%)

Annotations

Check warning on line 40 in amphora-service/src/main/java/io/carbynestack/amphora/service/opa/JwtReader.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/opa/JwtReader.java#L40

Added line #L40 was not covered by tests

Check warning on line 46 in amphora-service/src/main/java/io/carbynestack/amphora/service/opa/JwtReader.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/opa/JwtReader.java#L45-L46

Added lines #L45 - L46 were not covered by tests

Check warning on line 54 in amphora-service/src/main/java/io/carbynestack/amphora/service/opa/JwtReader.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/opa/JwtReader.java#L54

Added line #L54 was not covered by tests

Check warning on line 33 in amphora-service/src/main/java/io/carbynestack/amphora/service/opa/OpaRequestBody.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/opa/OpaRequestBody.java#L29-L33

Added lines #L29 - L33 were not covered by tests

Check warning on line 231 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L229-L231

Added lines #L229 - L231 were not covered by tests

Check warning on line 234 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L233-L234

Added lines #L233 - L234 were not covered by tests

Check warning on line 263 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L263

Added line #L263 was not covered by tests

Check warning on line 299 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L299

Added line #L299 was not covered by tests

Check warning on line 335 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L335

Added line #L335 was not covered by tests

Check warning on line 377 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L377

Added line #L377 was not covered by tests

Check warning on line 417 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L417

Added line #L417 was not covered by tests

Check warning on line 446 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L446

Added line #L446 was not covered by tests

Check warning on line 454 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L453-L454

Added lines #L453 - L454 were not covered by tests

Check warning on line 485 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L485

Added line #L485 was not covered by tests

Check warning on line 493 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L492-L493

Added lines #L492 - L493 were not covered by tests

Check warning on line 495 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L495

Added line #L495 was not covered by tests

Check warning on line 528 in amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/persistence/metadata/StorageService.java#L528

Added line #L528 was not covered by tests

Check warning on line 58 in amphora-service/src/main/java/io/carbynestack/amphora/service/rest/RestControllerExceptionHandler.java

See this annotation in the file changed.

@codecov codecov / codecov/patch

amphora-service/src/main/java/io/carbynestack/amphora/service/rest/RestControllerExceptionHandler.java#L56-L58

Added lines #L56 - L58 were not covered by tests