- Notifications
You must be signed in to change notification settings - Fork16
Commitaab5916
authored
impl: add the option to disable ssh wildcard configuration (#584)
* impl: add the option to disable ssh wildcard configurationIt will be used later by the Coder Settings view to allow usersto enable or disable SSH hostname wildcard configuration.* impl: expose ssh wildcard config in the Settings pageUpdated the UI component to allow configuration by the user* impl: take into account wildcard configurationwhen generating the ssh config for Coder Gateway.Up until now we just checked if the Coder deployment supportsthis feature, but now users have to option to continue touse expanded hostnames in the ssh config.* fix: force CLI manager to use user settingsCLIManager can be created with default settings (simplifies testing),among which the ssh wildcard config is enabled. But in reality theconfig can be disabled by the user.* impl: ability to start a recent workspace connection after ssh wildcard config was changedCurrently, if a user starts a connection with wildcard enabled and then later on it disablesthe wildcard config then the recent connections becomes unusable because the hostnames are invalid.The issue can reproduce the other way around as well (start with wildcard ssh config disabled,start an IDE and then later on enable wildcard config)This commit addresses the issue by resolving the hostname on demand when the user wants toopen the remote IDE from the recent connections panel.* chore: update README* chore: next version is 2.23.0* fix: don't show twice the connection to the same workspaceConnections started with two different hostnames (because of the ssh wildcard config)can be rendered twice in the Recent projects panel.With this commit we ignore the hostname and instead use the workspace name and deployment URL.1 parent9bff367 commitaab5916
File tree
13 files changed
+99
-30
lines changed- src
- main
- kotlin/com/coder/gateway
- cli
- models
- settings
- util
- views
- steps
- resources/messages
- test/kotlin/com/coder/gateway/cli
13 files changed
+99
-30
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 |
| |
8 | 12 |
| |
9 | 13 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
|
Lines changed: 18 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 |
| - | |
129 |
| - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
130 | 141 |
| |
131 | 142 |
| |
132 | 143 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 | 15 |
| |
17 | 16 |
| |
18 | 17 |
| |
| |||
129 | 128 |
| |
130 | 129 |
| |
131 | 130 |
| |
132 |
| - | |
| 131 | + | |
133 | 132 |
| |
134 | 133 |
| |
135 | 134 |
| |
| |||
373 | 372 |
| |
374 | 373 |
| |
375 | 374 |
| |
376 |
| - | |
| 375 | + | |
377 | 376 |
| |
378 | 377 |
| |
379 | 378 |
| |
| |||
622 | 621 |
| |
623 | 622 |
| |
624 | 623 |
| |
625 |
| - | |
| 624 | + | |
626 | 625 |
| |
627 | 626 |
| |
628 | 627 |
| |
| |||
638 | 637 |
| |
639 | 638 |
| |
640 | 639 |
| |
641 |
| - | |
| 640 | + | |
642 | 641 |
| |
643 | 642 |
| |
644 | 643 |
| |
|
Lines changed: 11 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 |
| - | |
| 85 | + | |
| 86 | + | |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
| |||
92 | 93 |
| |
93 | 94 |
| |
94 | 95 |
| |
95 |
| - | |
| 96 | + | |
| 97 | + | |
96 | 98 |
| |
97 | 99 |
| |
98 | 100 |
| |
| |||
101 | 103 |
| |
102 | 104 |
| |
103 | 105 |
| |
104 |
| - | |
| 106 | + | |
105 | 107 |
| |
106 | 108 |
| |
107 |
| - | |
| 109 | + | |
108 | 110 |
| |
109 | 111 |
| |
110 |
| - | |
| 112 | + | |
111 | 113 |
| |
112 | 114 |
| |
113 |
| - | |
| 115 | + | |
114 | 116 |
| |
115 | 117 |
| |
| 118 | + | |
| 119 | + | |
| 120 | + | |
116 | 121 |
| |
117 | 122 |
| |
118 | 123 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
| 21 | + | |
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
98 | 98 |
| |
99 | 99 |
| |
100 | 100 |
| |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
101 | 107 |
| |
102 | 108 |
| |
103 | 109 |
| |
| |||
199 | 205 |
| |
200 | 206 |
| |
201 | 207 |
| |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
202 | 214 |
| |
203 | 215 |
| |
204 | 216 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
17 | 33 |
| |
18 | 34 |
| |
19 | 35 |
| |
|
Lines changed: 20 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| 8 | + | |
8 | 9 |
| |
9 | 10 |
| |
10 | 11 |
| |
| |||
177 | 178 |
| |
178 | 179 |
| |
179 | 180 |
| |
| 181 | + | |
180 | 182 |
| |
181 | 183 |
| |
182 | 184 |
| |
| |||
250 | 252 |
| |
251 | 253 |
| |
252 | 254 |
| |
253 |
| - | |
254 |
| - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
255 | 258 |
| |
256 |
| - | |
| 259 | + | |
257 | 260 |
| |
258 | 261 |
| |
259 | 262 |
| |
| |||
272 | 275 |
| |
273 | 276 |
| |
274 | 277 |
| |
| 278 | + | |
| 279 | + | |
| 280 | + | |
275 | 281 |
| |
276 |
| - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
277 | 293 |
| |
278 | 294 |
| |
279 | 295 |
| |
|
0 commit comments
Comments
(0)