Skip to content

Conversation

@LunfanZhang
Copy link
Collaborator

@LunfanZhang LunfanZhang commented Apr 11, 2025

  • Ensure host.ssh_enabled reflects the actual SSH service state on startup, in case it was manually changed by the user.

  • Reschedule the "disable SSH" job if:

    • host.ssh_enabled_timeout is set to a positive value, and
    • host.ssh_expiry is in the future.

@LunfanZhang LunfanZhang force-pushed the private/luzhan/CP-54138 branch from 52e4f7d to ae8bd5f Compare April 11, 2025 09:42
@LunfanZhang LunfanZhang force-pushed the private/luzhan/CP-54138 branch from ae8bd5f to b0afc92 Compare April 14, 2025 05:51
@LunfanZhang LunfanZhang requested review from gangj and robhoes April 14, 2025 06:33
Copy link
Contributor

@gangj gangj left a comment

Choose a reason for hiding this comment

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

Never leave ssh enabled unexpectedly.

 - Ensure host.enabled_ssh reflects the actual SSH service state on startup, in case it was manually changed by the user.

 - Reschedule the "disable SSH" job if:
   - host.ssh_enabled_timeout is set to a positive value, and
   - host.ssh_expiry is in the future.

 - Disable the SSH if:
   - host.ssh_enabled_timeout is set to a positive value, and
   - host.ssh_expiry is in the past.

Signed-off-by: Lunfan Zhang <[email protected]>
@LunfanZhang LunfanZhang force-pushed the private/luzhan/CP-54138 branch from b0afc92 to d077e3c Compare April 14, 2025 08:26
@LunfanZhang LunfanZhang requested a review from gangj April 14, 2025 08:37
@gangj gangj merged commit 34b308c into xapi-project:feature/configure-ssh-phase2 Apr 17, 2025
17 checks passed
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.

3 participants