Skip to content

Commit 0d2c56a

Browse files
committed
fix: policies work on opa v1
1 parent 5e42e3d commit 0d2c56a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

opa/containerssh/auth.rego

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package containerssh.auth
22

33
default success = false
44

5-
success = true {
5+
success if {
66
u := input.username
77
p := input.passwordBase64
88
record := data.users[_]

opa/containerssh/config.rego

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package containerssh.config
22

3-
image(user) = i {
3+
image(user) = i if {
44
record := data.users[_]
55
record.name == user
6-
i := record.image
6+
i = record.image
77
} else = data.defaultImage
88

99
config = {

0 commit comments

Comments
 (0)