Skip to content
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

UI: allow all URL schemas for custom console URLs (backport #1059) #1074

Merged

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jul 18, 2024

Allow all URL schemas for custom console URLs. This change removes a check that enforces the 'Console' button of a Harvester node to only redirect to URLs starting with http:// or https://. Otherwise it will prepend http:// to the configured URL. This breaks non-HTTP URL schemas like vnc:// or rtsx://, which are sometimes used to launch custom VNC viewers instead of using the built-in one.

fixes: harvester/harvester#6042

Summary

PR Checklist

  • Is this a multi-tenancy feature/bug? No.
  • Do we need to backport changes to the old Rancher UI, such as RKE1? No.
  • Are backend engineers aware of UI changes? No backend change associated with this fix.

Related Issue #
harvester/harvester#6042

Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video


This is an automatic backport of pull request #1059 done by [Mergify](https://mergify.com).

Allow all URL schemas for custom console URLs. This change removes a
check that enforces the 'Console' button of a Harvester node to only
redirect to URLs starting with `http://` or `https://`. Otherwise it
will prepend `http://` to the configured URL. This breaks non-HTTP URL
schemas like `vnc://` or `rtsx://`, which are sometimes used to launch
custom VNC viewers instead of using the built-in one.

fixes: harvester/harvester#6042

Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
(cherry picked from commit 84e88c8)
Ensure the console URL is configured with a schema matching the regular
expression `^[a-z]+:\/\/`. Otherwise disable the console button.
This allows all sorts of URL schemas, even non-standard ones, but also
ensures that a sane URL is entered.

Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
(cherry picked from commit 5b89aca)
Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
(cherry picked from commit 0a9a892)
@a110605 a110605 merged commit be35dd7 into release-harvester-v1.4 Jul 19, 2024
5 checks passed
@mergify mergify bot deleted the mergify/bp/release-harvester-v1.4/pr-1059 branch July 19, 2024 05:59
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.

2 participants