Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Conversation

kylecarbs
Copy link
Member

[ch15898]

@kylecarbs kylecarbs requested a review from jawnsy August 9, 2021 04:22
@shortcut-integration
Copy link

This pull request has been linked to Clubhouse Story #15898: Add flag to disable SSH connection caching in Coder CLI.

Copy link
Contributor

@jawnsy jawnsy left a comment

Choose a reason for hiding this comment

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

LGTM!

@kylecarbs kylecarbs changed the title feat: Add option to disable SSH connection cache feat: Enable arbitrary SSH options passed via config-ssh Aug 9, 2021
@kylecarbs kylecarbs requested a review from jawnsy August 9, 2021 04:44
@kylecarbs
Copy link
Member Author

@jawnsy I tagged you again since the scope changed up quite a bit!

Copy link
Contributor

@jawnsy jawnsy left a comment

Choose a reason for hiding this comment

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

I guess this means that someone might have:

ControlPath none
ControlPath auto

... or similar, and SSH takes the option that comes first? It seems a little confusing to me but if it functionally works then it seems good

@kylecarbs
Copy link
Member Author

Definitely a bit confusing... I'll add comment that gets appended after custom options explaining the functionality!

@kylecarbs
Copy link
Member Author

Check it out whenever you get a shot... I think it's good now!

@kylecarbs kylecarbs requested a review from jawnsy August 9, 2021 06:16
options := []string{}
if len(additionalOptions) > 0 {
options = []string{
"# Custom options. Duplicated values will always prefer the first!",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better if we kept a map[string]string of the name/value pairs, and then override them based on key... but ssh might have some peculiarities with the config format, like being case-insensitive

I think this is an improvement over the status quo so definitely think this is good now, we can always revisit later if we get customer feedback that this is confusing :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I did this in an iteration, but didn't want the jank of splitting on " " or "="... I wasn't sure if there were additional edge-cases, and didn't wanna risk it!

That's definitely a cleaner approach though, so someday 🙏

@kylecarbs kylecarbs merged commit 3af8385 into master Aug 9, 2021
@kylecarbs kylecarbs deleted the nocache branch August 9, 2021 16:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy