Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for canonical (0.31 sec)

  1. cmd/signature-v2.go

    		return false
    	}
    	signature2, err := base64.StdEncoding.DecodeString(sig2)
    	if err != nil {
    		return false
    	}
    	return subtle.ConstantTimeCompare(signature1, signature2) == 1
    }
    
    // Return canonical headers.
    func canonicalizedAmzHeadersV2(headers http.Header) string {
    	var keys []string
    	keyval := make(map[string]string, len(headers))
    	for key := range headers {
    		lkey := strings.ToLower(key)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  2. istioctl/pkg/tag/generate.go

    		len(revWebhookCollisions) > 0 && opts.Tag != DefaultRevisionName {
    		return "", fmt.Errorf("cannot create revision tag %q: found existing control plane revision with same name", opts.Tag)
    	}
    
    	// find canonical revision webhook to base our tag webhook off of
    	revWebhooks, err := GetWebhooksWithRevision(ctx, client.Kube(), opts.Revision)
    	if err != nil {
    		return "", err
    	}
    	if len(revWebhooks) == 0 {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. cmd/streaming-signature-v4.go

    		return cred, "", "", time.Time{}, ErrMalformedDate
    	}
    
    	// Query string.
    	queryStr := req.Form.Encode()
    
    	// Get canonical request.
    	canonicalRequest := getCanonicalRequest(extractedSignedHeaders, payload, queryStr, req.URL.Path, req.Method)
    
    	// Get string to sign from canonical request.
    	stringToSign := getStringToSign(canonicalRequest, date, signV4Values.Credential.getScope())
    
    	// Get hmac signing key.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  4. cmd/signature-v4-utils.go

    		// deployment has asked MinIO to allow for
    		// such broken clients and content-length > 0.
    		return r.ContentLength > 0 && !globalServerCtxt.StrictS3Compat
    	}
    	return false
    }
    
    // Returns SHA256 for calculating canonical-request.
    func getContentSha256Cksum(r *http.Request, stype serviceType) string {
    	if stype == serviceSTS {
    		payload, err := io.ReadAll(io.LimitReader(r.Body, stsRequestBodyLimit))
    		if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  5. internal/crypto/key.go

    		encryptedKey bytes.Buffer
    	)
    	mac := hmac.New(sha256.New, extKey)
    	mac.Write(iv[:])
    	mac.Write([]byte(domain))
    	mac.Write([]byte(SealAlgorithm))
    	mac.Write([]byte(path.Join(bucket, object))) // use path.Join for canonical 'bucket/object'
    	mac.Sum(sealingKey[:0])
    	if n, err := sio.Encrypt(&encryptedKey, bytes.NewReader(key[:]), sio.Config{Key: sealingKey[:], CipherSuites: fips.DARECiphers()}); n != 64 || err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 19 20:28:10 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  6. istioctl/pkg/workload/workload.go

    	md := meshConfig.DefaultConfig.ProxyMetadata
    	if md == nil {
    		md = map[string]string{}
    		meshConfig.DefaultConfig.ProxyMetadata = md
    	}
    	md["CANONICAL_SERVICE"], md["CANONICAL_REVISION"] = labels.CanonicalService(lbls, wg.Name)
    	md["POD_NAMESPACE"] = wg.Namespace
    	md["SERVICE_ACCOUNT"] = we.ServiceAccount
    	md["TRUST_DOMAIN"] = meshConfig.TrustDomain
    
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Apr 17 20:06:41 GMT 2024
    - 25.5K bytes
    - Viewed (0)
  7. cmd/signature-v4.go

    		return ErrInvalidToken
    	}
    
    	// Verify finally if signature is same.
    
    	// Get canonical request.
    	presignedCanonicalReq := getCanonicalRequest(extractedSignedHeaders, hashedPayload, encodedQuery, req.URL.Path, req.Method)
    
    	// Get string to sign from canonical request.
    	presignedStringToSign := getStringToSign(presignedCanonicalReq, t, pSignValues.Credential.getScope())
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  8. istioctl/pkg/validate/validate_test.go

    spec:
      replicas: 1
    `
    	validIstioCanonical = `
    apiVersion: v1
    kind: Deployment
    metadata:
      name: helloworld-v1
      labels:
        service.istio.io/canonical-name: helloworld
        service.istio.io/canonical-revision: v1
    spec:
      replicas: 1
    `
    )
    
    func fromYAML(in string) *unstructured.Unstructured {
    	var un unstructured.Unstructured
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Jul 25 08:08:36 GMT 2023
    - 21.5K bytes
    - Viewed (0)
  9. internal/kms/context.go

    // generated DEK such that the same context must be
    // provided when decrypting an encrypted DEK.
    type Context map[string]string
    
    // MarshalText returns a canonical text representation of
    // the Context.
    
    // MarshalText sorts the context keys and writes the sorted
    // key-value pairs as canonical JSON object. The sort order
    // is based on the un-escaped keys. It never returns an error.
    func (c Context) MarshalText() ([]byte, error) {
    	if len(c) == 0 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 6K bytes
    - Viewed (0)
  10. cmd/test-utils_test.go

    	canonicalHeaders := buf.String()
    
    	// Get signed headers.
    	signedHeaders := strings.Join(headers, ";")
    
    	// Get canonical query string.
    	req.URL.RawQuery = strings.ReplaceAll(req.URL.Query().Encode(), "+", "%20")
    
    	// Get canonical URI.
    	canonicalURI := s3utils.EncodePath(req.URL.Path)
    
    	// Get canonical request.
    	// canonicalRequest =
    	//  <HTTPMethod>\n
    	//  <CanonicalURI>\n
    	//  <CanonicalQueryString>\n
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
Back to top