CONSOLE-2892: Allow dynamic plugins to proxy to services on the cluster#603
Conversation
| Namespace: service.Namespace, | ||
| Endpoint: getProxyServiceHostname(&service), | ||
| CACertificate: service.CACertificate, | ||
| Authorize: service.Authorize, |
There was a problem hiding this comment.
Wondering if this is necessary and we shouldn't always proxy the Authorization header
There was a problem hiding this comment.
We don't want to pass the user's token around unless the service really needs it. Even if we trust the service, it's an exposure. The token could get accidentally logged, etc. It's much better to only add the Authorization header when we know we have to.
|
/retest |
|
PR is ready for final review. QE Approver: Docs Approver: PX Approver: Console Approver: |
|
/retest |
|
/label px-approved |
|
/label docs-approved |
spadgett
left a comment
There was a problem hiding this comment.
Looks good to me, just one nit on a function name
| return fmt.Sprintf("%snamespace/%s/service/%s/", pluginProxyEndpoint, service.Namespace, fmt.Sprintf("%s:%d", service.Name, service.Port)) | ||
| } | ||
|
|
||
| func getProxyServiceHostname(service *v1alpha1.ConsolePluginProxyService) string { |
There was a problem hiding this comment.
This is returning a URL, not a hostname.
|
verified the changes locally and works |
|
@spadgett comments addressed in a new commit. PTAL |
|
/retest |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
We need to get openshift/client-go#199 in and update the go deps. accordingly. |
|
GO deps have been updated. @spadgett please could you retag the PR. Thank you /hold cancel |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jhadvig, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
14 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
@jhadvig: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
5 similar comments
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
|
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Console changes for story https://issues.redhat.com/browse/CONSOLE-2892
Console-operator will now check for
spec.proxy.servicesof the enabled ConsolePlugins and manifest those services to theconsole-config.yamlConfigMap, which will trigger redeploy the console pod to pick up the updateseg:
in the console browser window following query should be able to proxy the request to thanos and return 200:
/assign @spadgett @TheRealJon @florkbr