Skip to content

BRE2-987: Use SSH Access instead of Public DNS for 'brev shell'#424

Merged
drewmalin merged 3 commits into
mainfrom
dm/sshaccess
Jul 22, 2026
Merged

BRE2-987: Use SSH Access instead of Public DNS for 'brev shell'#424
drewmalin merged 3 commits into
mainfrom
dm/sshaccess

Conversation

@drewmalin

Copy link
Copy Markdown
Contributor

Right now we use the public dns/hostname for ssh config entries. This is almost correct, but it bypasses the more granular ssh_access entries that can be used to directly identify linux username, skybridge FQDN, and port number.

This change attempts to use those entries when refreshing ssh configs, falling back to the public dns/host information for container-mode host, but also in the event of missing network info.

@drewmalin
drewmalin requested a review from a team as a code owner July 22, 2026 19:42
Comment on lines 174 to 190
@@ -186,7 +183,6 @@ func getExternalNodeSSHEntries(store RefreshStore) []ssh.ExternalNodeSSHEntry {
OrganizationId: org.ID,
}))
if err != nil {
log.Printf("external nodes: skipping (list failed): %v", err)
return nil

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

These logs are very noisy and do not actually signal anything useful to the user.

Comment thread pkg/cmd/shell/shell.go
Comment on lines 115 to +137
@@ -132,6 +134,7 @@ func runShellCommand(t *terminal.Terminal, sstore ShellStore, workspaceNameOrID
if err != nil {
return breverrors.WrapAndTrace(err)
}
printResolvedSSHTarget(sshName)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is intentional as it is typically confusing as to how the CLI is attempting to connect to the environment.

@drewmalin drewmalin changed the title fix: Use SSH Access instead of Public DNS for 'brev shell' BRE2-987: Use SSH Access instead of Public DNS for 'brev shell' Jul 22, 2026
@drewmalin
drewmalin merged commit a00424e into main Jul 22, 2026
9 checks passed
@drewmalin
drewmalin deleted the dm/sshaccess branch July 22, 2026 21: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