Skip to content

PAM import/extend: preserve admin credential when admin and launch ar… - #2410

Merged
sk-keeper merged 1 commit into
Keeper-Security:masterfrom
rporter92:fix/pam-preserve-admin-credential
Oct 7, 2026
Merged

sk-keeper merged 1 commit into
Keeper-Security:masterfrom
rporter92:fix/pam-preserve-admin-credential

Conversation

@rporter92

Copy link
Copy Markdown
Contributor

…e the same user

pam project extend and pam project import linked the launch credential via TunnelDAG.link_user_to_resource() on a TunnelDAG loaded before the admin was written via configure_resource. On that stale graph link_user() writes a fresh ACL edge with only belongs_to/is_launch_credential, replacing the edge and dropping is_admin when the admin and launch credential are the same pamUser.

Use TunnelDAG.set_launch_credentials(), which sends adminUid with connectUsers in one configure_resource call and keeps is_admin in its local follow-up write.

Adds unit-tests/pam/test_pam_same_admin_launch_credential.py.

…e the same user

pam project extend and pam project import linked the launch credential via
TunnelDAG.link_user_to_resource() on a TunnelDAG loaded before the admin was
written via configure_resource. On that stale graph link_user() writes a fresh
ACL edge with only belongs_to/is_launch_credential, replacing the edge and
dropping is_admin when the admin and launch credential are the same pamUser.

Use TunnelDAG.set_launch_credentials(), which sends adminUid with connectUsers
in one configure_resource call and keeps is_admin in its local follow-up write.

Adds unit-tests/pam/test_pam_same_admin_launch_credential.py.
@rporter92
rporter92 marked this pull request as ready for review October 6, 2026 22:20
@idimov-keeper
idimov-keeper self-requested a review October 7, 2026 16:13
@sk-keeper
sk-keeper merged commit 54b1591 into Keeper-Security:master Oct 7, 2026
6 checks passed
@rporter92
rporter92 deleted the fix/pam-preserve-admin-credential branch October 7, 2026 17:55
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