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

github-events: Add multisecret support to trampoline webhook. #656

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

wlynch
Copy link
Member

@wlynch wlynch commented Dec 11, 2024

Adds the ability for the trampoline to accept multiple secrets.

This tries to retain the existing behavior of the webhook assuming at least one secret by allowing additional secrets to be specified by a similar WEBHOOK_SECRET_ prefix.

Additional secrets must be defined and loaded out of band of the module.

Also adds testing for the trampoline to verify behavior.

Part of https://github.com/chainguard-dev/internal-dev/issues/1513

@wlynch wlynch requested review from imjasonh and k4leung4 December 11, 2024 18:07
@wlynch wlynch force-pushed the webhook-multisecret branch 4 times, most recently from a141602 to 337e696 Compare December 11, 2024 18:45
Adds the ability for the trampoline to accept multiple secrets.
This tries to retain the existing behavior of the webhook assuming at
least one secret by allowing additional secrets to be specified by the
same prefix. Additional secrets must be defined and loaded out of band
of the service.
@wlynch wlynch force-pushed the webhook-multisecret branch from 337e696 to d4fe464 Compare December 12, 2024 15:53
@k4leung4 k4leung4 merged commit 6af84ce into chainguard-dev:main Dec 12, 2024
85 checks passed
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.

2 participants