-
Notifications
You must be signed in to change notification settings - Fork 78
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
make compose tunnel agent tunnel private #141
make compose tunnel agent tunnel private #141
Conversation
was returning a positive response (accept) before closing the ClientForward, which caused duplicate key errors when changing a tunnel access
separate hooks for env creation and filtering URLs
b5060d6
to
fc3f335
Compare
fc3f335
to
47d4f6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good overall :)
Added a small note in regard to design
retryOpts = { retries: 0 }, | ||
tunnelUrlsForService, | ||
credentials, | ||
includeAccessCredentials, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, the credentials and includeAccessCredentials are external to queryTunnels to remove dependencies and give more flexibility to the calling client. (in this case, the calling can't separate the credentials from the urls)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it can be spitted to two methods, and used in the command (injectCredentials(queryTunnels)
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically, the credentials and includeAccessCredentials are external to queryTunnels to remove dependencies and give more flexibility to the calling client. (in this case, the calling can't separate the credentials from the urls)
credentials are now needed to query the tunnels (because the compose tunnel agent is private)
extracting includeAccessCredentials
is still possible but not worth it IMO.
also contains:
projectName
out ofqueryTunnels
so theurls
command would not need a compose file