Commit 8f67bb6
fix: correct CEL syntax for subscription_info has() check
Fix CEL syntax error in AuthPolicy subscription_info field that was causing
AuthConfig validation failures and blocking model access.
The has() macro in Authorino/Kuadrant CEL does not support map subscript
notation has(auth.metadata["subscription-info"]). Changed to check for a
specific field within the object: has(auth.metadata["subscription-info"].name).
Error message before fix:
ERROR: <input>:1:18: invalid argument to has() macro
| has(auth.metadata["subscription-info"]) ? ...
| .................^
This was causing AuthPolicies to remain in Enforced=False state, preventing
smoke tests from passing.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent f7f47c8 commit 8f67bb6
File tree
1 file changed
+1
-1
lines changed- maas-controller/pkg/controller/maas
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
484 | | - | |
| 484 | + | |
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
| |||
0 commit comments