Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RemoveSensitiveHeaders (0.43 sec)

  1. internal/crypto/header.go

    	"bytes"
    	"crypto/md5"
    	"encoding/base64"
    	"net/http"
    
    	xhttp "github.com/minio/minio/internal/http"
    )
    
    // RemoveSensitiveHeaders removes confidential encryption
    // information - e.g. the SSE-C key - from the HTTP headers.
    // It has the same semantics as RemoveSensitiveEntries.
    func RemoveSensitiveHeaders(h http.Header) {
    	h.Del(xhttp.AmzServerSideEncryptionCustomerKey)
    	h.Del(xhttp.AmzServerSideEncryptionCopyCustomerKey)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. internal/crypto/metadata.go

    		return true
    	}
    	return false
    }
    
    // RemoveSensitiveEntries removes confidential encryption
    // information - e.g. the SSE-C key - from the metadata map.
    // It has the same semantics as RemoveSensitiveHeaders.
    func RemoveSensitiveEntries(metadata map[string]string) { // The functions is tested in TestRemoveSensitiveHeaders for compatibility reasons
    	delete(metadata, xhttp.AmzServerSideEncryptionCustomerKey)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  3. cmd/api-headers.go

    	if region := globalSite.Region; region != "" {
    		w.Header().Set(xhttp.AmzBucketRegion, region)
    	}
    	w.Header().Set(xhttp.AcceptRanges, "bytes")
    
    	// Remove sensitive information
    	crypto.RemoveSensitiveHeaders(w.Header())
    }
    
    // Encodes the response headers into XML format.
    func encodeResponse(response interface{}) []byte {
    	var buf bytes.Buffer
    	buf.WriteString(xml.Header)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
Back to top