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

BUG: Webhook check complains about inactive webhooks #1848

Open
laurentsimon opened this issue Apr 19, 2022 · 4 comments
Open

BUG: Webhook check complains about inactive webhooks #1848

laurentsimon opened this issue Apr 19, 2022 · 4 comments
Labels
check/webhook kind/bug Something isn't working

Comments

@laurentsimon
Copy link
Contributor

laurentsimon commented Apr 19, 2022

@evverx can you describe the repo you tried it on?

I'm wondering whether it's still useful to report inactive web hook: if it's inactive, should users remove it?

@laurentsimon laurentsimon added the kind/bug Something isn't working label Apr 19, 2022
@evverx
Copy link
Contributor

evverx commented Apr 19, 2022

@evverx can you describe the repo you tried it on?

As far as I can remember it was systemd. scorecard complained about at least two inactive webhooks.

if it's inactive, should users remove it?

I think it depends. If webhooks are no longer used they should probably be removed but if they are temporarily broken due to outages or something like that it makes sense to temporarily turn them off.

@evverx
Copy link
Contributor

evverx commented Apr 19, 2022

I can imagine another scenario where webhooks are turned off until secret tokens are supported there. I don't think it makes sense to remove them, fix endpoints and then bring them back. It seems to be easier to keep them without actually using them in this particular case.

@cpanato
Copy link
Contributor

cpanato commented Apr 21, 2022

maybe we can log that and remove that from the count, since it is inactive, if they become active and the scorecard runs again it will be part.

I think we should just log the inactive ones

@evverx
Copy link
Contributor

evverx commented Apr 21, 2022

FWIW as discussed in #1655 (comment) I think this whole check is
kind of misleading:

having played with this check a bit more I don't think it makes sense to keep it because regardless of what scorecard says all webhooks have to be audited manually to make sure that secrets are actually used on the receiving end. I think it's helpful in terms of raising awareness so to speak though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
check/webhook kind/bug Something isn't working
Projects
Status: Backlog - Bugs
Development

No branches or pull requests

4 participants