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

make compose tunnel agent tunnel private #141

Merged
merged 5 commits into from
Jul 24, 2023

Conversation

royra
Copy link
Collaborator

@royra royra commented Jul 24, 2023

also contains:

  • refactor projectName out of queryTunnels so the urls command would not need a compose file
  • fix for bug in tunnel server manifesting when upgrading the compose tunnel agent tunnel access

Roy Razon added 3 commits July 24, 2023 18:39
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
@royra royra force-pushed the private-compose-tunnel-agent-service branch 4 times, most recently from b5060d6 to fc3f335 Compare July 24, 2023 16:07
@royra royra force-pushed the private-compose-tunnel-agent-service branch from fc3f335 to 47d4f6e Compare July 24, 2023 16:09
Copy link
Contributor

@Yshayy Yshayy left a 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,
Copy link
Contributor

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)

Copy link
Contributor

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))

Copy link
Collaborator Author

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.

@royra royra merged commit 2e2aaaa into livecycle:main Jul 24, 2023
4 checks passed
@royra royra deleted the private-compose-tunnel-agent-service branch July 24, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants