-
Notifications
You must be signed in to change notification settings - Fork 10
MONITORBOT_SECRET authorization #12
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Left some comments on the is_auth_token_valid
function :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left a minor nit, and then we can merge this :)
Whelp GitHub's UI messed up the review a bit 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I'll wait a bit before merging this, as I need to make infra changes to inject the secret into the environment before this can be auto-deployed.
sure! 👍 |
Configured everything to pass the secret around! |
closes #7
Config
fieldsecret
/metrics
endpoint now requires anAuthorization: Bearer
token, and that token must be equal to theConfig.secret
field.