-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add webhook management for repositories and organizations #154
Add webhook management for repositories and organizations #154
Commits on Aug 22, 2023
-
Add admin required middleware and webhook endpoint
* Add a new middleware that tests for admin access * Add a new controller ID suffixed webhook endpoint. This will be used to accept webhook events on a webhook URL that is suffixed with our own controller ID. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f2796f1 - Browse repository at this point
Copy the full SHA f2796f1View commit details -
Add functions to (un)install webhooks for orgs and repos
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ce3f00 - Browse repository at this point
Copy the full SHA 7ce3f00View commit details -
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dbd41f5 - Browse repository at this point
Copy the full SHA dbd41f5View commit details -
Return bad request if hook already installed
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6051fa0 - Browse repository at this point
Copy the full SHA 6051fa0View commit details -
Add webhook show, return info and some fixes
* Added a webhook show command. This gives us info about the webhook and if it is installed. * Return webhook info when installing the webhook * Small typo fixes. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 779afe9 - Browse repository at this point
Copy the full SHA 779afe9View commit details -
Remove webhook when removing an entity & cmd fixes
* When removing a repo or org, we uninstall the webhook as well. * Upgrade cobra command and mark "webhook-secret" and "random-webhook-secret" as MarkFlagsOneRequired() Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 763eb70 - Browse repository at this point
Copy the full SHA 763eb70View commit details -
Add keepWebhook flag when deleting entities
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bb6ee9c - Browse repository at this point
Copy the full SHA bb6ee9cView commit details -
Add optional keepWebhook flag when removing an entity
The user can opt to not delete the webhook (if installed) when removing the entity from garm. Garm will only ever try to remove a webhook that exactly matches the URL that is composed of the base webhook URL configured in the config.toml file and the unique controller ID that is generated when the controller is first installed. It should be safe to remove the webhook when the entity is removed. Of course, this behavior can be disabled. Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c00048e - Browse repository at this point
Copy the full SHA c00048eView commit details -
Add flag to toggle webhook management
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1c0ff85 - Browse repository at this point
Copy the full SHA 1c0ff85View commit details -
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c641e1d - Browse repository at this point
Copy the full SHA c641e1dView commit details -
Return details in case PAT does not have access
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d57e488 - Browse repository at this point
Copy the full SHA d57e488View commit details -
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 64d3da4 - Browse repository at this point
Copy the full SHA 64d3da4View commit details -
Add ping hook functions to client
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7bd3e0b - Browse repository at this point
Copy the full SHA 7bd3e0bView commit details -
ping the webhook after creation
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 93bfb6f - Browse repository at this point
Copy the full SHA 93bfb6fView commit details -
Add optional --install-webhook flag when creating repo/org
Signed-off-by: Gabriel Adrian Samfira <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3b651af - Browse repository at this point
Copy the full SHA 3b651afView commit details