-
Notifications
You must be signed in to change notification settings - Fork 672
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
SMQ - 2724 - Add Auth Callout #2731
base: main
Are you sure you want to change the base?
Conversation
7119d7b
to
910f660
Compare
auth/callback.go
Outdated
if len(c.urls) == 0 { | ||
return nil | ||
} |
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.
Move this to the beginning of the function. Also, let's use a single URL at a time, with other URLs being a fallback, something like https://www.rabbitmq.com/docs/access-control#combined-backends.
26e4b56
to
c24229d
Compare
6d17b81
to
da7fadc
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2731 +/- ##
==========================================
- Coverage 42.21% 34.98% -7.24%
==========================================
Files 348 214 -134
Lines 47813 38057 -9756
==========================================
- Hits 20186 13313 -6873
+ Misses 25424 23665 -1759
+ Partials 2203 1079 -1124 ☔ View full report in Codecov by Sentry. |
3654abf
to
d8699bb
Compare
@rodneyosodo Please address comments from @SammyOina and @arvindh123. |
Signed-off-by: Rodney Osodo <[email protected]>
…nt purposes for policy enforcement Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
…ests Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
} | ||
|
||
var err error | ||
for i := range c.urls { |
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.
Add an explanation comment here.
What type of PR is this?
This is a feature pull request that introduces external authorization callouts to the Auth service. It adds new configuration options, a callback mechanism, and integrates it into the authorization flow. The changes include modifications to the service logic, configuration, and testing infrastructure.
What does this do?
Which issue(s) does this PR fix/relate to?
Have you included tests for your changes?
Yes, I have included tests for my changes.
Did you document any new/modified feature?
Yes, I have updated the documentation for the new feature.
Notes