Skip to content

Commit

Permalink
Fixed OPA baseUri path
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavr12 committed Aug 12, 2024
1 parent a41fe9d commit 2a28209
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public OpaS3SecurityFacadeProvider(@ForOpa HttpClient httpClient, OpaS3SecurityM
{
this.httpClient = requireNonNull(httpClient, "httpClient is null");
this.opaS3SecurityMapper = requireNonNull(opaS3SecurityMapper, "opaS3SecurityMapper is null");
opaServerUri = UriBuilder.fromUri(config.getOpaServerBaseUri()).path("/v1/data").build();
opaServerUri = UriBuilder.fromUri(config.getOpaServerBaseUri()).build();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static class Filter
public TestingTrinoAwsProxyServer.Builder filter(TestingTrinoAwsProxyServer.Builder builder)
{
return builder.withProperty("s3-security.type", OPA_S3_SECURITY_IDENTIFIER)
.withProperty("opa-s3-security.server-base-uri", "http://localhost")
.withProperty("opa-s3-security.server-base-uri", "http://localhost:%s/v1/data")
.addModule(binder -> binder.bind(OpaS3SecurityMapper.class).to(OpaMapper.class).in(Scopes.SINGLETON))
.withS3Container()
.withOpaContainer();
Expand Down

0 comments on commit 2a28209

Please sign in to comment.