Skip to content

Commit

Permalink
tiny fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Jan 17, 2025
1 parent 5ed15a6 commit 3068c82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion initialize_idp.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
print("IDP is incorrect: verify that Keycloak is set up and clean/build/compose opa again")
sys.exit(2)
except Exception as e:
raise Exception(f"failed to save idp keys: {str(e)} {status_code}")
raise Exception(f"failed to save idp keys: {type(e)} {str(e)}")
sys.exit(1)

sys.exit(0)
2 changes: 1 addition & 1 deletion permissions_engine/permissions.rego
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ team_member_programs := object.keys(data.calculate.team_readable_programs)
dac_programs := object.keys(data.vault.user_programs)

# programs the user is listed as a program curator for
curator_programs := data.calculate.curateable_programs
curator_programs := object.keys(data.calculate.curateable_programs)
3 changes: 3 additions & 0 deletions permissions_engine/service.rego
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ verified if {
service_token == input.token
}

else := false


minus(service, info) := "opa service is running"

0 comments on commit 3068c82

Please sign in to comment.