This repository has been archived by the owner on Jan 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped to latest version of Trino. Adjusted overrides in OpaAuthorizer.
- Loading branch information
Showing
8 changed files
with
255 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
.classpath | ||
.project | ||
.settings | ||
target | ||
target | ||
|
||
*.iml | ||
*.ipr | ||
*.iws | ||
|
||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
320 changes: 154 additions & 166 deletions
320
src/main/java/tech/stackable/trino/opa/OpaAuthorizer.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/java/tech/stackable/trino/opa/OpaQueryInputGeneric.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package tech.stackable.trino.opa; | ||
|
||
public abstract class OpaQueryInputGeneric { | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
src/main/java/tech/stackable/trino/opa/OpaQueryInputIdentity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package tech.stackable.trino.opa; | ||
|
||
import io.trino.spi.security.Identity; | ||
import io.trino.spi.security.SystemSecurityContext; | ||
|
||
public class OpaQueryInputIdentity extends OpaQueryInputGeneric { | ||
public final Identity identity; | ||
public final OpaQueryInputAction action; | ||
|
||
public OpaQueryInputIdentity(Identity identity, OpaQueryInputAction action) { | ||
this.identity = identity; | ||
this.action = action; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters