Skip to content

Conversation

@simonLeary42
Copy link
Collaborator

@simonLeary42 simonLeary42 commented Jun 7, 2025

Problem:

When redis is flushed, the names/emails/orgs of all nonexistent users disappear. Any attempt to approve requests made by these users will result in a white screen of death because the portal doesn't know what name/email/org to write to LDAP.

Solution:

Any access to name/email/org for a nonexistent user is now an error. name/email/org are stored with each request.

Notes:

The request creations now have assertions that $USER and $SSO match. This is to prevent an admin from viewing as another user and accidentally submitting a request for that user with the admin's name/email/org.

@simonLeary42 simonLeary42 marked this pull request as draft June 7, 2025 17:54
@simonLeary42 simonLeary42 force-pushed the request-name-volatile branch from b39ba6e to 0b75c4d Compare June 7, 2025 19:12
@simonLeary42 simonLeary42 marked this pull request as ready for review June 7, 2025 21:12
@simonLeary42 simonLeary42 requested a review from bryank-cs June 7, 2025 21:12
@simonLeary42 simonLeary42 marked this pull request as draft June 7, 2025 21:19
@simonLeary42 simonLeary42 marked this pull request as ready for review June 7, 2025 21:49
@simonLeary42
Copy link
Collaborator Author

closes #240

@simonLeary42 simonLeary42 force-pushed the main branch 6 times, most recently from 021a1af to 969c0ad Compare June 16, 2025 15:18
@simonLeary42 simonLeary42 force-pushed the request-name-volatile branch from 6ae8f39 to 5bb021b Compare June 16, 2025 19:31
@simonLeary42 simonLeary42 force-pushed the request-name-volatile branch from af10183 to d3c1e2e Compare June 16, 2025 19:42
This was referenced Jun 16, 2025
@simonLeary42 simonLeary42 merged commit 69d6c15 into main Jun 17, 2025
3 checks passed
@simonLeary42 simonLeary42 deleted the request-name-volatile branch June 17, 2025 19:01
@simonLeary42
Copy link
Collaborator Author

65a3f57

@simonLeary42
Copy link
Collaborator Author

3e6f98b

simonLeary42 added a commit that referenced this pull request Nov 10, 2025
* prevent access to user attributes when they might not be defined

* getuid without existing is OK

* store attributes in request

* replace bad variable name (#242)

* email -> mail

* use new vars

* fix request fetch

* fix tests

* add function getOrgMemberUIDs, copied from UnityGroup

* fix inOrg (#245)

* rename variable

* use email from request

* fix tests

* remove extra space

* rewrite tests

* fix tests

* fix tests

* fix tests

* fix test

* remove prune

* remove old comment

* more similar to previous revision

* wording

* consistent

* Revert "more similar to previous revision"

This reverts commit 2966ded.

* delete org before user

* flush redis cache in tests

* absolute exception

* fix requestExists

* remove redundant assertions

remove unused variable (#269)

fix error in UnityGroup->denyRequest

fix missing email in denyGroup
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