Skip to content

logpush: Handle invalid destination configuration#500

Merged
patryk merged 1 commit intocloudflare:masterfrom
jacobbednarz:error-on-logpush-validation-failure
Jul 8, 2020
Merged

logpush: Handle invalid destination configuration#500
patryk merged 1 commit intocloudflare:masterfrom
jacobbednarz:error-on-logpush-validation-failure

Conversation

@jacobbednarz
Copy link
Copy Markdown
Contributor

In the event that the destination configuration of a logpush job
challenge returns an erorr, we don't currently catch that. Instead, we
return the ownership challenge struct successfully which is slightly
misleading.

This introduces more error checking on the API itself to inspect the
response payload for the valid parameter being set to true which
handles the scenarios where ownership validation fails.

Fixes #499

In the event that the destination configuration of a logpush job
challenge returns an erorr, we don't currently catch that. Instead, we
return the ownership challenge struct successfully which is slightly
misleading.

This introduces more error checking on the API itself to inspect the
response payload for the `valid` parameter being set to true which
handles the scenarios where ownership validation fails.

Fixes cloudflare#499
@patryk patryk merged commit 1cc2e45 into cloudflare:master Jul 8, 2020
Justin-Holmes pushed a commit to Justin-Holmes/cloudflare-go that referenced this pull request Sep 17, 2020
In the event that the destination configuration of a logpush job
challenge returns an erorr, we don't currently catch that. Instead, we
return the ownership challenge struct successfully which is slightly
misleading.

This introduces more error checking on the API itself to inspect the
response payload for the `valid` parameter being set to true which
handles the scenarios where ownership validation fails.

Fixes cloudflare#499
Justin-Holmes pushed a commit to Justin-Holmes/cloudflare-go that referenced this pull request Sep 18, 2020
In the event that the destination configuration of a logpush job
challenge returns an erorr, we don't currently catch that. Instead, we
return the ownership challenge struct successfully which is slightly
misleading.

This introduces more error checking on the API itself to inspect the
response payload for the `valid` parameter being set to true which
handles the scenarios where ownership validation fails.

Fixes cloudflare#499
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.

Logpush get challenge should error when unsuccessful

2 participants