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

Task: require/allow collector_auth_token iff we are in Leader role. #391

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

branlwyd
Copy link
Contributor

This matches how things will be configured: helpers don't have knowledge
of the leader-collector auth token.

Also, update aggregator endpoint checks to return a 404 if the endpoint
doesn't apply to the task role BEFORE checking auth. I think this makes
more sense since I suppose the desired semantics are "the resource does
not exist if the task is for the wrong role" and it doesn't make sense
to authenticate against a task that doesn't exist.

Closes #370.

This matches how things will be configured: helpers don't have knowledge
of the leader-collector auth token.

Also, update aggregator endpoint checks to return a 404 if the endpoint
doesn't apply to the task role BEFORE checking auth. I think this makes
more sense since I suppose the desired semantics are "the resource does
not exist if the task is for the wrong role" and it doesn't make sense
to authenticate against a task that doesn't exist.
@branlwyd branlwyd requested a review from a team as a code owner August 11, 2022 23:41
@branlwyd branlwyd merged commit f302300 into main Aug 12, 2022
@branlwyd branlwyd deleted the bran/fix-task-constructor branch August 12, 2022 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task::new() should not require the helper to have a collector auth token
2 participants