-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[envoy][rbac] Rule prefix tags #17392
[envoy][rbac] Rule prefix tags #17392
Conversation
Test Results94 tests 79 ✅ 1m 7s ⏱️ For more details on these failures, see this check. Results for commit 1031241. ♻️ This comment has been updated with latest results. |
493bca8
to
217dac7
Compare
2ed09ec
to
f918d56
Compare
f918d56
to
1031241
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just need to fix the CI failures, otherwise lgtm. Really appreciate you adding/updating the tests for this too!
32b951e
to
b8beb8b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thanks for the contribution!
What does this PR do?
This PR adds support for the
rule_stat_prefix
option of Envoy's RBAC metrics with therule_prefix
tag, as implemented in envoyproxy/envoy#31835. This is not released yet, but will be included in an upcoming 1.30 Envoy release. Since this prefix is optional, we can add support for this here before the release is out.This PR also fixes a missing tagTIL the parser "inherits" tags across metrics of the same prefix, so it wasn't missing I was just misunderstanding the implementation of the legacy parser. Because of this, we also had to add a workaround since it couldn't parse different tags for the rule_prefix and shadow_rule_prefix; you had to pick one for all http.rbac metrics. This means we either had to use the same existing shadow_rule_prefix tag for normal metrics or make a breaking change to use rule_prefix for shadow metrics. Luckily, @steveny91 found a way to rewrite the tags after parsing to allow different prefix tags for normal and shadow metrics.shadow_rule_prefix
on theshadow_allowed
metric which was omitted in #16453.Motivation
Additional Notes
Review checklist (to be filled by reviewers)
qa/skip-qa
label if the PR doesn't need to be tested during QA.backport/<branch-name>
label to the PR and it will automatically open a backport PR once this one is merged