Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
guicassolato opened this issue Oct 27, 2022 · 2 comments
Open

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

guicassolato opened this issue Oct 27, 2022 · 2 comments
Labels
kind/enhancement New feature or request size/medium

Comments

@guicassolato
Copy link
Collaborator

ATM, the 2nd operands of JSON pattern-matching rules and conditions (a.k.a JSON expressions) only accept static string values.

Value string `json:"value,omitempty"`

It would be nice if the JSON patterns expressions accepted static or dynamic values (i-e- fetched from the Authz JSON):

type StaticOrDynamicValue struct {
// Static value
Value string `json:"value,omitempty"`
// Dynamic value
ValueFrom ValueFrom `json:"valueFrom,omitempty"`
}

@guicassolato
Copy link
Collaborator Author

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

@alexsnaps
Copy link
Member

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

Yes... that will be covered with CEL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request size/medium
Projects
Status: Todo
Status: No status
Development

No branches or pull requests

2 participants