Skip to content

Auth policy merge strategy#652

Merged
crstrn13 merged 1 commit intoKuadrant:mainfrom
crstrn13:auth_policy_merge_strategy
Jun 11, 2025
Merged

Auth policy merge strategy#652
crstrn13 merged 1 commit intoKuadrant:mainfrom
crstrn13:auth_policy_merge_strategy

Conversation

@crstrn13
Copy link
Copy Markdown
Contributor

Description

This PR aims to fix issue: #635.

Mirrored existing test suite for rate limit policies and applied them to auth policies.

@crstrn13 crstrn13 requested review from averevki and azgabur March 14, 2025 10:48
Copy link
Copy Markdown
Contributor

@averevki averevki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with Alex on trying to use and overwrite different identities for AuthPolicy tests. Try to not just mirror tests RateLimitPolicy has. RateLimitPolicy has pretty small amount of things you can overwrite (basically only requests rate-limiting), when AuthPolicy has different identities for you to play with. See if you can come up with some scenarios that customer can setup when using the Kuadrant

P.S. these are only the Defaults tests right? Don't forget to mark somewhere that Overrides still need merge strategy tests. Thanks

Comment thread testsuite/tests/singlecluster/defaults/merge/same_target/conftest.py Outdated
Comment thread testsuite/tests/singlecluster/defaults/merge/conftest.py Outdated
@crstrn13 crstrn13 requested review from averevki and azgabur March 27, 2025 09:17
Comment thread testsuite/kuadrant/policy/authorization/auth_policy.py Outdated
@crstrn13 crstrn13 force-pushed the auth_policy_merge_strategy branch 4 times, most recently from ba9b373 to 8eb7e40 Compare March 31, 2025 11:13
Comment thread testsuite/tests/singlecluster/defaults/merge/conftest.py Outdated
Comment thread testsuite/tests/singlecluster/defaults/merge/auth_policy/test_default_merge.py Outdated
Comment thread testsuite/tests/singlecluster/defaults/merge/auth_policy/test_default_merge.py Outdated
Comment thread testsuite/tests/singlecluster/overrides/merge/auth_policy/test_override_merge.py Outdated
Comment thread testsuite/tests/singlecluster/defaults/merge/auth_policy/same_target/conftest.py Outdated
Comment thread testsuite/tests/singlecluster/defaults/merge/rate_limit/test_default_merge.py Outdated
Comment thread testsuite/tests/singlecluster/conftest.py Outdated
Comment thread testsuite/tests/singlecluster/defaults/merge/auth_policy/conftest.py Outdated
Comment thread testsuite/tests/singlecluster/defaults/merge/auth_policy/test_default_replace.py Outdated
Comment thread testsuite/tests/singlecluster/overrides/merge/rate_limit/test_override_merge.py Outdated
Comment thread testsuite/tests/singlecluster/overrides/merge/auth_policy/test_override_merge.py Outdated
Comment thread testsuite/tests/singlecluster/conftest.py Outdated
@crstrn13 crstrn13 force-pushed the auth_policy_merge_strategy branch 2 times, most recently from 3b9dd18 to bacab24 Compare June 4, 2025 14:30
@crstrn13 crstrn13 requested a review from averevki June 4, 2025 15:00
@crstrn13 crstrn13 force-pushed the auth_policy_merge_strategy branch 3 times, most recently from bacab24 to 8196f61 Compare June 10, 2025 15:26
Comment thread testsuite/tests/singlecluster/conftest.py Outdated
Copy link
Copy Markdown
Contributor

@averevki averevki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verifed with make kuadrant. LGTM! Please squash and ready to merge

Signed-off-by: Alexander Cristurean <acristur@redhat.com>
@crstrn13 crstrn13 force-pushed the auth_policy_merge_strategy branch from 01732a8 to 6a88daf Compare June 11, 2025 16:54
@crstrn13 crstrn13 merged commit 737090f into Kuadrant:main Jun 11, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants