- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for iamPolicyClaimNameSA (0.16 sec)
-
internal/auth/credentials.go
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() { return cred.Claims[iamPolicyClaimNameSA] == "inherited-policy" } return false }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue May 28 17:14:16 UTC 2024 - 12K bytes - Viewed (0) -
cmd/iam.go
m := make(map[string]interface{}) m[parentClaim] = parentUser if len(policyBuf) > 0 { m[policy.SessionPolicyName] = base64.StdEncoding.EncodeToString(policyBuf) m[iamPolicyClaimNameSA()] = embeddedPolicyType } else { m[iamPolicyClaimNameSA()] = inheritedPolicyType } // Add all the necessary claims for the service account. for k, v := range opts.claims { _, ok := m[k] if !ok { m[k] = v
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Oct 29 16:01:48 UTC 2024 - 74.6K bytes - Viewed (0) -
cmd/utils.go
return globalMinioModeErasureSD default: return globalMinioModeFS } } func iamPolicyClaimNameOpenID() string { return globalIAMSys.OpenIDConfig.GetIAMPolicyClaimName() } func iamPolicyClaimNameSA() string { return "sa-policy" } // On MinIO a directory object is stored as a regular object with "__XLDIR__" suffix. // For ex. "prefix/" is stored as "prefix__XLDIR__"
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Aug 13 22:22:04 UTC 2024 - 31.9K bytes - Viewed (0) -
cmd/iam-store.go
// sessionPolicy is nil and there is embedded policy attached we remove // embedded policy at that point. if _, ok := m.Lookup(policy.SessionPolicyName); ok && nosp { m.Delete(policy.SessionPolicyName) m.Set(iamPolicyClaimNameSA(), inheritedPolicyType) } if opts.sessionPolicy != nil { // session policies is being updated if err := opts.sessionPolicy.Validate(); err != nil { return updatedAt, err }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Oct 14 16:35:37 UTC 2024 - 83.2K bytes - Viewed (0)