Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for permitRootAccess (0.21 sec)

  1. cmd/server-startup-msg.go

    	// Colorize the message and print.
    	logger.Info(color.Blue("API: ") + color.Bold(fmt.Sprintf("%s ", apiEndpointStr)))
    	if color.IsTerminal() && (!globalServerCtxt.Anonymous && !globalServerCtxt.JSON && globalAPIConfig.permitRootAccess()) {
    		logger.Info(color.Blue("   RootUser: ") + color.Bold("%s ", cred.AccessKey))
    		logger.Info(color.Blue("   RootPass: ") + color.Bold("%s \n", cred.SecretKey))
    		if region != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  2. cmd/jwt.go

    			if cred.IsTemp() && cred.IsExpired() {
    				return nil, errInvalidAccessKeyID
    			}
    			return []byte(cred.SecretKey), nil
    		} // this means claims.AccessKey == rootAccessKey
    		if !globalAPIConfig.permitRootAccess() {
    			// if root access is disabled, fail this request.
    			return nil, errAccessKeyDisabled
    		}
    		return []byte(globalActiveCred.SecretKey), nil
    	}); err != nil {
    		return claims, nil, false, errAuthentication
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  3. cmd/handler-api.go

    	defer t.mu.RUnlock()
    
    	return t.enableODirect
    }
    
    func (t *apiConfig) shouldGzipObjects() bool {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	return t.gzipObjects
    }
    
    func (t *apiConfig) permitRootAccess() bool {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	return t.rootAccess
    }
    
    func (t *apiConfig) getListQuorum() string {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	if t.listQuorum == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 10K bytes
    - Viewed (0)
  4. cmd/config-current.go

    // a KMS is configured, no manual credentials have been specified and if root
    // access is disabled.
    func autoGenerateRootCredentials() {
    	if GlobalKMS == nil {
    		return
    	}
    	if globalAPIConfig.permitRootAccess() || !globalActiveCred.Equal(auth.DefaultCredentials) {
    		return
    	}
    
    	if manager, ok := GlobalKMS.(kms.KeyManager); ok {
    		stat, err := GlobalKMS.Stat(GlobalContext)
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
Back to top