Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for IsEnabled (0.52 sec)

  1. cmd/site-replication-utils.go

    func (sm *siteResyncMetrics) save(ctx context.Context) {
    	sTimer := time.NewTimer(siteResyncSaveInterval)
    	defer sTimer.Stop()
    	for {
    		select {
    		case <-sTimer.C:
    			if globalSiteReplicationSys.isEnabled() {
    				sm.Lock()
    				wg := sync.WaitGroup{}
    				for dID, rs := range sm.peerResyncMap {
    					st, ok := sm.resyncStatus[rs.resyncID]
    					if ok {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    	if err = objectAPI.MakeBucket(ctx, bucketName, MakeBucketOptions{VersioningEnabled: globalSiteReplicationSys.isEnabled()}); err != nil {
    		if _, ok := err.(BucketExists); !ok {
    			// Only BucketExists error can be ignored.
    			return false, err
    		}
    		bucketExists = true
    	}
    
    	if globalSiteReplicationSys.isEnabled() {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
  3. cmd/generic-handlers.go

    func setUploadForwardingMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		if !globalSiteReplicationSys.isEnabled() ||
    			guessIsHealthCheckReq(r) || guessIsMetricsReq(r) ||
    			guessIsRPCReq(r) || guessIsLoginSTSReq(r) || isAdminReq(r) {
    			h.ServeHTTP(w, r)
    			return
    		}
    
    		bucket, object := request2BucketObjectName(r)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 20.7K bytes
    - Viewed (1)
  4. cmd/site-replication.go

    	if err == nil {
    		return nil
    	}
    	return fmt.Errorf("%s->%s: %s: %w", c.state.Name, dstPeer, annotation, err)
    }
    
    // isEnabled returns true if site replication is enabled
    func (c *SiteReplicationSys) isEnabled() bool {
    	c.RLock()
    	defer c.RUnlock()
    	return c.enabled
    }
    
    var errMissingSRConfig = fmt.Errorf("unable to find site replication configuration")
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 184.7K bytes
    - Viewed (0)
  5. cmd/metrics-v2.go

    				if globalAuthNPlugin == nil {
    					return []MetricV2{}, nil
    				}
    			}
    			if g.metricsGroupOpts.dependGlobalSiteReplicationSys {
    				if !globalSiteReplicationSys.isEnabled() {
    					return []MetricV2{}, nil
    				}
    			}
    			if g.metricsGroupOpts.dependGlobalNotificationSys {
    				if globalNotificationSys == nil {
    					return []MetricV2{}, nil
    				}
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 133.4K bytes
    - Viewed (0)
  6. cmd/auth-handler.go

    	if cred.IsTemp() && cred.IsExpired() {
    		return nil, toAPIErrorCode(r.Context(), errInvalidAccessKeyID)
    	}
    	secret := globalActiveCred.SecretKey
    	if globalSiteReplicationSys.isEnabled() && cred.AccessKey != siteReplicatorSvcAcc {
    		nsecret, err := getTokenSigningKey()
    		if err != nil {
    			return nil, toAPIErrorCode(r.Context(), err)
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  7. cmd/bucket-handlers.go

    				if err = globalDNSConfig.Put(bucket); err != nil {
    					objectAPI.DeleteBucket(context.Background(), bucket, DeleteBucketOptions{
    						Force:      true,
    						SRDeleteOp: getSRBucketDeleteOp(globalSiteReplicationSys.isEnabled()),
    					})
    					writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    					return
    				}
    
    				// Load updated bucket metadata into memory.
    				globalNotificationSys.LoadBucketMetadata(GlobalContext, bucket)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.9K bytes
    - Viewed (0)
  8. cmd/sts-handlers.go

    	}
    	return nil
    }
    
    // getTokenSigningKey returns secret key used to sign JWT session tokens
    func getTokenSigningKey() (string, error) {
    	secret := globalActiveCred.SecretKey
    	if globalSiteReplicationSys.isEnabled() {
    		secretKey, err := globalSiteReplicatorCred.Get(GlobalContext)
    		if err != nil {
    			return "", err
    		}
    		return secretKey, nil
    	}
    	return secret, nil
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 36.6K bytes
    - Viewed (0)
  9. cmd/iam-store.go

    	keys := make([]string, 0, 3)
    
    	// Append credentials secret key itself
    	keys = append(keys, u.Credentials.SecretKey)
    
    	// Use site-replication credentials if found
    	if globalSiteReplicationSys.isEnabled() {
    		secretKey, err := getTokenSigningKey()
    		if err != nil {
    			return nil, err
    		}
    		keys = append(keys, secretKey)
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 86.7K bytes
    - Viewed (0)
  10. cmd/admin-handlers-users.go

    	if serviceAccount == "" {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrAdminInvalidArgument), r.URL)
    		return
    	}
    
    	if serviceAccount == siteReplicatorSvcAcc && globalSiteReplicationSys.isEnabled() {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInvalidArgument), r.URL)
    		return
    	}
    	// We do not care if service account is readable or not at this point,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 90.6K bytes
    - Viewed (0)
Back to top