Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsServiceAccount (0.15 sec)

  1. internal/auth/credentials.go

    }
    
    // IsServiceAccount - returns whether credential is a service account or not
    func (cred Credentials) IsServiceAccount() bool {
    	_, ok := cred.Claims[iamPolicyClaimNameSA]
    	return cred.ParentUser != "" && ok
    }
    
    // IsImpliedPolicy - returns if the policy is implied via ParentUser or not.
    func (cred Credentials) IsImpliedPolicy() bool {
    	if cred.IsServiceAccount() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top