Skip to content

Commit

Permalink
Encrypt all queueable payloads
Browse files Browse the repository at this point in the history
  • Loading branch information
willbrowningme committed Feb 18, 2021
1 parent 5bf9395 commit cd70b89
Show file tree
Hide file tree
Showing 13 changed files with 17,664 additions and 2,011 deletions.
3 changes: 2 additions & 1 deletion app/Jobs/DeleteAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
use App\Models\DeletedUsername;
use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;

class DeleteAccount implements ShouldQueue
class DeleteAccount implements ShouldQueue, ShouldBeEncrypted
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

Expand Down
3 changes: 2 additions & 1 deletion app/Mail/ForwardEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use App\Notifications\GpgKeyExpired;
use App\Traits\CheckUserRules;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
Expand All @@ -18,7 +19,7 @@
use Swift_Signers_DKIMSigner;
use Swift_SwiftException;

class ForwardEmail extends Mailable implements ShouldQueue
class ForwardEmail extends Mailable implements ShouldQueue, ShouldBeEncrypted
{
use Queueable, SerializesModels, CheckUserRules;

Expand Down
3 changes: 2 additions & 1 deletion app/Mail/ReplyToEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
use App\Models\User;
use App\Traits\CheckUserRules;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Swift_Signers_DKIMSigner;

class ReplyToEmail extends Mailable implements ShouldQueue
class ReplyToEmail extends Mailable implements ShouldQueue, ShouldBeEncrypted
{
use Queueable, SerializesModels, CheckUserRules;

Expand Down
3 changes: 2 additions & 1 deletion app/Mail/SendFromEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
use App\Models\User;
use App\Traits\CheckUserRules;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Swift_Signers_DKIMSigner;

class SendFromEmail extends Mailable implements ShouldQueue
class SendFromEmail extends Mailable implements ShouldQueue, ShouldBeEncrypted
{
use Queueable, SerializesModels, CheckUserRules;

Expand Down
3 changes: 2 additions & 1 deletion app/Mail/TokenExpiringSoon.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class TokenExpiringSoon extends Mailable implements ShouldQueue
class TokenExpiringSoon extends Mailable implements ShouldQueue, ShouldBeEncrypted
{
use Queueable, SerializesModels;

Expand Down
3 changes: 2 additions & 1 deletion app/Notifications/GpgKeyExpired.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class GpgKeyExpired extends Notification implements ShouldQueue
class GpgKeyExpired extends Notification implements ShouldQueue, ShouldBeEncrypted
{
use Queueable;

Expand Down
3 changes: 2 additions & 1 deletion app/Notifications/NearBandwidthLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class NearBandwidthLimit extends Notification implements ShouldQueue
class NearBandwidthLimit extends Notification implements ShouldQueue, ShouldBeEncrypted
{
use Queueable;

Expand Down
3 changes: 2 additions & 1 deletion app/Notifications/UsernameReminder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
namespace App\Notifications;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeEncrypted;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class UsernameReminder extends Notification implements ShouldQueue
class UsernameReminder extends Notification implements ShouldQueue, ShouldBeEncrypted
{
use Queueable;

Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "MIT",
"require": {
"php": "^7.3",
"asbiin/laravel-webauthn": "^0.9.0",
"asbiin/laravel-webauthn": "^1.0.0",
"bacon/bacon-qr-code": "^2.0",
"doctrine/dbal": "^2.9",
"fideloper/proxy": "^4.2",
Expand All @@ -24,7 +24,6 @@
"php-mime-mail-parser/php-mime-mail-parser": "^6.0",
"pragmarx/google2fa-laravel": "^1.3",
"pragmarx/version": "^1.2",
"predis/predis": "^1.1",
"ramsey/uuid": "^4.0"
},
"require-dev": {
Expand Down
Loading

0 comments on commit cd70b89

Please sign in to comment.