Skip to content

Revoke Slurm access when a membership or allocation is deactivated#545

Open
lahirujayathilake wants to merge 2 commits into
538from
540
Open

Revoke Slurm access when a membership or allocation is deactivated#545
lahirujayathilake wants to merge 2 commits into
538from
540

Conversation

@lahirujayathilake

@lahirujayathilake lahirujayathilake commented Jul 21, 2026

Copy link
Copy Markdown
Member

Users got cluster access when added to an allocation, but never lost it. Deactivating a member, removing them, or deactivating the allocation left them able to keep submitting jobs. The events for all of this were already being published, but nothing was listening to them.

What this does

  • Deactivating or deleting a membership removes that member's access to that allocation, and nothing else.
  • Deactivating or deleting an allocation removes access for all of its members.
  • Reactivating either one restores access.

Background check

The reconciler added in #544 only filled in missing access. It now also removes access that is no longer granted, so a missed event cannot leave someone with access forever.

Removing access is riskier than granting it, so the reconciler does nothing when it is unsure. It skips removal if no one on the cluster appears to have access (far more likely a failed lookup than a genuinely empty cluster), if a lookup it depends on fails, or if the account is not one Custos manages. It also leaves alone an allocation's own limits and members whose accounts were only just created.

Fixes #540

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.

1 participant