PaloAltoNetworks / rbac-police

Evaluate the RBAC permissions of Kubernetes identities through policies written in Rego
https://www.paloaltonetworks.com/resources/whitepapers/kubernetes-privilege-escalation-excessive-permissions-in-popular-platforms
MIT License
339 stars 35 forks source link

fix: reference utils files relative to policy lib directory #18

Open jpts opened 1 year ago

jpts commented 1 year ago

Description

The location of utils rego files are currently hardcoded. If we move the lib folder to outside the current directory, the utils rego files cannot be found.

Motivation and Context

This PR locates the utils rego files relative to the lib path specified on the CLI.

How Has This Been Tested?

I have built the binary with changes and tested locally.

Screenshots (if appropriate)

Types of changes

Checklist

welcome-to-palo-alto-networks[bot] commented 1 year ago

:tada: Thanks for opening this pull request! We really appreciate contributors like you! :raised_hands: