Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ParseSecretKey (0.18 sec)

  1. internal/kms/config.go

    			b, err := os.ReadFile(env.Get(EnvKMSSecretKeyFile, ""))
    			if err != nil {
    				return nil, err
    			}
    			s = string(b)
    		} else {
    			s = env.Get(EnvKMSSecretKey, "")
    		}
    		return ParseSecretKey(s)
    	}
    }
    
    // IsPresent reports whether a KMS configuration is present.
    // It returns an error if multiple KMS configurations are
    // present or if one configuration is incomplete.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 12 14:31:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. cmd/object_api_suite_test.go

    	globalCompressConfig.Extensions = extensions
    	globalCompressConfig.AllowEncrypted = encrypt
    	globalCompressConfigMu.Unlock()
    	if encrypt {
    		globalAutoEncryption = encrypt
    		KMS, err := kms.ParseSecretKey("my-minio-key:5lF+0pJM0OWwlQrvK2S/I7W9mO4a6rJJI7wzj7v09cw=")
    		if err != nil {
    			t.Fatal(err)
    		}
    		GlobalKMS = KMS
    	}
    }
    
    func enableEncryption(t *testing.T) {
    	// Exec with default settings...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 33.4K bytes
    - Viewed (0)
Back to top