Documentation ¶
Index ¶
- func CheckAnnotationAttrib(cipherText string, node []v1.NodeSelectorRequirement, ...) bool
- func FilteredHost(args *schedulerapi.ExtenderArgs, iHubPubKeys map[string][]byte, ...) (*schedulerapi.ExtenderFilterResult, error)
- func JWTParseWithClaims(cipherText string, claim jwt.MapClaims) bool
- func ParseRSAPublicKeyFromPEM(pubKey []byte) (*rsa.PublicKey, error)
- func ValidateAnnotationByPublicKey(cipherText string, iHubPubKey []byte) error
- func ValidateNodeByTime(claims jwt.MapClaims, validTo string) bool
- func ValidatePodWithHvsAnnotation(nodeData []v1.NodeSelectorRequirement, claims jwt.MapClaims, ...) bool
- func ValidatePodWithSgxAnnotation(nodeData []v1.NodeSelectorRequirement, claims jwt.MapClaims, ...) bool
- type JwtHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAnnotationAttrib ¶
func CheckAnnotationAttrib(cipherText string, node []v1.NodeSelectorRequirement, iHubPubKeys map[string][]byte, tagPrefix, attestationType string) bool
CheckAnnotationAttrib is used to validate node with respect to time,trusted and location tags
func FilteredHost ¶
func FilteredHost(args *schedulerapi.ExtenderArgs, iHubPubKeys map[string][]byte, tagPrefix string) (*schedulerapi.ExtenderFilterResult, error)
FilteredHost is used for getting the nodes and pod details and verify and return if pod key matches with annotations
func JWTParseWithClaims ¶
JWTParseWithClaims uses ParseUnverified from dgrijalva/jwt-go for parsing and adding the annotation values in claims map ParseUnverified doesnt do signature validation. But however the signature validation is being done at ValidateAnnotationByPublicKey
func ParseRSAPublicKeyFromPEM ¶
ParseRSAPublicKeyFromPEM is used for parsing and verify public key
func ValidateAnnotationByPublicKey ¶
ValidateAnnotationByPublicKey is used for validate the annotation(cipher) by public key
func ValidateNodeByTime ¶
ValidateNodeByTime is used for validate time for each node with current system time(Expiry validation)
func ValidatePodWithHvsAnnotation ¶
func ValidatePodWithHvsAnnotation(nodeData []v1.NodeSelectorRequirement, claims jwt.MapClaims, trustprefix string) bool
ValidatePodWithAnnotation is to validate signed trusted and location report with pod keys and values
func ValidatePodWithSgxAnnotation ¶
func ValidatePodWithSgxAnnotation(nodeData []v1.NodeSelectorRequirement, claims jwt.MapClaims, trustprefix string) bool
ValidatePodWithSgxAnnotation is to validate sgx signed trusted and location report with pod keys and values