Skip to content

chore: run UI client without telepresence #3506

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

olevski
Copy link
Member

@olevski olevski commented Jan 24, 2025

All you need to do is RENKU_BASE_URL=https://dev.renku.ch npm run start and the ui will talk to the backend from that deployment.

Note that the session cookies issued by the gateway are tied to the host or something like that. So when you run on localhost you cannot actually log in. But we can add (or there already is) a setting on the gateway that will make it issue weaker cookies in dev. Then one can just run /deploy values=gateway.weakCookies=true in a PR and point your local ui client at that deployment and everything should work. Will do just a bit more testing to see that that is the case.

But I can already look at the renku home page and even complete the login flow wihtout doing anything on the gateway. But for now the session cookie is not there.

This allows the ui client to run locally and target any other Renku
deployment as long as the gateway cookie settings on the target
deployment are loose enough. But we can make it so that on CI
deployments this is the case.
@olevski olevski requested a review from a team as a code owner January 24, 2025 16:50
@olevski olevski temporarily deployed to renku-ci-ui-3506 January 24, 2025 16:50 — with GitHub Actions Inactive
@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-ui-3506.dev.renku.ch

@olevski olevski marked this pull request as draft January 27, 2025 00:27
@leafty leafty self-assigned this Jan 27, 2025
@leafty
Copy link
Member

leafty commented Jan 27, 2025

@olevski I will have a look 👀 .

@olevski
Copy link
Member Author

olevski commented Jan 27, 2025

@leafty this is still wip

@olevski olevski changed the title chroe: run UI client without telepresence chore: run UI client without telepresence Jan 27, 2025
@olevski olevski temporarily deployed to renku-ci-ui-3506 January 27, 2025 09:36 — with GitHub Actions Inactive
@leafty
Copy link
Member

leafty commented Jan 27, 2025

OK, I am not sure how this can work without being limited by CORS, Secure Context, secure cookies, etc.

@olevski
Copy link
Member Author

olevski commented Jan 27, 2025

OK, I am not sure how this can work without being limited by CORS, Secure Context, secure cookies, etc.

Yeah that is what I am trying to figure out rn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants