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

RDP connect helper outputs unexpected URL format for macOS 14.5 (Sonoma) #4902

Open
learhy opened this issue Jun 25, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@learhy
Copy link

learhy commented Jun 25, 2024

Describe the bug

In macOS Sonoma, the open command seems to require stricter URL handling. As a result, the following command no longer works:

open -W -a "/Applications/Microsoft Remote Desktop.app" -u 'rdp://full%20address=s:127.0.0.1:51246'

This command generates the following error:

Unable to interpret 'rdp://full%20address=s:127.0.0.1:51246' as a URL

Instead, you must use percent-encoding format (ie, %3A, which is the URL encoding for :)

open -W -a "/Applications/Microsoft Remote Desktop.app" -u 'rdp://full%20address=s%3A127.0.0.1%3A51647'

To Reproduce

Steps to reproduce the behavior:

  1. Open the Terminal application on a macOS Sonoma system.

  2. Execute the commands:

boundary connect -target-id <rdp-target-id>

open -W -a "/Applications/Microsoft Remote Desktop.app" -u 'rdp://full%20address=s:127.0.0.1:port-from-output-above'
  1. Observe the error message indicating that the URL could not be interpreted.

This obviously also impacts the rdp connect helper:

boundary connect rdp -target-id ttcp_CPHHKitqQk
Credentials:
  Credential Source ID:   credup_Vjy4uaxptZ
  Credential Source Name: aws-ec2-rdp-server
  Credential Store ID:    csst_GaJN5lkjnR
  Credential Store Type:  static
  Credential Type:        username_password
  Secret:
        password:   5XemW$*vpF&qC9!i)I-4*u5k2o(i8ueo
        username:   Administrator

Unable to interpret 'rdp://full%20address=s:127.0.0.1:52073' as a path or URL

Expected behavior

Since Boundary can't exactly control how Apple writes its software, I suggest the boundary connect rdp helper automatically format the correct connection URL as described above when running on affected versions of macOS.

(note-- i've only tested this on sonoma, could be problematic for earlier versions as well)

@learhy learhy added the bug Something isn't working label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant