gravitational / predicate-lang

Predicate - Access Control System
Apache License 2.0
3 stars 2 forks source link

Roles to predicate policy converter #50

Open flyinghermit opened 1 year ago

flyinghermit commented 1 year ago

What

Create a converter to convert existing roles into predicate policy, i.e., yaml to python code converter

Why

This will ease migration from existing roles to predicate policy. The suggestion by @vitorenesduarte (https://github.com/gravitational/predicate-lang/issues/47#issuecomment-1316966339) to add --import-roles-as-policies that wold fetch and convert existing roles is a good use case.