Here's an alternative view on the problem:
https://github.com/roddhjav/apparmor.d
(I'm the contributor)
Still, validation without extraction (FIDO2), instead of read to validate is the best solution in OP's situation.