Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for sitemap (0.24 sec)

  1. cmd/iam-store.go

    	// Load existing policy mapping
    	var mp MappedPolicy
    	if !isGroup {
    		if userType == stsUser {
    			stsMap := xsync.NewMapOf[string, MappedPolicy]()
    
    			// Attempt to load parent user mapping for STS accounts
    			store.loadMappedPolicy(context.TODO(), name, stsUser, false, stsMap)
    
    			mp, _ = stsMap.Load(name)
    		} else {
    			mp, _ = cache.iamUserPolicyMap.Load(name)
    		}
    	} else {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  2. cmd/sftp-server-driver.go

    		return minio.New(f.endpoint, &minio.Options{
    			Creds:     mcreds,
    			Secure:    globalIsTLS,
    			Transport: globalRemoteFTPClientTransport,
    		})
    	}
    
    	// ok == true - at this point
    
    	if ui.Credentials.IsTemp() {
    		// Temporary credentials are not allowed.
    		return nil, errAuthentication
    	}
    
    	return minio.New(f.endpoint, &minio.Options{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  3. cmd/sts-handlers.go

    	if s3Err != ErrNone {
    		return auth.Credentials{}, s3Err
    	}
    
    	// Temporary credentials or Service accounts cannot generate further temporary credentials.
    	if user.IsTemp() || user.IsServiceAccount() {
    		return auth.Credentials{}, ErrAccessDenied
    	}
    
    	// Session tokens are not allowed in STS AssumeRole requests.
    	if getSessionToken(r) != "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 18:36:18 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  4. cmd/admin-handlers-users.go

    	user, exists := globalIAMSys.GetUser(ctx, accessKey)
    	if exists && (user.Credentials.IsTemp() || user.Credentials.IsServiceAccount()) {
    		// Updating STS credential is not allowed, and this API does not
    		// support updating service accounts.
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAddUserInvalidArgument), r.URL)
    		return
    	}
    
    	if (cred.IsTemp() || cred.IsServiceAccount()) && cred.ParentUser == accessKey {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 77.3K bytes
    - Viewed (0)
  5. cmd/admin-handlers-idp-ldap.go

    	// account or STS account):
    	requestorUser := cred.AccessKey
    	requestorParentUser := cred.AccessKey
    	requestorGroups := cred.Groups
    	requestorIsDerivedCredential := false
    	if cred.IsServiceAccount() || cred.IsTemp() {
    		requestorParentUser = cred.ParentUser
    		requestorIsDerivedCredential = true
    	}
    
    	// Check if we are creating svc account for request sender.
    	isSvcAccForRequestor := false
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  6. tests/create_test.go

    	data := []User{}
    	if err := DB.Create(&data).Error; err != gorm.ErrEmptySlice {
    		t.Errorf("no data should be created, got %v", err)
    	}
    
    	sliceMap := []map[string]interface{}{}
    	if err := DB.Model(&User{}).Create(&sliceMap).Error; err != gorm.ErrEmptySlice {
    		t.Errorf("no data should be created, got %v", err)
    	}
    }
    
    func TestCreateInvalidSlice(t *testing.T) {
    	users := []*User{
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Mar 19 03:50:28 GMT 2024
    - 26.4K bytes
    - Viewed (0)
  7. internal/auth/credentials.go

    	if cred.Expiration.IsZero() || cred.Expiration.Equal(timeSentinel) {
    		return false
    	}
    
    	return cred.Expiration.Before(time.Now().UTC())
    }
    
    // IsTemp - returns whether credential is temporary or not.
    func (cred Credentials) IsTemp() bool {
    	return cred.SessionToken != "" && !cred.Expiration.IsZero() && !cred.Expiration.Equal(timeSentinel)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. cmd/jwt.go

    				if u.Credentials.Status == auth.AccountOff {
    					return nil, errAccessKeyDisabled
    				}
    				return nil, errInvalidAccessKeyID
    			}
    			cred := u.Credentials
    			// Expired credentials return error.
    			if cred.IsTemp() && cred.IsExpired() {
    				return nil, errInvalidAccessKeyID
    			}
    			return []byte(cred.SecretKey), nil
    		} // this means claims.AccessKey == rootAccessKey
    		if !globalAPIConfig.permitRootAccess() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  9. cmd/ftp-server-driver.go

    			Creds:     mcreds,
    			Secure:    globalIsTLS,
    			Transport: globalRemoteFTPClientTransport,
    		})
    	}
    
    	// ok == true - at this point
    
    	if ui.Credentials.IsTemp() {
    		// Temporary credentials are not allowed.
    		return nil, errAuthentication
    	}
    
    	return minio.New(driver.endpoint, &minio.Options{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  10. cmd/iam-object-store.go

    	}
    
    	if u.Credentials.AccessKey == "" {
    		u.Credentials.AccessKey = user
    	}
    
    	if u.Credentials.SessionToken != "" {
    		jwtClaims, err := extractJWTClaims(u)
    		if err != nil {
    			if u.Credentials.IsTemp() {
    				// We should delete such that the client can re-request
    				// for the expiring credentials.
    				iamOS.deleteIAMConfig(ctx, getUserIdentityPath(user, userType))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
Back to top