Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for secrets (0.17 sec)

  1. cmd/common-main.go

    		return nil, err
    	}
    	return ekvs, nil
    }
    
    func readFromSecret(sp string) (string, error) {
    	// Supports reading path from docker secrets, filename is
    	// relative to /run/secrets/ position.
    	if isFile(pathJoin("/run/secrets/", sp)) {
    		sp = pathJoin("/run/secrets/", sp)
    	}
    	credBuf, err := os.ReadFile(sp)
    	if err != nil {
    		if os.IsNotExist(err) { // ignore if file doesn't exist.
    			return "", nil
    		}
    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)
  2. cni/pkg/constants/constants.go

    	ReadinessEndpoint = "/readyz"
    	ReadinessPort     = "8000"
    )
    
    // Exposed for testing constants
    var (
    	CNIBinDir          = "/opt/cni/bin"
    	HostCNIBinDir      = "/host/opt/cni/bin"
    	ServiceAccountPath = "/var/run/secrets/kubernetes.io/serviceaccount"
    	// Well-known subpath we will mount any needed host-mounts under,
    	// to preclude shadowing or breaking any pod-internal mounts
    	HostMountsPath = "/host"
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	// Presign is not needed for anonymous credentials.
    	if accessKeyID == "" || secretAccessKey == "" {
    		return errors.New("Presign cannot be generated without access and secret keys")
    	}
    
    	region := globalSite.Region
    	date := UTCNow()
    	scope := getScope(date, region)
    	credential := fmt.Sprintf("%s/%s", accessKeyID, scope)
    
    	// Set URL query.
    	query := req.URL.Query()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. cmd/site-replication.go

    	// This is not yet implemented.
    
    	// VALIDATIONS COMPLETE.
    
    	// Create a common service account for all clusters, with root
    	// permissions.
    
    	// Create a local service account.
    
    	// Generate a secret key for the service account if not created already.
    	var secretKey string
    	var svcCred auth.Credentials
    	sa, _, err := globalIAMSys.getServiceAccount(ctx, siteReplicatorSvcAcc)
    	switch {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  5. cmd/config-current.go

    		}
    
    		sKey, err := manager.HMAC(GlobalContext, stat.DefaultKey, []byte("root secret key"))
    		if err != nil {
    			// Here, we must have permission. Otherwise, we would have failed earlier.
    			logger.Fatal(err, "Unable to generate root secret key using KMS")
    		}
    
    		accessKey, err := auth.GenerateAccessKey(20, bytes.NewReader(aKey))
    		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)
  6. cmd/iam-store.go

    	if err != nil {
    		secretKey, err := getTokenSigningKey()
    		if err != nil {
    			return nil, err
    		}
    		// Session tokens for STS creds will be generated with root secret or site-replicator-0 secret
    		jwtClaims, err = auth.ExtractClaims(u.Credentials.SessionToken, secretKey)
    		if err != nil {
    			return nil, err
    		}
    	}
    	return jwtClaims, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  7. cmd/api-errors.go

    		Code:           "InvalidArgument",
    		Description:    "The secret key was invalid for the specified algorithm.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    	ErrMissingSSECustomerKey: {
    		Code:           "InvalidArgument",
    		Description:    "Requests specifying Server Side Encryption with Customer provided keys must provide an appropriate secret key.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  8. cmd/object-handlers.go

    }
    
    // CopyObjectHandler - Copy Object
    // ----------
    // This implementation of the PUT operation adds an object to a bucket
    // while reading the object from another source.
    // Notice: The S3 client can send secret keys in headers for encryption related jobs,
    // the handler should ensure to remove these keys before sending them to the object layer.
    // Currently these keys are:
    //   - X-Amz-Server-Side-Encryption-Customer-Key
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    		//     spark.sparkContext.hadoopConfiguration.set("fs.s3a.path.style.access", "true")
    		//     spark.sparkContext.hadoopConfiguration.set("fs.s3a.access.key", "minioadmin")
    		//     spark.sparkContext.hadoopConfiguration.set("fs.s3a.secret.key", "minioadmin")
    		//
    		//     val df = spark.read.json("s3a://testbucket/s3.json")
    		//
    		//     df.write.parquet("s3a://testbucket/parquet/")
    		//   }
    		// }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  10. cmd/sts-handlers.go

    	}
    	return nil
    }
    
    // getTokenSigningKey returns secret key used to sign JWT session tokens
    func getTokenSigningKey() (string, error) {
    	secret := globalActiveCred.SecretKey
    	if globalSiteReplicationSys.isEnabled() {
    		c, err := globalSiteReplicatorCred.Get(GlobalContext)
    		if err != nil {
    			return "", err
    		}
    		return c.SecretKey, nil
    	}
    	return secret, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
Back to top