prime-simplereport icon indicating copy to clipboard operation
prime-simplereport copied to clipboard

Rework whoami function to remove the need for a WAF rule override

Open alismx opened this issue 3 years ago • 2 comments

Context: https://github.com/CDCgov/prime-simplereport/pull/3730/files

WAF rule gets triggered for our whoami function. We'd like to update this so that we don't need to use a rule override.

alismx avatar May 09 '22 17:05 alismx

This is a graphQL endpoint, we'll to break this into two pieces to fix.

Suggestions: getUserPermissions, ?

emmastephenson avatar May 12 '22 19:05 emmastephenson

Clarifying: based on the PR linked and discussions, the "rework" needed is changing the name of the query. whoami is a unix command and that's why the waf thinks its suspicious

DanielSass avatar Nov 04 '25 20:11 DanielSass