Repository navigation
Verify worker's team when landing/retiring workers - #9676
Merged
Merged
Conversation
not usd anymore. Were likely from back when tsa was its own binary and repo Signed-off-by: Taylor Silva <[email protected]>
taylorsilva
force-pushed
the
verify-workers-team
branch
from
August 5, 2026 21:37
740d39f to
34bdec0
Compare
…r's team Before this commit it was previously possible, if you had a worker's team private key, to connect to TSA and land/retire any team-scoped worker, even those not belonging to the team the private key was scoped to. This change blocks it at the API layer by including information about the worker in request body. Requests through TSA already scope the request properly and have the right checks in place to ensure a user can't fake the team the private key is scoped to. This does also make land/retire/delete requests between Workers and the Web not backwards compatible. The worker version has been bumped from `2.5` to `3.0`. Land/retire/delete requests from old workers will fail because they won't populate the request body and will get back a HTTP 400 from the web node. Signed-off-by: Taylor Silva <[email protected]>
taylorsilva
force-pushed
the
verify-workers-team
branch
from
August 6, 2026 14:36
34bdec0 to
cb2ab03
Compare
Signed-off-by: Taylor Silva <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Changes proposed by this PR
It is currently possible, if you had a worker's team private key, to connect to TSA and land/retire any team-scoped worker, even those not belonging to the team the private key was scoped to.
This change blocks it at the API layer by including information about the worker in request body. Requests through TSA already scope the request properly and have the right checks in place to ensure a user can't fake the team the private key is scoped to.
This does also make land/retire/delete requests between Workers and the Web not backwards compatible. The worker version has been bumped from
2.5to3.0. Land/retire/delete requests from old workers will fail because they won't populate the request body and will get back a HTTP 400 from the web node.I will emphasize again, that this requires one to have a worker's private key for authenticating to TSA. There are more malicious things one could do if they had a worker's private key, such as spin up their own workers and capture a team's workloads.
Note on upgrading
Due to this incompatibility with the API change, I recommend upgrading workers first and then web nodes. Upgrading in that order won't cause any issues if workers try to land/retire because the un-upgraded web nodes will ignore any body contents sent in the API request.