Azure / az-hop

The Azure HPC On-Demand Platform provides an HPC Cluster Ready solution
https://azure.github.io/az-hop/
MIT License
65 stars 53 forks source link

Windows Remote Desktop not starting with user name containing a '.' #957

Closed xpillons closed 2 years ago

xpillons commented 2 years ago

Guac spooler is failing to retrieve the user password from keyvault when the username contains a '.' (dot)

2022-07-19 08:45:10,659 ERROR: (BadParameter) The request URI contains an invalid name: john.john-password Code: BadParameter Message: The request URI contains an invalid name: praveen.routhu-password Traceback (most recent call last):   File "/opt/cycle/guac/venv/lib/python3.6/site-packages/guac/spooler.py", line 107, in get_user_password     retrieved_secret = client.get_secret(f"{username}-password")   File "/opt/cycle/guac/venv/lib/python3.6/site-packages/azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer     return func(*args, kwargs)   File "/opt/cycle/guac/venv/lib/python3.6/site-packages/azure/keyvault/secrets/_client.py", line 73, in get_secret     kwargs   File "/opt/cycle/guac/venv/lib/python3.6/site-packages/azure/keyvault/secrets/_generated/_operations_mixin.py", line 1574, in get_secret     return mixin_instance.get_secret(vault_base_url, secret_name, secret_version, *kwargs)   File "/opt/cycle/guac/venv/lib/python3.6/site-packages/azure/core/tracing/decorator.py", line 78, in wrapper_use_tracer     return func(args, **kwargs)   File "/opt/cycle/guac/venv/lib/python3.6/site-packages/azure/keyvault/secrets/_generated/v7_3/operations/_key_vault_client_operations.py", line 704, in get_secret     raise HttpResponseError(response=response, model=error) azure.core.exceptions.HttpResponseError: (BadParameter) The request URI contains an invalid name: john.john-password Code: BadParameter Message: The request URI contains an invalid name: john.john-password

xpillons commented 2 years ago

https://github.com/xpillons/azhop-guac/issues/10