Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for identityParts (0.12 sec)

  1. pilot/pkg/security/trustdomain/bundle.go

    	identityParts := strings.Split(principal, "/")
    	// A valid SPIFFE identity in authorization has no SPIFFE:// prefix.
    	// It is presented as <trust-domain>/ns/<some-namespace>/sa/<some-service-account>
    	if len(identityParts) != 5 {
    		return "", fmt.Errorf("wrong SPIFFE format: %s", principal)
    	}
    	return fmt.Sprintf("%s/%s", trustDomain, strings.Join(identityParts[1:], "/")), nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 23 15:48:01 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top