Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
71d4366
Improve account_functions:kexec error handling
cmd-ntrf Oct 26, 2026
370cee3
Avoid local supressing kexec return code
cmd-ntrf Oct 26, 2026
b2c2fa6
Improve error handling of ldapsearch
cmd-ntrf Oct 26, 2026
ef159b8
Replace ldapsearch kerberos auth by socket uri
cmd-ntrf Oct 26, 2026
a850fe6
Handle ldapsearch error in mkhome
cmd-ntrf Oct 26, 2026
9fde458
Make sure we don't skip a group because ipa group-show is not answering
cmd-ntrf Oct 26, 2026
6945f14
Add documentation on heuristic for future reviewing
cmd-ntrf Oct 26, 2026
29d291e
Improve project modification heuristics and fault tolerance
cmd-ntrf Oct 28, 2026
30f541d
Continue regardless mkproject was successful in fifo reading
cmd-ntrf Oct 29, 2026
fd8e8e0
Rename mkproject failure marker as mkproject instead of slurm
cmd-ntrf Oct 29, 2026
6efb3a4
Make mkproject recovery runs before membership validation and cache f…
cmd-ntrf Oct 29, 2026
de9e9d9
Replace file marker for failed mkproject by ACTION input
cmd-ntrf Oct 29, 2026
355e140
Read VALIDATE_MEMBER and USERNAMES only for modproject
cmd-ntrf Oct 29, 2026
82596e1
Put sleep before the echo in queuing to avoid blocking progress
cmd-ntrf Oct 29, 2026
0b9cdc1
Centralize the retry limit in queue_action
cmd-ntrf Oct 29, 2026
737b06f
Make retry of mkhome sleep before queuing
cmd-ntrf Oct 29, 2026
a879916
Avoid mkproject code duplication by using queue_action directly
cmd-ntrf Nov 2, 2026
7ba1112
Replace username heuristics in mod by reconciliation
cmd-ntrf Nov 2, 2026
b1dc051
Fix local RM_OUTPUT overshadowing rm exit code
cmd-ntrf Nov 3, 2026
f6a7322
Verify sacctmgr exit code when looking up members in delproject
cmd-ntrf Nov 3, 2026
40cd3f1
Fix delproject
cmd-ntrf Nov 3, 2026
c3928dd
Deleting project now removes the project from mkproject cache
cmd-ntrf Nov 3, 2026
d9e66d0
Fix mkproject/modproject locking to avoid stale lock blocking worker
cmd-ntrf Nov 3, 2026
042c14a
Accept positive and negative timezone offsets
cmd-ntrf Nov 4, 2026
25750eb
Return success in mkhome only after restorecon is successful
cmd-ntrf Nov 4, 2026
124885d
Improve filesystem error management in mkscratch
cmd-ntrf Nov 4, 2026
7599ee2
Combine chmod with mkdir and improve mkproject failure handling
cmd-ntrf Nov 4, 2026
93ade99
Add filesystem failure handling to modproject
cmd-ntrf Nov 4, 2026
73235f1
Comment we accept selinux labeling as best effort
cmd-ntrf Nov 4, 2026
3029d93
Improve delproject
cmd-ntrf Nov 4, 2026
717ce29
Align logic of modproject and delproject
cmd-ntrf Nov 4, 2026
3a6d2e5
Make modproject call delproject to remove obsolete usernames
cmd-ntrf Nov 4, 2026
1799064
Make a single getent call per modproject
cmd-ntrf Nov 5, 2026
0b19222
Replace getent call by ldapsearch in modproject
cmd-ntrf Nov 5, 2026
379fba1
Replace getent by ldapsearch in mkhome, mkscratch and delproject
cmd-ntrf Nov 5, 2026
0f6ff1a
Replace getent by ldapsearch in mkproject
cmd-ntrf Nov 5, 2026
7d9e207
Skip missing user in password database but add others
cmd-ntrf Nov 5, 2026
d98afb1
Reclassify error as warning in modproject
cmd-ntrf Nov 5, 2026
9a4a905
Start documentation folder with constraints and extras
cmd-ntrf Nov 5, 2026
85207ae
Make mkhome skip non posix users
cmd-ntrf Nov 5, 2026
b5504a4
Make mkhome wait on add result before creating home and scratch
cmd-ntrf Nov 6, 2026
f11cf91
Move mkhome/project configurable vars in configuration file
cmd-ntrf Nov 6, 2026
53aaaf1
Replace WITH_FOLDER by global variable reading
cmd-ntrf Nov 6, 2026
5ad6ca1
Move more configuration parameter in configuration file
cmd-ntrf Nov 6, 2026
2c3d34b
Remove for loop from mkhome
cmd-ntrf Nov 6, 2026
4dd79be
Remove CLUSTER_NAME setting from wait_for_slurm
cmd-ntrf Nov 6, 2026
12e4ef2
Remove lock from mkproject
cmd-ntrf Nov 6, 2026
55b9c1f
Remove mkproject cache lock
cmd-ntrf Nov 6, 2026
30cd9b6
Create helper function to retrieve user info
cmd-ntrf Nov 6, 2026
5ccc871
Make ipa_create_user search ldap instead of SSSD for dry-run
cmd-ntrf Nov 6, 2026
ee6371a
Mask ldap bind log message
cmd-ntrf Nov 6, 2026
111215b
Remove getent from modproject
cmd-ntrf Nov 6, 2026
1bd1317
Handle case where user is deleted before home is created
cmd-ntrf Nov 9, 2026
089770b
Limit selinux context restoration to files copied with rsync
cmd-ntrf Nov 10, 2026
4a7558d
Make rsync in mkhome copy symlinks while preserving them as symlinks
cmd-ntrf Nov 10, 2026
e51b23f
Make delproject return 0 on success
cmd-ntrf Nov 12, 2026
aa2b997
Remove check if PROJECT is empty, condition is always true
cmd-ntrf Nov 12, 2026
bc98164
Remove duplication PROJECT_GROUP
cmd-ntrf Nov 12, 2026
4506637
Make sure to specify the ldapsearch scope properly
cmd-ntrf Nov 12, 2026
9c41f42
Constrain mkhome and mkproject to work on group direct membership only
cmd-ntrf Nov 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
50 changes: 50 additions & 0 deletions docs/constraints.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Operation constraints and rules

This document make an inventory of constraints and operation rules of
the puppet-magic_castle environment.

## Identity and naming rules

- Never reuse a deleted project group name for another project. This includes
renaming another group to the deleted name and creation through automation.
- Never reassign a username to a different person. Retain retired usernames in
the site's identity inventory so operators and automation can reject reuse.
- Do not rename managed users or project groups as a routine operation. These
services do not provide a complete migration of paths and Slurm identities.
- Do not manually reuse a UID or GID while files, ACLs, or other resources still
refer to it. Deleting a directory entry does not remove numeric ownership from
filesystems.
- Record retired usernames, group names, UID/GID values, home paths, project
paths, Slurm account names, retirement dates, and data disposition.

These rules apply to operators, administrators, and automation. FreeIPA
permissions can restrict deletion and renaming for delegated operators, but this
guide does not imply that such restrictions are already configured. Keeping a
retired group under its original name reserves that name; after deletion, the
inventory must provide that reservation.

### Why names must not be recycled

A recreated project group can have a new GID while reconnecting to the previous
Slurm account by name. Existing Slurm allocation settings remain unless an
administrator changes them. A delayed deletion retry can also remove associations
and home symlinks belonging to the replacement project. Never reusing the group
name prevents that retry from targeting a replacement identity.

A recreated username can collide with an existing home, scratch directory, and
personal project directory. Home provisioning preserves existing files. Scratch
and project provisioning do not transfer an existing directory owned by an old,
non-root UID to a new UID. A different UID can therefore encounter inaccessible
directories; reusing the old UID can expose the previous person's data. Slurm
membership comparisons also use usernames and cannot distinguish those people.

## Project group membership

Project provisioning and Slurm account synchronization performed by `mkhome` and
`mkproject` support only users listed directly in a project group's LDAP `member`
attribute. Membership inherited through nested groups is unsupported. Add each
user directly to every project group for which they require provisioning and
Slurm account access.

Home and scratch directory creation are independent of this membership
restriction.
Loading
Loading