Kuadrant / authorino

K8s-native AuthN/AuthZ service to protect your APIs.
Apache License 2.0
197 stars 31 forks source link

Dynamic values in the 2nd operands of JSON expressions #359

Open guicassolato opened 2 years ago

guicassolato commented 2 years ago

ATM, the 2nd operands of JSON pattern-matching rules and conditions (a.k.a JSON expressions) only accept static string values. https://github.com/Kuadrant/authorino/blob/a8082ec35cfd112513fd0fb326c261fe153fb423/api/v1beta1/auth_config_types.go#L164

It would be nice if the JSON patterns expressions accepted static or dynamic values (i-e- fetched from the Authz JSON): https://github.com/Kuadrant/authorino/blob/a8082ec35cfd112513fd0fb326c261fe153fb423/api/v1beta1/auth_config_types.go#L71-L76

guicassolato commented 2 months ago

@alexsnaps, I guess we can close this in favour of #475. WDYT?

alexsnaps commented 2 months ago

@alexsnaps, I guess we can close this in favour of #475. WDYT?

Yes... that will be covered with CEL