This is a rego playground that you can run locally. It also allows you to load a custom bundle into the playground to use.
URLs are safe to share. The URL parameters are built from the code itself and so cannot be guessed.
regoroundctl service start --bundle-path bundle.tar.gz
You can use the default bundle included in this repo to test with.
Important
Currently your policy must use the play package name.
package play
import data.names
allow := names.allow
errors := names.errors
{
"names": ["John", "Jim"]
}
{
"allow": true,
"errors": []
}
If you enter data in the data field, it will override the existing bundle data to test with.
Go ahead and place this in the data field and hit evaluate
{
"rules": {
"allowed_names": ["Pete"]
}
}
You should now see
{
"allow": false,
"errs": [
"name Jim is not allowed",
"name John is not allowed"
]
}