Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for loadSecretKey (0.09 sec)

  1. cmd/iam-etcd-store.go

    		u.Credentials.Claims = jwtClaims.Map()
    	}
    	if u.Credentials.Description == "" {
    		u.Credentials.Description = u.Credentials.Comment
    	}
    
    	m[user] = u
    	return nil
    }
    
    func (ies *IAMEtcdStore) loadSecretKey(ctx context.Context, user string, userType IAMUserType) (string, error) {
    	var u UserIdentity
    	err := ies.loadIAMConfig(ctx, &u, getUserIdentityPath(user, userType))
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. cmd/iam-object-store.go

    		policyName := path.Dir(item.Item)
    		if err := iamOS.loadPolicyDoc(ctx, policyName, m); err != nil && !errors.Is(err, errNoSuchPolicy) {
    			return err
    		}
    	}
    	return nil
    }
    
    func (iamOS *IAMObjectStore) loadSecretKey(ctx context.Context, user string, userType IAMUserType) (string, error) {
    	var u UserIdentity
    	err := iamOS.loadIAMConfig(ctx, &u, getUserIdentityPath(user, userType))
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    	loadPolicyDocs(ctx context.Context, m map[string]PolicyDoc) error
    	loadUser(ctx context.Context, user string, userType IAMUserType, m map[string]UserIdentity) error
    	loadSecretKey(ctx context.Context, user string, userType IAMUserType) (string, error)
    	loadUsers(ctx context.Context, userType IAMUserType, m map[string]UserIdentity) error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  4. cmd/site-replication.go

    	s.RLock()
    	secretKey := s.secretKey
    	s.RUnlock()
    
    	if secretKey != "" {
    		return secretKey, nil
    	}
    
    	secretKey, err := globalIAMSys.store.loadSecretKey(ctx, siteReplicatorSvcAcc, svcUser)
    	if err != nil {
    		return "", err
    	}
    	s.Set(secretKey)
    	return secretKey, nil
    }
    
    func (s *siteReplicatorCred) Set(secretKey string) {
    	s.Lock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top