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

Fix Push API Key validation in diagnose report #416

Merged
merged 1 commit into from
Jul 16, 2021

Conversation

tombruijn
Copy link
Member

@tombruijn tombruijn commented Jul 16, 2021

The Push API key validation wasn't implemented previously. I've now
implemented a validation by calling the AppSignal.com auth endpoint with
the configured Push API key.

The http(s) library doesn't a way to make synchronous requests that I
could find, so I had to update the diagnose tool and script to be async,
by using the async and await keywords all the way up the chain of
functions.

The rest of the implementation such as the coloring of the output, and
storing of the result on the report, was already implemented.

I've updated the diagnose tests submodule to account for this change in
behavior in the tests.

Fix #408
Depends on appsignal/diagnose_tests#5

@tombruijn tombruijn added the bug label Jul 16, 2021
@tombruijn tombruijn self-assigned this Jul 16, 2021
The Push API key validation wasn't implemented previously. I've now
implemented a validation by calling the AppSignal.com auth endpoint with
the configured Push API key.

The http(s) library doesn't a way to make synchronous requests that I
could find, so I had to update the diagnose tool and script to be async,
by using the async and await keywords all the way up the chain of
functions.

The rest of the implementation such as the coloring of the output, and
storing of the result on the report, was already implemented.

I've updated the diagnose tests submodule to account for this change in
behavior in the tests.

Fix #408
@tombruijn tombruijn force-pushed the diagnose-push-api-key-validation branch from 33e4aa8 to 9bebd78 Compare July 16, 2021 12:54
@tombruijn tombruijn marked this pull request as ready for review July 16, 2021 12:58
@tombruijn tombruijn merged commit 7bb5398 into main Jul 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validate push API key in diagnose
2 participants