- Notifications
You must be signed in to change notification settings - Fork905
Commitf6bf6c6
authored
fix!: use names not IDs for agent SSH key seed (#17258)
Changes the SSH host key seeding to use the owner username, workspace name, and agent name. This prevents SSH from complaining about a mismatched host key if you use Coder Desktop to connect, and delete and recreate your workspace with the same name. Previously this would generate a different key because the workspace ID changed.We also include the owner's username in anticipation of using Coder Desktop to access shared workspaces (or as a superuser) down the road, so that workspaces with the same name owned by different users will not have the same key.This change is **BREAKING** in a limited sense that early access users of Coder Desktop will see their SSH clients complain about host keys changing the first time each workspace is rebuilt with this code. It can be resolved by clearing your `.ssh/known_hosts` file of the Coder workspaces you access this way.1 parent3a0e8dd commitf6bf6c6
2 files changed
+28
-6
lines changedLines changed: 24 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1186 | 1186 |
| |
1187 | 1187 |
| |
1188 | 1188 |
| |
1189 |
| - | |
| 1189 | + | |
1190 | 1190 |
| |
1191 |
| - | |
| 1191 | + | |
1192 | 1192 |
| |
1193 | 1193 |
| |
1194 | 1194 |
| |
| |||
2068 | 2068 |
| |
2069 | 2069 |
| |
2070 | 2070 |
| |
2071 |
| - | |
| 2071 | + | |
2072 | 2072 |
| |
2073 | 2073 |
| |
2074 |
| - | |
| 2074 | + | |
| 2075 | + | |
| 2076 | + | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
2075 | 2081 |
| |
2076 |
| - | |
| 2082 | + | |
| 2083 | + | |
| 2084 | + | |
| 2085 | + | |
| 2086 | + | |
| 2087 | + | |
| 2088 | + | |
| 2089 | + | |
| 2090 | + | |
| 2091 | + | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
2077 | 2096 |
| |
2078 | 2097 |
| |
2079 | 2098 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
| 482 | + | |
| 483 | + | |
| 484 | + | |
482 | 485 |
| |
483 | 486 |
| |
484 | 487 |
| |
| |||
490 | 493 |
| |
491 | 494 |
| |
492 | 495 |
| |
493 |
| - | |
| 496 | + | |
494 | 497 |
| |
495 | 498 |
| |
496 | 499 |
| |
|
0 commit comments
Comments
(0)