Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for globalIsTLS (0.23 sec)

  1. cmd/generic-handlers_test.go

    }
    
    func TestSSETLSHandler(t *testing.T) {
    	defer func(isSSL bool) { globalIsTLS = isSSL }(globalIsTLS) // reset globalIsTLS after test
    
    	var okHandler http.HandlerFunc = func(w http.ResponseWriter, r *http.Request) {
    		w.WriteHeader(http.StatusOK)
    	}
    	for i, test := range sseTLSHandlerTests {
    		globalIsTLS = test.IsTLS
    
    		w := httptest.NewRecorder()
    		r := new(http.Request)
    		r.Header = test.Header
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. cmd/net.go

    		ipList = append(ipList, mustGetLocalIP6().ToSlice()...)
    	} else {
    		ipList = []string{globalMinioConsoleHost}
    	}
    
    	for _, ip := range ipList {
    		endpoint := fmt.Sprintf("%s://%s", getURLScheme(globalIsTLS), net.JoinHostPort(ip, globalMinioConsolePort))
    		consoleEndpoints = append(consoleEndpoints, endpoint)
    	}
    
    	return consoleEndpoints
    }
    
    func getAPIEndpoints() (apiEndpoints []string) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Mar 26 15:00:38 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  4. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 32.7K bytes
    - Viewed (1)
  5. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  6. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Sep 24 04:17:08 GMT 2022
    - 19.9K bytes
    - Viewed (0)
  7. cmd/ftp-server.go

    			port = 8021 // Default FTP port, since no port was given.
    		}
    	}
    
    	// If no TLS certs were provided, server is running in TLS for S3 API
    	// we automatically make FTP also run under TLS mode.
    	if globalIsTLS && tlsPrivateKey == "" && tlsPublicCert == "" {
    		tlsPrivateKey = getPrivateKeyFile()
    		tlsPublicCert = getPublicCertFile()
    	}
    
    	tls := tlsPrivateKey != "" && tlsPublicCert != ""
    
    	name := "MinIO FTP Server"
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 4.8K bytes
    - Viewed (2)
  8. cmd/speedtest.go

    			} else {
    				// Use dperf on only formatted drives.
    				ignoredPaths = append(ignoredPaths, lp)
    			}
    		}
    		return tmpPaths
    	}()
    
    	scheme := "http"
    	if globalIsTLS {
    		scheme = "https"
    	}
    
    	u := &url.URL{
    		Scheme: scheme,
    		Host:   globalLocalNodeName,
    	}
    
    	perfs, err := perf.Run(ctx, paths...)
    	return madmin.DriveSpeedTestResult{
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 28 18:04:17 GMT 2024
    - 9K bytes
    - Viewed (0)
  9. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  10. 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 Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
Back to top