You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the following capabilities.json file, that disallows all outbound network connections:
{
..."allow_net": []
}
and the following Rego file, that has an inlined schema with a reference to some schema hosted at some web server (this server doesn't need to exist for this example):
When running opa eval --capabilities capabilities.json -s schemas -d policy.rego data (the schemasfolder doesn't need to contain any schemas, it's just required for the type-checker to utilize the schemas annotation), we expect the following error, on account of no remote hosts being allowed by capabilities.json:
Given the following
capabilities.json
file, that disallows all outbound network connections:and the following Rego file, that has an inlined schema with a reference to some schema hosted at some web server (this server doesn't need to exist for this example):
When running
opa eval --capabilities capabilities.json -s schemas -d policy.rego data
(theschemas
folder doesn't need to contain any schemas, it's just required for the type-checker to utilize theschemas
annotation), we expect the following error, on account of no remote hosts being allowed bycapabilities.json
:but we get the following error, as OPA attempts to fetch the schema (no server listener present on
localhost:8000
:The text was updated successfully, but these errors were encountered: