Repository navigation
feat: ally forward and ally ports - #140
Merged
Merged
Conversation
ally ports lists everything listening on the Agent, not only Ally's work. Each port now says whether an Ally job, Docker, another program on the account, or another account opened it. run and attach still forward only Ally's jobs and Docker. Raises the control protocol to 16.
Automatic forwarding ends with run or attach, so a server left running in a session, or one Ally did not start, had no way to open on the Client. ally forward holds one forward on its own ssh connection, since the shared one closes 30 seconds after its last command. It takes the same claim as run and attach, and each claim now records its local port so another command can say where a port opens.
There was no way to see which servers run on the Agent or where they open on the Client. ally ports lists every listening port with its program, who opened it, the project, and the local address when an Ally command forwards it, read from the port claims.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Step 4 of #9.
ally forward <port>opens any Agent port atlocalhostuntil Ctrl C, for a server left running after a session or one Ally did not start.ally portslists every port listening on the Agent: program, who opened it (Ally job, Docker, outside Ally, other account), project, and where it opens here. Open forwards are green, the rest dimmed.Tested on archbox over the local network. Tailnet, iroh, a running Docker container, and a macOS Agent not tested.