Skip to content

Commit

Permalink
Merge pull request #541 from SURFscz/new-retention-policy
Browse files Browse the repository at this point in the history
Improve suspension policy for testing
  • Loading branch information
oharsta authored Aug 29, 2024
2 parents 4a745e4 + f22bb27 commit 5af64f1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions environments/docker/group_vars/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,8 @@ sbs_ssid_identity_providers:

sbs_notifications_enabled: True
sbs_cron_hour_of_day: "4"

# Any last_login_date in the past triggers suspension notification
sbs_suspension_inactive_days: 0
# Second suspension cron will suspend notified users
sbs_suspension_reminder_days: -1
1 change: 1 addition & 0 deletions roles/docker_sbs/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ sbs_mock_scim_enabled: True

sbs_delete_orphaned: True
sbs_suspension_inactive_days: 365
sbs_suspension_reminder_days: 14
sbs_suspension_notify_admin: False

sbs_oidc_config_url: "http://localhost/.well-known/openid-configuration"
Expand Down
1 change: 1 addition & 0 deletions roles/sbs/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ sbs_mock_scim_enabled: False

sbs_delete_orphaned: True
sbs_suspension_inactive_days: 365
sbs_suspension_reminder_days: 14
sbs_suspension_notify_admin: False

sbs_oidc_config_url: "http://localhost/.well-known/openid-configuration"
Expand Down
4 changes: 3 additions & 1 deletion roles/sbs/templates/config.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,11 @@ user_requests_retention:
retention:
cron_hour_of_day: {{ sbs_cron_hour_of_day }}
# how many days of inactivity before a user is suspended
# 0 allows for any last_login_date in the past to trigger suspension notification
allowed_inactive_period_days: {{ sbs_suspension_inactive_days }}
# how many days before suspension do we send a warning
reminder_suspend_period_days: 14
# -1 will suspend notified users on second suspension cron
reminder_suspend_period_days: {{ sbs_suspension_reminder_days }}
# how many days after suspension do we delete the account
remove_suspended_users_period_days: 90
# how many days before deletion do we send a reminder
Expand Down

0 comments on commit 5af64f1

Please sign in to comment.