Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for globalIsTLS (0.17 sec)

  1. cmd/encryption-v1_test.go

    			xhttp.AmzServerSideEncryptionCustomerKey: "XAm0dRrJsEsyPb1UuFNezv1bl9hxuYsgUVC/MUctE2k=",
    		},
    	},
    }
    
    func TestEncryptRequest(t *testing.T) {
    	defer func(flag bool) { globalIsTLS = flag }(globalIsTLS)
    	globalIsTLS = true
    	for i, test := range encryptRequestTests {
    		content := bytes.NewReader(make([]byte, 64))
    		req := &http.Request{Header: http.Header{}}
    		for k, v := range test.header {
    			req.Header.Set(k, v)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  2. cmd/server-main.go

    	// Is distributed setup, error out if no certificates are found for HTTPS endpoints.
    	if globalIsDistErasure {
    		if globalEndpoints.HTTPS() && !globalIsTLS {
    			logger.Fatal(config.ErrNoCertsAndHTTPSEndpoints(nil), "Unable to start the server")
    		}
    		if !globalEndpoints.HTTPS() && globalIsTLS {
    			logger.Fatal(config.ErrCertsAndHTTPEndpoints(nil), "Unable to start the server")
    		}
    	}
    
    	// Check for updates in non-blocking manner.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
  3. cmd/ftp-server-driver.go

    		} else {
    			mcreds = credentials.NewStaticV4(sa.Credentials.AccessKey, sa.Credentials.SecretKey, "")
    		}
    
    		return minio.New(driver.endpoint, &minio.Options{
    			Creds:     mcreds,
    			Secure:    globalIsTLS,
    			Transport: globalRemoteFTPClientTransport,
    		})
    	}
    
    	// ok == true - at this point
    
    	if ui.Credentials.IsTemp() {
    		// Temporary credentials are not allowed.
    		return nil, errAuthentication
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  4. cmd/sftp-server-driver.go

    		} else {
    			mcreds = credentials.NewStaticV4(sa.Credentials.AccessKey, sa.Credentials.SecretKey, "")
    		}
    
    		return minio.New(f.endpoint, &minio.Options{
    			Creds:     mcreds,
    			Secure:    globalIsTLS,
    			Transport: globalRemoteFTPClientTransport,
    		})
    	}
    
    	// ok == true - at this point
    
    	if ui.Credentials.IsTemp() {
    		// Temporary credentials are not allowed.
    		return nil, errAuthentication
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  5. cmd/generic-handlers.go

    				writeErrorResponse(r.Context(), w, errorCodes.ToAPIErr(ErrInvalidBucketName), r.URL)
    				return
    			}
    		}
    		// Deny SSE-C requests if not made over TLS
    		if !globalIsTLS && (crypto.SSEC.IsRequested(r.Header) || crypto.SSECopy.IsRequested(r.Header)) {
    			if r.Method == http.MethodHead {
    				if ok {
    					tc.FuncName = "handler.ValidRequest"
    					tc.ResponseRecorder.LogErrBody = false
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  6. cmd/object-lambda-handlers.go

    	"github.com/minio/minio/internal/logger"
    )
    
    func getLambdaEventData(bucket, object string, cred auth.Credentials, r *http.Request) (levent.Event, error) {
    	host := globalLocalNodeName
    	secure := globalIsTLS
    	if globalMinioEndpointURL != nil {
    		host = globalMinioEndpointURL.Host
    		secure = globalMinioEndpointURL.Scheme == "https"
    	}
    
    	duration := time.Until(cred.Expiration)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  7. cmd/common-main.go

    		// This will save users from providing a certificate with IP or FQDN SAN that points to the local host.
    		os.Setenv("CONSOLE_MINIO_SERVER", fmt.Sprintf("%s://127.0.0.1:%s", getURLScheme(globalIsTLS), globalMinioPort))
    	}
    	if value := env.Get(config.EnvMinIOLogQueryURL, ""); value != "" {
    		os.Setenv("CONSOLE_LOG_QUERY_URL", value)
    		if value := env.Get(config.EnvMinIOLogQueryAuthToken, ""); value != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat May 04 00:17:57 GMT 2024
    - 35.8K bytes
    - Viewed (2)
  8. cmd/handler-utils.go

    			success = false
    			if err != nil && !errors.Is(err, context.Canceled) {
    				replLogIf(GlobalContext, err)
    			}
    		},
    	})
    
    	r.URL.Scheme = "http"
    	if globalIsTLS {
    		r.URL.Scheme = "https"
    	}
    
    	r.URL.Host = ep.Host
    	f.ServeHTTP(w, r)
    	return
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  9. cmd/globals.go

    	globalAuthNPlugin *idplugin.AuthNPlugin
    
    	// CA root certificates, a nil value means system certs pool will be used
    	globalRootCAs *x509.CertPool
    
    	// IsSSL indicates if the server is configured with SSL.
    	globalIsTLS bool
    
    	globalTLSCerts *certs.Manager
    
    	globalHTTPServer        *xhttp.Server
    	globalTCPOptions        xhttp.TCPOptions
    	globalHTTPServerErrorCh = make(chan error)
    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)
  10. cmd/notification.go

    	length := len(sys.allPeerClients)
    	if length == 0 {
    		// For single node erasure setup.
    		return nil
    	}
    	results := make([]madmin.NetperfNodeResult, length)
    
    	scheme := "http"
    	if globalIsTLS {
    		scheme = "https"
    	}
    
    	var wg sync.WaitGroup
    	for index := range sys.peerClients {
    		if sys.peerClients[index] == nil {
    			continue
    		}
    		wg.Add(1)
    		go func(index int) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
Back to top