Skip to content
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

*: not https warning to show only on http #3124

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

KaloyanTanev
Copy link
Contributor

A warning log was output in the case "https" is missing as a scheme. This triggered anytime it was not https, even if the scheme was empty.

Linter complained for repeated "http", so I've moved it to const alongside "https".

category: misc
ticket: none

@KaloyanTanev KaloyanTanev self-assigned this Jun 6, 2024
Copy link

sonarcloud bot commented Jun 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@@ -1089,7 +1089,7 @@ func validateKeymanagerFlags(ctx context.Context, addr, authToken string) error
return errors.Wrap(err, "failed to parse keymanager addr", z.Str("addr", addr))
}

if keymanagerURL.Scheme != "https" {
if keymanagerURL.Scheme == "http" {
Copy link
Contributor

@pinebit pinebit Jun 6, 2024

Choose a reason for hiding this comment

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

can Scheme be empty string? and what protocol will be running if it's empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that is the case if you don't specify key manager.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If it's empty it would mean there is no external key manager, so it won't use it at all.

Copy link

codecov bot commented Jun 6, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 56.74%. Comparing base (ed1d55a) to head (0f0833a).
Report is 3 commits behind head on main.

Files Patch % Lines
cmd/run.go 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3124      +/-   ##
==========================================
- Coverage   56.77%   56.74%   -0.03%     
==========================================
  Files         208      208              
  Lines       29305    29305              
==========================================
- Hits        16637    16630       -7     
- Misses      10831    10835       +4     
- Partials     1837     1840       +3     

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

@KaloyanTanev KaloyanTanev added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jun 11, 2024
@obol-bulldozer obol-bulldozer bot merged commit 603b8a0 into main Jun 11, 2024
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the kalo/fix-https-warning branch June 11, 2024 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants