-
Notifications
You must be signed in to change notification settings - Fork 2
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
Adapt httpboot plugin to respond with client specific UKIs #155
Conversation
59e73e4
to
4a17029
Compare
cd5212d
to
18d9db2
Compare
cc718f2
to
38795c9
Compare
plugins/httpboot/plugin.go
Outdated
ukiURL, err = fetchUKIURL(bootFile6, clientIPs) | ||
if err != nil { | ||
log.Errorf("failed to fetch UKI URL: %v", err) | ||
return resp, true |
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.
Same
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.
Done
plugins/httpboot/plugin.go
Outdated
clientIPs, err := extractClientIP6(req) | ||
if err != nil { | ||
log.Errorf("failed to extract ClientIP, Error: %v Request: %v ", err, req) | ||
return resp, true |
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.
Change to false, so if your plugin fails for whatever reason, the plugin chain will not break (meaning: the next plugin in the configuration will get executed)
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.
Thanks, I fixed it.
38795c9
to
f339343
Compare
Proposed Changes
Fixes #