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

core: checking keymanager address #2795

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

pinebit
Copy link
Contributor

@pinebit pinebit commented Jan 17, 2024

Checking keymanager address.

category: misc
ticket: none

Copy link

sonarcloud bot commented Jan 17, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

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

See analysis details on SonarCloud

Copy link

codecov bot commented Jan 17, 2024

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (dcaaa2b) 53.26% compared to head (2a8ff95) 53.25%.

Files Patch % Lines
cmd/createcluster.go 70.00% 2 Missing and 1 partial ⚠️
dkg/dkg.go 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2795      +/-   ##
==========================================
- Coverage   53.26%   53.25%   -0.01%     
==========================================
  Files         199      199              
  Lines       27603    27616      +13     
==========================================
+ Hits        14703    14708       +5     
- Misses      11079    11084       +5     
- Partials     1821     1824       +3     

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

if addr != "" && authToken == "" {
return errors.New("--keymanager-address provided but --keymanager-auth-token absent. Please fix configuration flags")
}
if addr == "" && authToken != "" {
return errors.New("--keymanager-auth-token provided but --keymanager-address absent. Please fix configuration flags")
}

keymanagerURL, err := url.Parse(addr)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we use url.ParseRequestURI instead? So we're 100% sure addr is a HTTP, absolute URI.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pinebit pinebit added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jan 17, 2024
@obol-bulldozer obol-bulldozer bot merged commit d2748d5 into main Jan 17, 2024
14 checks passed
@obol-bulldozer obol-bulldozer bot deleted the pinebit/keymanager-addr-checks branch January 17, 2024 14:22
gsora pushed a commit that referenced this pull request Jan 24, 2024
Checking keymanager address.

category: misc
ticket: none
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 qs-audit v0.19.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants