linagora/james-project

SMIME verify: use Filesystem to load crypto materials

chibenwa opened this issue · 4 comments

Why?

  • filesystem shall be used when loading file ressources - this offers a consistent API
  • Enforces access controls on files (IE within james root)
  • Brings features like reading conf, classpath...

What

Use Filesystem class to load files in SMIMECheckSignature fallback to current method in case of error.

CF DKIMSign

The team is not fully grasping why this is needed, even after reading the why section. Can you help detailing a bit mroe on that part @chibenwa ?

In james filesystem in the entity to read files on the disk especially fir configuration. We need to be consistant.
This alone is a valid reason.
Pleasecomply.

(I won t rewrite word by word what is written above: consistent api for the sysadmin, central access tu filesystem, etc)