Back

Does anyone here know OPA/rego?

I'm trying to build an (allegedly simple) OPA/rego code that checks a name of a resource before allowing it to be made.

  • does the resource begin with [xyz]?
  • if so, allow it to be created
  • if not, stop it

Issue:

The program it's attached to runs, but since the rego isn't correct, it doesn't operate.

I have approached the GitHub community, and I'm asking here.

There are other componets, but let's focus on the rego code for now.

I'm making this post public, so if any one who comes across this who isn't an Elpha member would like to help, they can reach out @ [email protected]

Thank you!