Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for Kms (0.26 sec)

  1. internal/kms/kms.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package kms
    
    import (
    	"context"
    	"encoding"
    	"encoding/json"
    
    	jsoniter "github.com/json-iterator/go"
    	"github.com/minio/kms-go/kes"
    )
    
    // KMS is the generic interface that abstracts over
    // different KMS implementations.
    type KMS interface {
    	// Stat returns the current KMS status.
    	Stat(cxt context.Context) (Status, error)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  2. cmd/kms-handlers.go

    import (
    	"crypto/subtle"
    	"encoding/json"
    	"io"
    	"net/http"
    	"strings"
    	"time"
    
    	"github.com/minio/kms-go/kes"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/kms"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/pkg/v2/policy"
    )
    
    // KMSStatusHandler - GET /minio/kms/v1/status
    func (a kmsAPIHandlers) KMSStatusHandler(w http.ResponseWriter, r *http.Request) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  3. cmd/kms-router.go

    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    )
    
    const (
    	kmsPathPrefix       = minioReservedBucketPath + "/kms"
    	kmsAPIVersion       = "v1"
    	kmsAPIVersionPrefix = SlashSeparator + kmsAPIVersion
    )
    
    type kmsAPIHandlers struct{}
    
    // registerKMSRouter - Registers KMS APIs
    func registerKMSRouter(router *mux.Router) {
    	kmsAPI := kmsAPIHandlers{}
    	kmsRouter := router.PathPrefix(kmsPathPrefix).Subrouter()
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Aug 19 14:37:53 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  4. internal/crypto/sse-kms.go

    // on success. If the metadata contains both, a KMS master key ID and a sealed
    // KMS data key it returns both. If the metadata does not contain neither a
    // KMS master key ID nor a sealed KMS data key it returns an empty keyID and
    // KMS data key. Otherwise, it returns an error.
    func (ssekms) ParseMetadata(metadata map[string]string) (keyID string, kmsKey []byte, sealedKey SealedKey, ctx kms.Context, err error) {
    	// Extract all required values from object metadata
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  5. cmd/batch-rotate.go

    	"github.com/minio/minio/internal/kms"
    	"github.com/minio/pkg/v2/env"
    	"github.com/minio/pkg/v2/workers"
    )
    
    // keyrotate:
    //   apiVersion: v1
    //   bucket: BUCKET
    //   prefix: PREFIX
    //   encryption:
    //     type: sse-s3 # valid values are sse-s3 and sse-kms
    //     key: <new-kms-key> # valid only for sse-kms
    //     context: <new-kms-key-context> # valid only for sse-kms
    // # optional flags based filtering criteria
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  6. internal/kms/single-key.go

    	return true
    }
    
    // List returns an array of local KMS Names
    func (kms secretKey) List() []kes.KeyInfo {
    	kmsSecret := []kes.KeyInfo{
    		{
    			Name: kms.keyID,
    		},
    	}
    	return kmsSecret
    }
    
    func (secretKey) Metrics(ctx context.Context) (kes.Metric, error) {
    	return kes.Metric{}, Error{
    		HTTPStatusCode: http.StatusNotImplemented,
    		APICode:        "KMS.NotImplemented",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  7. internal/config/crypto.go

    	"github.com/minio/minio/internal/kms"
    	"github.com/secure-io/sio-go"
    	"github.com/secure-io/sio-go/sioutil"
    )
    
    // EncryptBytes encrypts the plaintext with a key managed by KMS.
    // The context is bound to the returned ciphertext.
    //
    // The same context must be provided when decrypting the
    // ciphertext.
    func EncryptBytes(k kms.KMS, plaintext []byte, context kms.Context) ([]byte, error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. cmd/config.go

    	"errors"
    	"fmt"
    	"path"
    	"sort"
    	"strings"
    
    	jsoniter "github.com/json-iterator/go"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/config"
    	"github.com/minio/minio/internal/kms"
    )
    
    const (
    	minioConfigPrefix = "config"
    	minioConfigBucket = minioMetaBucket + SlashSeparator + minioConfigPrefix
    	kvPrefix          = ".kv"
    
    	// Captures all the previous SetKV operations and allows rollback.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Aug 23 10:07:06 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. cmd/common-main.go

    		KMS, err := kms.Parse(env.Get(kms.EnvKMSSecretKey, ""))
    		if err != nil {
    			logger.Fatal(err, "Unable to parse the KMS secret key inherited from the shell environment")
    		}
    		GlobalKMS = KMS
    	}
    	if env.IsSet(kms.EnvKESEndpoint) {
    		if env.IsSet(kms.EnvKESAPIKey) {
    			if env.IsSet(kms.EnvKESClientKey) {
    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)
  10. internal/crypto/doc.go

    //     -   ObjectKey := DAREv2_Dec(KeyEncKey, SealedKey)
    //     - object_data := DAREv2_Dec(ObjectKey, enc_object_data)
    //     Output: object_data
    //
    // ### SSE-S3 and KMS
    //
    // SSE-S3 requires that the KMS provides two functions:
    //
    //  1. Generate(KeyID) -> (Key, EncKey)
    //
    //  2. Unseal(KeyID, EncKey) -> Key
    //
    //  1. Encrypt:
    //     Input: KeyID, bucket, object, metadata, object_data
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Aug 26 19:52:29 GMT 2022
    - 5K bytes
    - Viewed (0)
Back to top