Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ data:
trino.rego: |
package trino

import rego.v1

default allow = false

# Allow non-batched access
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ metadata:
name: simple-opa
spec:
image:
productVersion: 0.66.0
productVersion: 1.0.0
servers:
roleGroups:
default: {}
Expand All @@ -66,8 +66,6 @@ data:
trino.rego: |
package trino

import rego.v1

default allow = false

# Allow non-batched access
Expand Down
2 changes: 0 additions & 2 deletions tests/templates/kuttl/opa-authorization/trino_policies.rego
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package trino_policies

import rego.v1

policies := {
"catalogs": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package trino

import data.util
import rego.v1

# This file contains functions to determine the actual permissions
# defined in the Trino policies for the given user and requested
Expand All @@ -26,7 +25,6 @@ identity := input.context.identity
#
# Example:
# package trino_policies
# import rego.v1
# extra_groups := data.stackable.opa.userinfo.v1.userInfoByUsername(input.context.identity.user).groups
default extra_groups := []

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package actual_permissions_test

import data.trino
import rego.v1

# These tests check that all rules and functions return the expected
# result for the given test identity and action.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package trino

import data.util
import rego.v1

# The final policies are a combination of policies offered by Stackable,
# policies provided externally, and default policies.
Expand All @@ -18,7 +17,6 @@ import rego.v1
#
# Example:
# package trino_policies
# import rego.v1
# policies := {
# "catalogs": [
# {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package policies_test

import data.trino
import rego.v1

# These tests check that all rule lists are concatenated as expected and
# that defaults are applied if necessary.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package trino

import rego.v1

# This file contains the requested_permissions rule which returns a set
# of required permissions for the given operation including the
# requested resource. Operations with the same set of required
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package requested_permissions_test

import data.trino
import rego.v1

# These tests check that the returned rules are well-formed. Typos and
# copy-and-paste errors should be detected. It is intentionally not
Expand Down
2 changes: 0 additions & 2 deletions tests/templates/kuttl/opa-authorization/trino_rules/util.rego
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# description: Utility package which extends the built-in functions
package util

import rego.v1

# METADATA
# description: |
# Matches the entire string against a regular expression.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package util_test

import data.util
import rego.v1

test_match_entire if {
util.match_entire(`a`, "a")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
# - data.trino_policies.policies: schema.policies
package trino

import rego.v1

# METADATA
# description: |
# Entry point for OPA policies, configured in the Trino property
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package verification_test

import data.trino
import rego.v1

# These unit tests cover all incremental definitions of the rules in
# verification.rego. For testing the allow rule, operations were
Expand Down
2 changes: 0 additions & 2 deletions tests/templates/kuttl/smoke/09-install-opa.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ data:
trino.rego: |
package trino

import rego.v1

default allow = false

allow if {
Expand Down
2 changes: 1 addition & 1 deletion tests/test-definition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dimensions:
- 4.0.0
- name: opa
values:
- 0.66.0
- 1.0.0
- name: hdfs
values:
- 3.4.0
Expand Down