Skip to content

Conversation

@brankomijuskovic
Copy link

Description

Fixes: #430

How Has This Been Tested?

Tested on several Dell and SuperMicro servers. Tested both global and per resource proxy.

How are existing users impacted? What migration steps/scripts do we need?

N/A

Checklist:

I have:

  • updated the documentation and/or roadmap (if required)
  • provided instructions on how to upgrade

@brankomijuskovic brankomijuskovic force-pushed the rufio-proxy branch 3 times, most recently from 81ec534 to d4bbe6a Compare November 5, 2025 19:46
Signed-off-by: branko.mijuskovic <brankomijuskovic@gmail.com>
@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

❌ Patch coverage is 12.90323% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.72%. Comparing base (4fdabbe) to head (5cfb609).

Files with missing lines Patch % Lines
rufio/internal/controller/client.go 8.69% 19 Missing and 2 partials ⚠️
rufio/rufio.go 0.00% 4 Missing ⚠️
rufio/internal/controller/controller.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #431      +/-   ##
==========================================
- Coverage   52.89%   52.72%   -0.17%     
==========================================
  Files         107      107              
  Lines        7177     7202      +25     
==========================================
+ Hits         3796     3797       +1     
- Misses       3095     3116      +21     
- Partials      286      289       +3     

☔ 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.

Copy link
Member

@jacobweinstock jacobweinstock left a comment

Choose a reason for hiding this comment

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

Hey @brankomijuskovic. Thanks for this PR!

@brankomijuskovic
Copy link
Author

Hey @jacobweinstock , thank you for the review.

Hopefully it's a bit better now.

Cheers

Signed-off-by: branko.mijuskovic <brankomijuskovic@gmail.com>
}
if proxyURL != "" {
httpClient := createHTTPClientWithProxy(proxyURL, b.InsecureTLS, timeout)
o = append(o, bmclib.WithRedfishHTTPClient(httpClient), bmclib.WithHTTPClient(httpClient))
Copy link
Member

Choose a reason for hiding this comment

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

when bmclib.WithHTTPClient(httpClient) is provided, bmclib.WithRedfishHTTPClient(httpClient) shouldn't be needed. Unless you've seen different behavior in your testing?

}

// Cookie jar with public suffix list, similar to bmclib's Build function
jar, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})
Copy link
Member

Choose a reason for hiding this comment

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

mind adding a comment there that cookiejar.New always returns a nil error, so it's safe to ignore it?

Copy link
Member

@jacobweinstock jacobweinstock left a comment

Choose a reason for hiding this comment

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

last couple requests. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add HTTP proxy support for BMCs (RedFish)

2 participants