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

Add proto definitions to support tunneled sandboxes #2169

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

pawalt
Copy link
Member

@pawalt pawalt commented Aug 29, 2024

Describe your changes

This commit adds proto definitions that allow sandboxes to be created with open ports specified. It also adds an RPC definition for getting the tunnels once established.

Backward/forward compatibility checks

Check these boxes or delete any item (or this section) if not relevant for this PR.

  • Client+Server: this change is compatible with old servers
  • Client forward compatibility: this change ensures client can accept data intended for later versions of itself

Note on protobuf: protobuf message changes in one place may have impact to
multiple entities (client, server, worker, database). See points above.


Changelog

@pawalt pawalt force-pushed the pawalt/sandbox_tunnels branch 4 times, most recently from 49f0594 to 6eb9902 Compare August 29, 2024 22:23
This commit adds proto definitions that allow sandboxes to be created
with open ports specified. It also adds an RPC definition for getting
the tunnels once established.
@pawalt
Copy link
Member Author

pawalt commented Aug 29, 2024

@prbot approve

Copy link

@modal-pr-review-automation modal-pr-review-automation bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved 👍. @thundergolfer will follow-up review this.

@pawalt
Copy link
Member Author

pawalt commented Aug 29, 2024

@prbot help a brother out

Copy link

@modal-pr-review-automation modal-pr-review-automation bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some required workflows are pending. Will automerge once they complete successfully. Please bear with us in this difficult time.

@modal-pr-review-automation modal-pr-review-automation bot merged commit 0c3fce9 into main Aug 29, 2024
22 checks passed
@modal-pr-review-automation modal-pr-review-automation bot deleted the pawalt/sandbox_tunnels branch August 29, 2024 22:40
}

message SandboxGetTunnelsResponse {
repeated TunnelData tunnels = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With this response how do you indicate "no tunnels, stop polling" vs "no tunnels yet"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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