Skip to content
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

refactor: Separate CSP-specific functionality from generic SSH code #122

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

nbrahms
Copy link
Contributor

@nbrahms nbrahms commented Oct 1, 2024

For maintainability, anything CSP-specific for SSH should be contained within the CSP's SSH provider object.

I also sorted the provider properties.

For maintainability, anything CSP-specific for SSH should be contained
within the CSP's SSH provider object.
@nbrahms nbrahms requested a review from gergas3 October 1, 2024 21:06
{ pattern: /Permission denied \(publickey\)/ },
{
// The output of `sudo -v` when the user is not allowed to run sudo
pattern: /Sorry, user .+ may not run sudo on .+/,
Copy link
Contributor

Choose a reason for hiding this comment

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

Useful to keep the existing constants I think, as they may be used elsewhere. I am making a change which relies on this string for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's introduce that in the PR that actually reuses it?

@nbrahms nbrahms merged commit 3eff3a9 into main Oct 1, 2024
3 checks passed
@nbrahms nbrahms deleted the nathan/csp-separation branch October 1, 2024 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants