Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: Do not try and write to malformed ssh configs #6000

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 3, 2023

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Feb 2, 2023

Inspired by: #5859

Abort writing the ssh config if it has:

  • Out of order coder headers
  • More than 1 of each coder header
  • Missing 1 or the other coder header

Passes all unit tests, I did some basic manual smoke testing. This works well, and aborts early if the ssh config is malformed.

Emyrk added 2 commits February 2, 2023 15:00
Abort writing the ssh config if it has:
- Out of order coder headers
- More than 1 of each coder header
- Missing 1 or the other coder header
@Emyrk Emyrk merged commit 2384e9c into main Feb 3, 2023
@Emyrk Emyrk deleted the stevenmasley/malformed_ssh_configs branch February 3, 2023 01:23
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2023
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