You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using boundary connect with the -host-id flag in order to connect to a specific host using its h_ prefixed ID, it fails with the following error:
Error information:
Kind: InvalidArgument
Message: Errors in provided fields.
Status: 400
context: Error from controller when performing authorize-session action against given target
Field-specific Errors:
Name: -host-id
Error: Incorrectly formatted identifier.
Trying the same with the (former?) hst_ prefixed ID, it passes validation but fails with another error:
Error information:
Kind: FailedPrecondition
Message: No workers are available to handle this session, or all have been filtered.
Status: 400
context: Error from controller when performing authorize-session action against given target
Omitting the -host-id flag makes boundary connect work as expected.
To Reproduce
Steps to reproduce the behavior:
Create whatever resources it takes to have a SSHable host in Boundary
Fetch the host ID using boundary host-sets read -id hs_<host_set_id>
Run boundary connect ssh -target-id ttcp_<target_id> -host-id h_<host_id>
See error
Expected behavior boundary connect ssh -target-id ttcp_<target_id> -host-id h_<host_id> should connect to the specified host
Additional context
Boundary version - 0.7.4
Connecting through Boundary Desktop (1.4.1) fails as well with a less verbose error:
Errors in provided fields.
Would you like to retry?
The text was updated successfully, but these errors were encountered:
The targets controller previously only allowed hosts from a static catalog
since it checked for the ID subtype from the static package.
This change validates host ids with the plugin.Subtype as well
Fixes: hashicorp#1850
* fix(controller/targets): authorize-session should allow h_ ids
The targets controller previously only allowed hosts from a static catalog
since it checked for the ID subtype from the static package.
This change validates host ids with the plugin.Subtype as well
Fixes: #1850
* test: cover authorize-session with host id
Add a regression test to cover the case where an explicit host ID was
given when calling AuthorizeSession
Describe the bug
When using
boundary connect
with the-host-id
flag in order to connect to a specific host using itsh_
prefixed ID, it fails with the following error:Trying the same with the (former?)
hst_
prefixed ID, it passes validation but fails with another error:Omitting the
-host-id
flag makesboundary connect
work as expected.To Reproduce
Steps to reproduce the behavior:
boundary host-sets read -id hs_<host_set_id>
boundary connect ssh -target-id ttcp_<target_id> -host-id h_<host_id>
Expected behavior
boundary connect ssh -target-id ttcp_<target_id> -host-id h_<host_id>
should connect to the specified hostAdditional context
Boundary version - 0.7.4
Connecting through Boundary Desktop (1.4.1) fails as well with a less verbose error:
The text was updated successfully, but these errors were encountered: