Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
134484: roachprod: `GetUserAuthorizedKeys` should skip invalid ssh keys r=DarrylWong,herkolategan a=srosenberg Previously, `GetUserAuthorizedKeys` would return an error upon encountering an invalid ssh key. Since ssh keys can be uploaded out of band, it's conceivable that we may end up with invalid ssh keys. Thus, failing an entire operation due to a single invalid ssh key may not be desired. Since new cluster creation depends on it (transitively via `SetupSSH`), skipping over invalid keys means we can complete cluster creation and resolve the key issue later. Consequently, we change the key parsing behavior s.t. `GetUserAuthorizedKeys` doesn't fail upon encountering invalid key entries. Only IO error(s) now result in failure. Resolves: #138274 Epic: none Release note: None Co-authored-by: Stan Rosenberg <[email protected]>
- Loading branch information