-
Notifications
You must be signed in to change notification settings - Fork 84
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
Conversation
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 2 New issues |
Codecov ReportAttention:
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. |
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) |
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.
Should we use url.ParseRequestURI
instead? So we're 100% sure addr
is a HTTP, absolute URI.
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.
Checking keymanager address. category: misc ticket: none
Checking keymanager address.
category: misc
ticket: none