Skip to content

SMQ-2804 - Move Callouts from Auth Service to pkg/authz #2823

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nyagamunene
Copy link
Contributor

@nyagamunene nyagamunene commented Apr 15, 2025

What type of PR is this?

This is a refactor because it changes the following functionality:

  • It moves callback from auth service to pkg/authz

What does this do?

  • It moves callback from auth service to pkg/authz.
  • It includes the callback env variables in main files.

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Yes

Did you document any new/modified feature?

No

Notes

Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 27.56%. Comparing base (62f4599) to head (b3f4a34).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2823      +/-   ##
==========================================
+ Coverage   27.52%   27.56%   +0.03%     
==========================================
  Files         351      214     -137     
  Lines       55423    44561   -10862     
==========================================
- Hits        15257    12283    -2974     
+ Misses      39415    31686    -7729     
+ Partials      751      592     -159     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
@nyagamunene nyagamunene marked this pull request as ready for review April 15, 2025 12:04
@nyagamunene nyagamunene requested a review from a team as a code owner April 15, 2025 12:04
@@ -125,3 +124,37 @@ func (c *callback) makeRequest(ctx context.Context, urlStr string, params map[st

return nil
}

func LoadCerts(authCalloutTLSVerification bool, authCalloutCert, authCalloutKey, authCalloutCACert string, authCalloutTimeout time.Duration) (*http.Client, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We can have name like NewCalloutClient

@nyagamunene nyagamunene self-assigned this Apr 16, 2025
Signed-off-by: nyagamunene <stevenyaga2014@gmail.com>
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.

Feature: Move Callouts from Auth Service to pkg/authz
2 participants