Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for owner (0.14 sec)

  1. cmd/auth-handler.go

    	s3Err = authenticateRequest(ctx, r, action)
    	reqInfo := logger.GetReqInfo(ctx)
    	if reqInfo == nil {
    		return cred, owner, ErrAccessDenied
    	}
    
    	cred = reqInfo.Cred
    	owner = reqInfo.Owner
    	if s3Err != ErrNone {
    		return cred, owner, s3Err
    	}
    
    	return cred, owner, authorizeRequest(ctx, r, action)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  2. cmd/metrics.go

    func AuthMiddleware(h http.Handler) http.Handler {
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    
    		claims, groups, owner, authErr := metricsRequestAuthenticate(r)
    		if authErr != nil || (claims != nil && !claims.VerifyIssuer("prometheus", true)) {
    			if ok {
    				tc.FuncName = "handler.MetricsAuth"
    				tc.ResponseRecorder.LogErrBody = true
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 02 06:48:36 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  3. cmd/api-response.go

    	LastModified string   // time string of format "2006-01-02T15:04:05.000Z"
    	ETag         string   // md5sum of the copied object part.
    }
    
    // Initiator inherit from Owner struct, fields are same
    type Initiator Owner
    
    // Owner - bucket owner/principal
    type Owner struct {
    	ID          string
    	DisplayName string
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  4. cmd/server_test.go

    				"<Key>foo &#x1; bar</Key>",
    				fmt.Sprintf("<Owner><ID>%s</ID><DisplayName>minio</DisplayName></Owner>", globalMinioDefaultOwnerID),
    			},
    		},
    		{
    			getListObjectsV2URL(s.endPoint, bucketName, "", "1000", "true", ""),
    			[]string{
    				"<Key>foo bar 1</Key>",
    				"<Key>foo bar 2</Key>",
    				"<Key>foo &#x1; bar</Key>",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  5. cmd/local-locker_gen.go

    				return
    			}
    		case "Group":
    			z.Group, err = dc.ReadBool()
    			if err != nil {
    				err = msgp.WrapError(err, "Group")
    				return
    			}
    		case "Owner":
    			z.Owner, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "Owner")
    				return
    			}
    		case "Quorum":
    			z.Quorum, err = dc.ReadInt()
    			if err != nil {
    				err = msgp.WrapError(err, "Quorum")
    				return
    			}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 21 17:21:35 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  6. cmd/bucket-object-lock.go

    				objRetention.Mode, byPassSet, r, cred,
    				owner)
    			if apiErr == ErrAccessDenied {
    				return errAuthentication
    			}
    			return nil
    		}
    
    		switch ret.Mode {
    		case objectlock.RetGovernance:
    			govPerm := isPutRetentionAllowed(oi.Bucket, oi.Name, days,
    				objRetention.RetainUntilDate.Time, objRetention.Mode,
    				byPassSet, r, cred, owner)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  7. cmd/globals.go

    const (
    	GlobalMinioDefaultPort = "9000"
    
    	globalMinioDefaultRegion = ""
    	// This is a sha256 output of ``arn:aws:iam::minio:user/admin``,
    	// this is kept in present form to be compatible with S3 owner ID
    	// requirements -
    	//
    	// ```
    	//    The canonical user ID is the Amazon S3–only concept.
    	//    It is 64-character obfuscated version of the account ID.
    	// ```
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  8. cmd/signature-v4-utils_test.go

    		t.Fatal(err)
    	}
    
    	_, owner, s3Err := checkKeyValid(req, globalActiveCred.AccessKey)
    	if s3Err != ErrNone {
    		t.Fatalf("Unexpected failure with %v", errorCodes.ToAPIErr(s3Err))
    	}
    
    	if !owner {
    		t.Fatalf("Expected owner to be 'true', found %t", owner)
    	}
    
    	_, _, s3Err = checkKeyValid(req, "does-not-exist")
    	if s3Err != ErrInvalidAccessKeyID {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 14.3K bytes
    - Viewed (0)
  9. cmd/object-handlers.go

    		return
    	}
    
    	objectAPI := api.ObjectAPI()
    	if objectAPI == nil {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return
    	}
    
    	cred, owner, s3Err := validateSignature(getRequestAuthType(r), r)
    	if s3Err != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Err), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  10. internal/logger/reqinfo.go

    	Objects      []ObjectVersion  `json:",omitempty"` // Only set during MultiObject delete handler.
    	Cred         auth.Credentials `json:"-"`
    	Region       string           `json:"-"`
    	Owner        bool             `json:"-"`
    	AuthType     string           `json:"-"`
    	tags         []KeyVal         // Any additional info not accommodated by above fields
    	sync.RWMutex
    }
    
    // NewReqInfo :
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top