Passport currently does not check filesystem permissions of the keys it uses, per https://github.com/laravel/passport/pull/454. Passport also doesn't set the correct permissions on the keys it creates.
This PR aims to have Passport use more secure permissions by default, whilst still allowing developers to opt out.
Passport will now:
Automatically use stricter permissions when creating keys through the passport:keys command
Check key permissions before using them
This may be toggled off by setting Passport::$checkKeyPermissions to false
This check is disabled on Windows, because it does not support this
Passport currently does not check filesystem permissions of the keys it uses, per https://github.com/laravel/passport/pull/454. Passport also doesn't set the correct permissions on the keys it creates.
This PR aims to have Passport use more secure permissions by default, whilst still allowing developers to opt out.
Passport will now:
passport:keys
commandPassport::$checkKeyPermissions
tofalse