Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for AddServiceAccount (0.11 sec)

  1. cmd/admin-handlers-users_test.go

    		c.Fatalf("Err creating user admin client: %v", err)
    	}
    	userAdmClient.SetCustomTransport(s.TestSuiteCommon.client.Transport)
    
    	distantExpiration := time.Now().Add(30 * time.Minute)
    	cr, err := userAdmClient.AddServiceAccount(ctx, madmin.AddServiceAccountReq{
    		TargetUser: accessKey,
    		AccessKey:  "svc-accesskey",
    		SecretKey:  "svc-secretkey",
    		Expiration: &distantExpiration,
    	})
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  2. cmd/admin-router.go

    		// Service accounts ops
    		adminRouter.Methods(http.MethodPut).Path(adminVersion + "/add-service-account").HandlerFunc(adminMiddleware(adminAPI.AddServiceAccount))
    		adminRouter.Methods(http.MethodPost).Path(adminVersion+"/update-service-account").HandlerFunc(adminMiddleware(adminAPI.UpdateServiceAccount)).Queries("accessKey", "{accessKey:.*}")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    	}
    
    	if err := cache.updateUserWithClaims(accessKey, uinfo); err != nil {
    		return updatedAt, err
    	}
    
    	return uinfo.UpdatedAt, nil
    }
    
    // AddServiceAccount - add a new service account
    func (store *IAMStoreSys) AddServiceAccount(ctx context.Context, cred auth.Credentials) (updatedAt time.Time, err error) {
    	cache := store.lock()
    	defer store.unlock()
    
    	accessKey := cred.AccessKey
    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/admin-handlers-users.go

    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	writeSuccessResponseJSON(w, encryptedData)
    }
    
    // AddServiceAccount - PUT /minio/admin/v3/add-service-account
    func (a adminAPIHandlers) AddServiceAccount(w http.ResponseWriter, r *http.Request) {
    	ctx, cred, opts, createReq, targetUser, APIError := commonAddServiceAccount(r, false)
    	if APIError.Code != "" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  5. cmd/iam.go

    		if err := validateSvcExpirationInUTC(expirationInUTC); err != nil {
    			return auth.Credentials{}, time.Time{}, err
    		}
    		cred.Expiration = expirationInUTC
    	}
    
    	updatedAt, err := sys.store.AddServiceAccount(ctx, cred)
    	if err != nil {
    		return auth.Credentials{}, time.Time{}, err
    	}
    
    	sys.notifyForServiceAccount(ctx, cred.AccessKey)
    	return cred, updatedAt, nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  6. cmd/sts-handlers_test.go

       "Effect": "Allow",
       "Action": [
        "s3:PutObject",
        "s3:GetObject"
       ],
       "Resource": [
        "arn:aws:s3:::%s/*"
       ]
      }
     ]
    }`, bucket))
    		cr, err := userAdmClient.AddServiceAccount(ctx, madmin.AddServiceAccountReq{
    			Policy:     policyBytes,
    			TargetUser: value.AccessKeyID,
    			AccessKey:  svcAK,
    			SecretKey:  svcSK,
    		})
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 23:40:37 UTC 2024
    - 97.1K bytes
    - Viewed (0)
Back to top