opal
opal copied to clipboard
"detail": "policy repo was not found"
The /policy returns : "detail": "policy repo was not found", when configured for Bundle API
To Reproduce OPAL_POLICY_BUNDLE_URL=... OPAL_POLICY_SOURCE_TYPE = API
Expected behavior /policy returns 200
OPAL version
- Version: latest
hi @iduras3, can you please provide your full OPAL server API, this looks like a configuration issue. @obsd the feature owner will assist.
These two were the only settings I used. Rest should be the default. The data used was the example data from opal, in a bundle. The log showed me the correct url of the bundle location. @obsd
@iduras3, I will check this, are you using our docker? If so, sharing it (without sensitive data) would help me reproduce.
@obsd I tested it again, with following settings:
{
"name": "OPAL_DATA_CONFIG_SOURCES",
"value": "{\"config\":{\"entries\":[{\"url\":\"http://localhost7002/policy-data\",\"topics\":[\"policy_data\"]}]}}",
},
{
"name": "OPAL_POLICY_BUNDLE_URL",
"value": "<api>",
},
{
"name": "OPAL_POLICY_SOURCE_TYPE",
"value": "API",
},
It seems that error comes from the bundle. I created a bundle with the data.json and rbac.rego file from this repo using the opa build data.json rbac.rego
command and run into that error.
It worked after using the bundle from this repo.
@iduras3 glad to hear that it worked