Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for validateAdminReq (0.22 sec)

  1. cmd/admin-handlers-pools.go

    )
    
    func (a adminAPIHandlers) StartDecommission(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.DecommissionAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	// Legacy args style such as non-ellipses style is not supported with this API.
    	if globalEndpoints.Legacy() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/admin-handlers-config-kv.go

    )
    
    // DelConfigKVHandler - DELETE /minio/admin/v3/del-config-kv
    func (a adminAPIHandlers) DelConfigKVHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.ConfigUpdateAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	if r.ContentLength > maxEConfigJSONSize || r.ContentLength == -1 {
    		// More than maxConfigSize bytes were available
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  3. cmd/kms-handlers.go

    func (a kmsAPIHandlers) KMSStatusHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "KMSStatus")
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.KMSStatusAction)
    	if objectAPI == nil {
    		return
    	}
    
    	if GlobalKMS == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  4. cmd/admin-handlers-site-replication.go

    )
    
    // SiteReplicationAdd - PUT /minio/admin/v3/site-replication/add
    func (a adminAPIHandlers) SiteReplicationAdd(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.SiteReplicationAddAction)
    	if objectAPI == nil {
    		return
    	}
    
    	var sites []madmin.PeerSite
    	if err := parseJSONBody(ctx, r.Body, &sites, cred.SecretKey); err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 09:40:39 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  5. cmd/tier-handlers.go

    		StatusCode: http.StatusBadRequest,
    	}
    )
    
    func (api adminAPIHandlers) AddTierHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objAPI, cred := validateAdminReq(ctx, w, r, policy.SetTierAction)
    	if objAPI == nil {
    		return
    	}
    
    	password := cred.SecretKey
    	reqBytes, err := madmin.DecryptData(password, io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 15 19:52:44 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  6. cmd/admin-handlers.go

    	}
    
    	var objectAPI ObjectLayer
    	switch serviceSig {
    	case serviceRestart:
    		objectAPI, _ = validateAdminReq(ctx, w, r, policy.ServiceRestartAdminAction)
    	case serviceStop:
    		objectAPI, _ = validateAdminReq(ctx, w, r, policy.ServiceStopAdminAction)
    	case serviceFreeze, serviceUnFreeze:
    		objectAPI, _ = validateAdminReq(ctx, w, r, policy.ServiceFreezeAdminAction)
    	}
    	if objectAPI == nil {
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  7. cmd/admin-bucket-handlers.go

    // to enforce total quota for the specified bucket.
    func (a adminAPIHandlers) PutBucketQuotaConfigHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.SetBucketQuotaAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := pathClean(vars["bucket"])
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  8. cmd/admin-handlers-idp-config.go

    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/ldap"
    	"github.com/minio/pkg/v2/policy"
    )
    
    func addOrUpdateIDPHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, isUpdate bool) {
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.ConfigUpdateAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	if r.ContentLength > maxEConfigJSONSize || r.ContentLength == -1 {
    		// More than maxConfigSize bytes were available
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  9. cmd/admin-handlers-users.go

    )
    
    // RemoveUser - DELETE /minio/admin/v3/remove-user?accessKey=<access_key>
    func (a adminAPIHandlers) RemoveUser(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.DeleteUserAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	vars := mux.Vars(r)
    	accessKey := vars["accessKey"]
    
    	ok, _, err := globalIAMSys.IsTempUser(accessKey)
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 15:15:02 GMT 2024
    - 76K bytes
    - Viewed (0)
  10. cmd/admin-handler-utils.go

    	"github.com/minio/pkg/v2/policy"
    )
    
    // validateAdminReq will validate request against and return whether it is allowed.
    // If any of the supplied actions are allowed it will be successful.
    // If nil ObjectLayer is returned, the operation is not permitted.
    // When nil ObjectLayer has been returned an error has always been sent to w.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 8.2K bytes
    - Viewed (0)
Back to top