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

feat: add webhook helpers #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

feat: add webhook helpers #4

wants to merge 1 commit into from

Conversation

palexster
Copy link
Owner

Overview

What this PR does / why we need it

Special notes for your reviewer

Does this PR introduce a user-facing change?


@@ -0,0 +1,7 @@
package config

type HookType string

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explain the concept of the hook types, why there is only 1 external.

URL string `json:"url"`
InsecureSkipVerify bool `json:"insecureSkipVerify"`
TLSRootCAFile string `json:"tlsRootCAFile"`
ClientAuthentication *ClientAuthentication `json:"clientAuthentication"`

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does the web hook behaves if there is client authentication + insecure skip verify.

@@ -0,0 +1,23 @@
package config

type ClaimsMutatingHook struct {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the ClaimsMutatingHook

Config *WebhookConfig
}

type ClaimsValidatingHook struct {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the ClaimsValidatingHook

@@ -0,0 +1,24 @@
package config

// HookRequestScope is the context of the request

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain here what it means, of what request?

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