Might be missing something here from the documentation / terraform provider, but when connecting through to targets with CORS the randomly assigned port given causes some issues.
Is there a way we can set a port for a target to a constant? If not connecting to APIs with CORS is going to be a little difficult for software that doesn’t support using patterns for CORS.
Thanks for trying out Boundary Ben. Can you give us some details about what you’re trying to accomplish here? Examples and errors from the command line would be super useful.
Cheers
Jeff
boundary connect
(without a helper overlay) supports the -listen-port
flag that lets you specify a port. E.g. in my current demo environment:
$ boundary connect -target-id ttcp_YpA0cAzr0x
Proxy listening information:
Address: 127.0.0.1
Connection Limit: -1
Expiration: Sat, 19 Jun 2021 00:52:55 EDT
Port: 41759
Protocol: tcp
Session ID: s_LfBAx3gE1u
But with -listen-port:
$ boundary connect -target-id ttcp_YpA0cAzr0x -listen-port 31022
Proxy listening information:
Address: 127.0.0.1
Connection Limit: -1
Expiration: Sat, 19 Jun 2021 00:53:54 EDT
Port: 31022
Protocol: tcp
Session ID: s_qHD9Q8M2Hw