utils

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJWTWithoutVerify

func ParseJWTWithoutVerify(token string, options ...jwt.ParserOption) (*jwt.Token, error)

ParseJWTWithoutVerify parses a JWT token without verifying the signature. The token should be verified by using authentication.k8s.io/v1.TokenReview. https://support.hashicorp.com/hc/en-us/articles/18712750429843-How-to-check-validity-of-JWT-token-in-kubernetes

func SplitPublicKeyBlocks added in v0.3.0

func SplitPublicKeyBlocks(in string) ([]string, error)

SplitPublicKeyBlocks splits a string containing multiple PGP public key blocks into a slice of strings. Returns an error and the already found blocks if a block start is found without a matching block end.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL