Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for generateKeys (0.12 sec)

  1. cmd/kms-handlers.go

    		return
    	}
    
    	kmsContext := kms.Context{"MinIO admin API": "KMSKeyStatusHandler"} // Context for a test key operation
    	// 1. Generate a new key using the KMS.
    	key, err := GlobalKMS.GenerateKey(ctx, &kms.GenerateKeyRequest{Name: keyID, AssociatedData: kmsContext})
    	if err != nil {
    		response.EncryptionErr = err.Error()
    		resp, err := json.Marshal(response)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Aug 18 06:43:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. cmd/bucket-encryption-handlers.go

    		return
    	}
    	kmsKey := encConfig.KeyID()
    	if kmsKey != "" {
    		kmsContext := kms.Context{"MinIO admin API": "ServerInfoHandler"} // Context for a test key operation
    		_, err := GlobalKMS.GenerateKey(ctx, &kms.GenerateKeyRequest{Name: kmsKey, AssociatedData: kmsContext})
    		if err != nil {
    			if errors.Is(err, kes.ErrKeyNotFound) {
    				writeErrorResponse(ctx, w, toAPIError(ctx, errKMSKeyNotFound), r.URL)
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. internal/config/crypto.go

    func Encrypt(k *kms.KMS, plaintext io.Reader, ctx kms.Context) (io.Reader, error) {
    	algorithm := sio.AES_256_GCM
    	if !fips.Enabled && !sioutil.NativeAES() {
    		algorithm = sio.ChaCha20Poly1305
    	}
    
    	key, err := k.GenerateKey(context.Background(), &kms.GenerateKeyRequest{AssociatedData: ctx})
    	if err != nil {
    		return nil, err
    	}
    	stream, err := algorithm.Stream(key.Plaintext)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 5K bytes
    - Viewed (0)
  4. cmd/bucket-metadata.go

    	if GlobalKMS == nil {
    		output = input
    		return
    	}
    
    	metadata := make(map[string]string)
    	key, err := GlobalKMS.GenerateKey(ctx, &kms.GenerateKeyRequest{AssociatedData: kmsContext})
    	if err != nil {
    		return
    	}
    
    	outbuf := bytes.NewBuffer(nil)
    	objectKey := crypto.GenerateKey(key.Plaintext, rand.Reader)
    	sealedKey := objectKey.Seal(key.Plaintext, crypto.GenerateIV(rand.Reader), crypto.S3.String(), bucket, "")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. cmd/healthcheck-handler.go

    		}
    		return
    	}
    
    	// Verify if KMS is reachable if its configured
    	if GlobalKMS != nil {
    		ctx, cancel := context.WithTimeout(r.Context(), time.Minute)
    		defer cancel()
    
    		if _, err := GlobalKMS.GenerateKey(ctx, &kms.GenerateKeyRequest{AssociatedData: kms.Context{"healthcheck": ""}}); err != nil {
    			switch r.Method {
    			case http.MethodHead:
    				apiErr := toAPIError(r.Context(), err)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 26 07:44:34 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. cmd/batch-rotate.go

    			}
    		}
    		e.kmsContext = kms.Context{}
    		for k, v := range ctx {
    			e.kmsContext[k] = v
    		}
    		ctx["MinIO batch API"] = "batchrotate" // Context for a test key operation
    		if _, err := GlobalKMS.GenerateKey(GlobalContext, &kms.GenerateKeyRequest{Name: e.Key, AssociatedData: ctx}); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Sep 18 17:59:03 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  7. docs/security/README.md

    ### Server-Side Encryption with a KMS
    
    SSE-S3 allows an S3 client to en/decrypt an object at the MinIO server using a KMS. The MinIO
    server only assumes that the KMS provides two services:
    
    - `GenerateKey`: Takes a key ID and generates a new data key from a master key referenced by the key ID. It returns the new data key in two different forms: The plain data key and the data key encrypted using the master key.
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Feb 12 00:51:25 UTC 2022
    - 13.8K bytes
    - Viewed (0)
  8. cmd/common-main.go

    	}
    
    	KMS, err := kms.Connect(GlobalContext, &kms.ConnectionOptions{
    		CADir: globalCertsCADir.Get(),
    	})
    	if err != nil {
    		logger.Fatal(err, "Failed to connect to KMS")
    	}
    
    	if _, err = KMS.GenerateKey(GlobalContext, &kms.GenerateKeyRequest{}); errors.Is(err, kms.ErrKeyNotFound) {
    		err = KMS.CreateKey(GlobalContext, &kms.CreateKeyRequest{Name: KMS.DefaultKey})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  9. api/go1.21.txt

    pkg context, func WithoutCancel(Context) Context #40221
    pkg context, func WithTimeoutCause(Context, time.Duration, error) (Context, CancelFunc) #56661
    pkg crypto/elliptic, func GenerateKey //deprecated #52221
    pkg crypto/elliptic, func Marshal //deprecated #52221
    pkg crypto/elliptic, func Unmarshal //deprecated #52221
    pkg crypto/elliptic, method (*CurveParams) Add //deprecated #34648
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  10. cmd/admin-bucket-handlers.go

    				rpt.SetStatus(bucket, fileName, fmt.Errorf("%s", errorCodes[ErrKMSNotConfigured].Description))
    				continue
    			}
    			kmsKey := encConfig.KeyID()
    			if kmsKey != "" {
    				_, err := GlobalKMS.GenerateKey(ctx, &kms.GenerateKeyRequest{
    					Name:           kmsKey,
    					AssociatedData: kms.Context{"MinIO admin API": "ServerInfoHandler"}, // Context for a test key operation
    				})
    				if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 28 15:32:18 UTC 2024
    - 33.2K bytes
    - Viewed (0)
Back to top