Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newGlobalAuthZPluginFn (0.07 sec)

  1. cmd/iam.go

    func (sys *IAMSys) SetTempUser(ctx context.Context, accessKey string, cred auth.Credentials, policyName string) (time.Time, error) {
    	if !sys.Initialized() {
    		return time.Time{}, errServerNotInitialized
    	}
    
    	if newGlobalAuthZPluginFn() != nil {
    		// If OPA is set, we do not need to set a policy mapping.
    		policyName = ""
    	}
    
    	updatedAt, err := sys.store.SetTempUser(ctx, accessKey, cred, policyName)
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 75.3K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users.go

    	var effectivePolicy policy.Policy
    
    	var buf []byte
    	switch {
    	case accountName == globalActiveCred.AccessKey || newGlobalAuthZPluginFn() != nil:
    		// For owner account and when plugin authZ is configured always set
    		// effective policy as `consoleAdmin`.
    		//
    		// In the latter case, we let the UI render everything, but individual
    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