Skip to content

Conversation

johannes-huther
Copy link
Owner

Adds a random unique ID to the request.

As the POST data is never logged, this should prevent replay attacks even if logging is set to verbose.

If the randomness is not trusted an additional salt can still be added using

data: '{ "salt": "${{ secrets.WEBHOOK_SALT }}" }'

but this shouldn't be necessary.

Also the user can verify, that the request is unique by storing the previous request IDs. But I don't think this is necessary either.

Therefore I conclude that this PR closes distributhor#22.

Adds a random unique ID to the request. As the POST data is never
logged, this should prevent replay attacks even if logging is set to
verbose.
@johannes-huther johannes-huther self-assigned this May 22, 2021
@johannes-huther johannes-huther merged commit bc0e8fb into custom-features May 22, 2021
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.

Prevent replay attacks
1 participant