-
Notifications
You must be signed in to change notification settings - Fork 77
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
Implemented ssh configurations #32
Implemented ssh configurations #32
Conversation
@ycoheNvidia please handle conflicts |
resolved |
@ycoheNvidia could you please rerun checkers and follow up on failures? |
fixed |
@dgsudharsan @qiluo-msft any further comments on this PR or can it be merged? |
@liat-grozovik , There is still one comment pending. I don't want run_cmd to be replaced with os.system since its a security vulnerability. |
Replaced all ssh related os.cmd calls with modify_single_file_inplace and fixed it on the way
73a2fff
to
200bf27
Compare
Comment was addressed. Thanks! |
@qiluo-msft please add your comments/approval |
Could you add HLD PR to this PR's description? In reply to: 1596617344 |
@ycoheNvidia , in the PR description this PR depends on another PR merge first: sonic-net/sonic-buildimage#13319 #closed |
Updated the description - link was updated to sonic-net/sonic-buildimage#13338 |
done |
Could you merge the latest master code? Semgrep check is recently added into master, and this PR did not trigger it. |
Done |
@liuh-80 @qiluo-msft all comments addressed, please take another look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please check with other active reviewers.
Why I did it
Implemented ssh configurations
How I did it
Added ssh config table in configDB, once changed - hostcfgd will change the relevant OS files (sshd_config)
How to verify it
Tests in added in this PR. User can change relevant configs in configDB such as ports, and see sshd port was modified
Description for the changelog
Added ssh config infrastructure
Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.
Which release branch to backport (provide reason below if selected)
Link to config_db schema for YANG module changes
https://github.com/ycoheNvidia/SONiC/blob/ssh_config/doc/ssh_config/ssh_config.md
A picture of a cute animal (not mandatory but encouraged)
HLD in sonic-net/SONiC#1075
This PR is related to sonic-net/sonic-buildimage#13338