What would you automate for input handling across user roles and tenants, and what would you leave manual?
Answer
Before automating, map every input surface that differs by role or tenant, since a sanitization rule that holds for one configuration can silently not apply to a custom field another tenant added. Focus on input handling across user roles and tenants. Use 'output is escaped identically regardless of role or tenant' as the oracle, driven by a shared payload library covering injection, XSS and encoding edge cases. Cover the specific case where a role- or tenant-specific form path bypasses a shared sanitizer that the default path uses correctly. Automate the suite that submits the same payloads through every role's version of the same form across tenants and diffs the sanitized output. Leave manual the review of new tenant-configured custom fields, since those change faster than a fixed automated suite can track, and require a sanitization check before any new field ships.
Strong answer includes
- explicit risk and test oracle for input handling
- tests sanitization consistency across roles and tenants
- separates automated regression from manual review of new custom fields
- measurable evidence and residual-risk statement
Practical example
The team automated a suite that submits the same set of malicious payloads (script tags, oversized strings, unicode edge cases) through every role's version of the same form across three tenants, checking the sanitized output is identical regardless of role or tenant. They kept manual the review of new custom fields that tenants configure themselves, since those change too often for a fixed automated suite to keep up with.