Skip to content

PM-947: Add domain validation to pam request-access and validate-domain DTO#1877

Merged
tbjones-ks merged 1 commit intoPM-947-privileged-cloud-managementfrom
PM-947-track-h-workflow-elevation
Mar 18, 2026
Merged

PM-947: Add domain validation to pam request-access and validate-domain DTO#1877
tbjones-ks merged 1 commit intoPM-947-privileged-cloud-managementfrom
PM-947-track-h-workflow-elevation

Conversation

@tbjones-ks
Copy link
Contributor

@tbjones-ks tbjones-ks commented Mar 17, 2026

Summary

Add domain validation to pam request-access command. Before sending an approval notification to the record owner, Commander dispatches rm-validate-domain to the gateway to verify the requesting user's email domain is managed by the IdP. Fails fast if the domain is invalid.

Issue

Changes

  • Added GatewayActionIdpValidateDomain DTO for rm-validate-domain action in pam_dto.py
  • Updated pam_request_access.py:
    • Resolves PAM config and IdP config for the resource record
    • Dispatches rm-validate-domain to gateway before sending notification
    • Rejects request with error if domain is not verified in IdP
    • Uncommented vault/notifications_send API call

Breaking Changes

None

Testing Performed

  • Integration testing pending (requires live gateway + Azure environment)

Change List:
   - Added GatewayActionIdpValidateDomain DTO for rm-validate-domain action
   - Updated pam request-access to validate user domain against IdP before sending approval notification
   - Uncommented notification API call in pam request-access
@tbjones-ks tbjones-ks merged commit a765f17 into PM-947-privileged-cloud-management Mar 18, 2026
4 checks passed
@tbjones-ks tbjones-ks deleted the PM-947-track-h-workflow-elevation branch March 18, 2026 15:25
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