OPA Bundle Loader Silently Ignores Typos in .manifest Keys, Misleading Developers
Open Policy Agent (OPA) v1.20.1 contains a silent failure mode where a one-character typo in a .manifest file key — such as 'rego_verison' instead of 'rego_version' — produces no diagnostic identifying the misspelled key. Instead of flagging the unknown key, OPA's bundle loader silently ignores it, and the resulting error surfaces as a 'rego_parse_error' pointing at the .rego policy file, misleading developers into investigating the wrong file. This behavior is consistent with OPA's documented design, which states the bundle loader has always ignored unknown top-level keys in .manifest files. By contrast, a similar typo in a sibling config.yaml file triggers an explicit 'unknown configuration option' warning, a feature available since OPA v1.19.0. The discrepancy was verified on OPA v1.20.1 and affects any bundle whose .manifest carries a mistyped or unrecognized top-level key.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in