-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-29363][runtime-web] allow fully redirection in web dashboard #20875
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
Conversation
| (res.status == HttpStatusCode.MovedPermanently || | ||
| res.status == HttpStatusCode.TemporaryRedirect || | ||
| res.status == HttpStatusCode.SeeOther) && |
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.
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.
The code path is mainly to fetching job metadata. Multiple Choices, Use Proxy, Unused are not fit for the scenarios or data type. But I am open to add more status code to make it more robust.
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.
Starting an image build and then coming back here w/ an in-depth consideration from my side...
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.
|
I've started to build an image to test the feature end-t-end. Let's see how it goes... |
|
@flinkbot run azure |
|
I presume a rebase to the latest master is needed since second time the following error arrived: |
|
Yes, this issue with @gaborgsomogyi thanks a lot for the review. Lmk once you've approved the PR, I'll then take a look and merge it. |
|
@rmetzger thanks for the help in advance! |
|
Let's say proxy server is served in domain A. If the token/cookie times out, requests need to be redirected to domain B. In this case, Users need to configure CSP and CORS as below for security considerations. Content-Security-Policy: sandbox, allow-form, allow-scripts, allow-same-origin CSP guarantee the app runs in an isolated environment and also make sure cookies are attached to request to the allowed domain. Putting B in the Access-Control-Allow-Origin will make the redirection work, otherwise the redirection will be blocked by browser due to the cross origin access. |
|
If I understand it correctly then the proxy would add CORS, right? If we can test it in a real environment then I'm fine w/ the actual code. |
|
I've tested it manually on live cluster and it works. |
gaborgsomogyi
left a comment
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.
LGTM. Only green unit tests needed.
|
Thanks for manually testing it. |
|
A rebase would be nice just to make sure there haven't been major changes on the UI side since September. |
4a8f9f9 to
13d3480
Compare
|
@rmetzger now it's all green and good to go :) |
|
Hi all, what's the current status of this PR? Looks like it's ready to be merged, but hasn't been merged |
|
You see it well... |
|
Merging change ... |


What is the purpose of the change
Remove operator related configs from flink runtime config, so that users will not see any operator related config in web ui.
Brief change log
Verifying this change
This change is a trivial rework / code cleanup with unit test coverage.
Does this pull request potentially affect one of the following parts:
CustomResourceDescriptors: (no)Documentation