Skip to content
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

Use APP_KEY to authenticate API requests from remote workers #2143

Merged
merged 3 commits into from
Apr 15, 2024

Conversation

zackgalbreath
Copy link
Contributor

No description provided.

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in
/CDash/app/cdash/tests/kwtest/simpletest/mock_objects.php on line 732
@zackgalbreath zackgalbreath marked this pull request as draft April 11, 2024 16:52
@zackgalbreath zackgalbreath force-pushed the remote_workers_auth branch 2 times, most recently from e5db166 to 6887f97 Compare April 12, 2024 15:03
@zackgalbreath zackgalbreath marked this pull request as ready for review April 12, 2024 16:09
Copy link
Collaborator

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of passing around the app key, I think it would be better to use Laravel's encrypt() and decrypt() helpers. There isn't necessarily anything wrong with the current setup, but it feels like a bad idea to have any code paths which export the app key directly.

Copy link
Collaborator

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The files in question are due for a refactor at some point, but that can be done at a future point. While doing that, I think it would make sense to create a special middleware group for inter-node communication routes like these where the routes are only accessible internally.

app/Jobs/ProcessSubmission.php Show resolved Hide resolved
app/Jobs/ProcessSubmission.php Outdated Show resolved Hide resolved
tests/Feature/RemoteWorkers.php Outdated Show resolved Hide resolved
tests/Feature/RemoteWorkers.php Show resolved Hide resolved
app/cdash/tests/CMakeLists.txt Show resolved Hide resolved
@williamjallen williamjallen added this to the v3.4 milestone Apr 13, 2024
@zackgalbreath zackgalbreath force-pushed the remote_workers_auth branch 2 times, most recently from ec520ce to 98c814b Compare April 15, 2024 17:33
Copy link
Collaborator

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me.

@zackgalbreath zackgalbreath added this pull request to the merge queue Apr 15, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 15, 2024
@zackgalbreath zackgalbreath added this pull request to the merge queue Apr 15, 2024
Merged via the queue into master with commit 71b230c Apr 15, 2024
6 checks passed
@zackgalbreath zackgalbreath deleted the remote_workers_auth branch April 15, 2024 20:50
zackgalbreath added a commit that referenced this pull request Apr 22, 2024
Use an internal, secured API endpoint to store files parsed from Upload.xml
when CDash is configured to use remote workers.

Follow-up to #2143
github-merge-queue bot pushed a commit that referenced this pull request Apr 22, 2024
Use an internal, secured API endpoint to store files parsed from
Upload.xml when CDash is configured to use remote workers.

Follow-up to #2143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants