-
-
Notifications
You must be signed in to change notification settings - Fork 39
Add optional signed_audience flag #114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
marickvantuil
merged 12 commits into
stackkit:master
from
Tarpsvo:feature/optional-audience-hash
Jul 2, 2023
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2857ba1
Make audience signing optional
Tarpsvo aa2a345
Add additional reporting just in case
Tarpsvo e185f2c
Theoretical fixes
Tarpsvo 7db3174
Fix return value
Tarpsvo 226f9bd
Fix docs
Tarpsvo 9ab5a81
Fix type
Tarpsvo 9591b39
Remove debug reports
Tarpsvo bce2a7c
Undo style change
Tarpsvo f356dc2
Undo introduced variable
Tarpsvo 964ddd4
Fix task name sanitization
Tarpsvo e24bbee
Enable signed audience by default
marickvantuil aad2d5d
Refactor
marickvantuil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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'); | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable was unused.