Documentation ¶
Index ¶
Constants ¶
View Source
const (
XFCCHeader = "X-Forwarded-Client-Cert"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationMissingError ¶
func (AnnotationMissingError) Error ¶
func (e AnnotationMissingError) Error() string
type RequestVerifier ¶
func NewRequestVerifier ¶
func NewRequestVerifier(client client.Client) *RequestVerifier
func (*RequestVerifier) Verify ¶
func (v *RequestVerifier) Verify(request *http.Request, watcherEvtObject *types.WatchEvent) error
Verify verifies the given request by fetching the KymaCR given in the request payload and comparing the SAN(subject alternative name) of the certificate with the SKR-domain of the KymaCR. If the request can be verified 'nil' will be returned.
func (*RequestVerifier) VerifySAN ¶
func (v *RequestVerifier) VerifySAN(certificate *x509.Certificate, kymaDomain string) (bool, error)
VerifySAN checks if given domain exists in the SAN information of the given certificate.
Click to show internal directories.
Click to hide internal directories.