Skip to content

Automatic stop of support.service unit#1100

Open
DavidePrincipi wants to merge 4 commits intomainfrom
feat-7900
Open

Automatic stop of support.service unit#1100
DavidePrincipi wants to merge 4 commits intomainfrom
feat-7900

Conversation

@DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Mar 2, 2026

Updates the remote support service to enforce a shorter, time-bounded access window by expiring the injected SSH key and scheduling an automatic stop of the support systemd unit.

Changes:

  • Change support SSH authorized key expiry-time to 24 hours (UTC, with time-of-day precision).
  • Add a transient systemd timer that stops support.service after 24 hours; stop that timer when the service stops.
  • Add RuntimeMaxSec=30d to the support unit as hard limit, if the timer is stopped manually.

Context:

image

Refs NethServer/dev#7900

Narrow the validity period from 1 month to 24 hours.
- Automatically stop the support.service unit 24 hours after support
  begins.
- The auxiliary unit support-expire.timer can be stopped manually, to
  extend the support session duration as wanted.
- In any case support.service will die after 30 days.

This comment was marked as duplicate.

@DavidePrincipi DavidePrincipi marked this pull request as ready for review March 2, 2026 16:23
@DavidePrincipi DavidePrincipi changed the title Feat 7900 Automatic stop of support.service unit Mar 2, 2026
github-actions bot pushed a commit that referenced this pull request Mar 2, 2026
github-actions bot pushed a commit that referenced this pull request Mar 2, 2026
Return the session expiry timestamp in ISO 8601 format. Standard session
duration is 24 hours, but it can be extended up to 30 days.
github-actions bot pushed a commit that referenced this pull request Mar 2, 2026
github-actions bot pushed a commit that referenced this pull request Mar 3, 2026
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