-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #114 from Tarpsvo/feature/optional-audience-hash
Add optional signed_audience flag
- Loading branch information
Showing
6 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,7 @@ Please check the [Laravel support policy](https://laravel.com/docs/master/releas | |
'handler' => env('STACKKIT_CLOUD_TASKS_HANDLER', ''), | ||
'queue' => env('STACKKIT_CLOUD_TASKS_QUEUE', 'default'), | ||
'service_account_email' => env('STACKKIT_CLOUD_TASKS_SERVICE_EMAIL', ''), | ||
'signed_audience' => env('STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE', true), | ||
// Optional: The deadline in seconds for requests sent to the worker. If the worker | ||
// does not respond by this deadline then the request is cancelled and the attempt | ||
// is marked as a DEADLINE_EXCEEDED failure. | ||
|
@@ -70,6 +71,7 @@ Please check the table below on what the values mean and what their value should | |
| `STACKKIT_CLOUD_TASKS_QUEUE` | The default queue a job will be added to |`emails` | ||
| `STACKKIT_CLOUD_TASKS_SERVICE_EMAIL` | The email address of the service account. Important, it should have the correct roles. See the section below which roles. |`[email protected]` | ||
| `STACKKIT_CLOUD_TASKS_HANDLER` (optional) | The URL that Cloud Tasks will call to process a job. This should be the URL to your Laravel app. By default we will use the URL that dispatched the job. |`https://<your website>.com` | ||
| `STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE` (optional) | True or false depending if you want extra security by signing the audience of your tasks. May misbehave in certain Cloud Run setups. Defaults to true. | `true` | ||
</details> | ||
<details> | ||
<summary> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,7 @@ protected function getEnvironmentSetUp($app) | |
'location' => 'europe-west6', | ||
'handler' => env('CLOUD_TASKS_HANDLER', 'https://docker.for.mac.localhost:8080'), | ||
'service_account_email' => '[email protected]', | ||
'signed_audience' => true, | ||
]); | ||
$app['config']->set('queue.failed.driver', 'database-uuids'); | ||
$app['config']->set('queue.failed.database', 'testbench'); | ||
|