#34965: @sensitive_variables for coroutine func are not recursive -------------------------------------+------------------------------------- Reporter: vagi8 | Owner: nobody Type: | Status: new Uncategorized | Component: | Version: 5.0 Uncategorized | Keywords: Severity: Normal | @sensitive_variables, Triage Stage: | @sensitive_post_parameters Unreviewed | Has patch: 0 Needs documentation: 0 | Needs tests: 0 Patch needs improvement: 0 | Easy pickings: 0 UI/UX: 0 | -------------------------------------+------------------------------------- There is a difference in functionality of how @sensitive_variables/sensitive_post_parameters work for synchronous functions and asynchronous functions.
Sync funcs. - It recursively hides the variables from all frames in the stack until new sensitive variables are defined for a frame. Example, Wrappers to nested function calls, variables are hidden. Async funcs. - It only hides the variables in the top most frame of the stack. Example, If there is view func with sensitive variables, and it also has a decorator, it hides only in the wrapper and not in the actual view. I would expect both to work in similar way. I am also deeply invested in the idea so I willing to contribute a PR. -- Ticket URL: <https://code.djangoproject.com/ticket/34965> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018bc2fdc327-7b371f16-7924-4cef-b78f-f27b7527cd6d-000000%40eu-central-1.amazonses.com.