Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for secretKey (0.17 sec)

  1. helm/minio/templates/_helper_create_svcacct.txt

    echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP
    {{- if .existingSecret }}
    cat /config/secrets-svc/{{ tpl .existingSecret $global }}/{{ tpl .existingSecretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
    # Add a new line if it doesn't exist
    echo >> $MINIO_ACCESSKEY_SECRETKEY_TMP
    {{ else }}
    echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
    {{- end }}
    {{- if $svc.policy}}
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 23:20:50 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  2. internal/kms/single-key.go

    		return nil, errors.New("kms: invalid key length " + strconv.Itoa(len(key)))
    	}
    	return secretKey{
    		keyID: keyID,
    		key:   key,
    	}, nil
    }
    
    // secretKey is a KMS implementation that derives new DEKs
    // from a single key.
    type secretKey struct {
    	keyID string
    	key   []byte
    }
    
    var _ KMS = secretKey{} // compiler check
    
    const ( // algorithms used to derive and encrypt DEKs
    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)
  3. internal/auth/credentials_test.go

    	}
    	if len(cred.SecretKey) != secretKeyMaxLen {
    		t.Fatalf("secret key length: expected: %v, got: %v", secretKeyMaxLen, len(cred.SecretKey))
    	}
    }
    
    func TestCreateCredentials(t *testing.T) {
    	testCases := []struct {
    		accessKey   string
    		secretKey   string
    		valid       bool
    		expectedErr error
    	}{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  4. cmd/jwt_test.go

    	xjwt "github.com/minio/minio/internal/jwt"
    )
    
    func getTokenString(accessKey, secretKey string) (string, error) {
    	claims := xjwt.NewMapClaims()
    	claims.SetExpiry(UTCNow().Add(defaultJWTExpiry))
    	claims.SetAccessKey(accessKey)
    	token := jwtgo.NewWithClaims(jwtgo.SigningMethodHS512, claims)
    	return token.SignedString([]byte(secretKey))
    }
    
    // Tests web request authenticator.
    func TestWebRequestAuthenticate(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. cmd/signature-v2_test.go

    		signature string
    		errCode   APIErrorCode
    	}{
    		{"invalidAccessKey", policy, calculateSignatureV2(policy, creds.SecretKey), ErrInvalidAccessKeyID},
    		{creds.AccessKey, policy, calculateSignatureV2("random", creds.SecretKey), ErrSignatureDoesNotMatch},
    		{creds.AccessKey, policy, calculateSignatureV2(policy, creds.SecretKey), ErrNone},
    	}
    	for i, test := range testCases {
    		formValues := make(http.Header)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 8K bytes
    - Viewed (0)
  6. helm/minio/templates/_helper_create_user.txt

    echo {{ tpl .accessKey $global }} > $MINIO_ACCESSKEY_SECRETKEY_TMP
    {{- if .existingSecret }}
    cat /config/secrets/{{ tpl .existingSecret $global }}/{{ tpl .existingSecretKey $global }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
    # Add a new line if it doesn't exist
    echo >> $MINIO_ACCESSKEY_SECRETKEY_TMP
    createUser {{ .policy }}
    {{ else }}
    echo {{ .secretKey }} >> $MINIO_ACCESSKEY_SECRETKEY_TMP
    createUser {{ .policy }}
    {{- end }}
    {{- end }}
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Dec 12 23:43:32 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  7. cmd/jwt.go

    func newCachedAuthToken() func(audience string) string {
    	fn := func(accessKey, secretKey, audience string) (s string, err error) {
    		k := cacheKey{accessKey: accessKey, secretKey: secretKey, audience: audience}
    
    		var ok bool
    		s, ok = cacheLRU.Get(k)
    		if !ok {
    			s, err = authenticateNode(accessKey, secretKey, audience)
    			if err != nil {
    				return "", err
    			}
    			cacheLRU.Add(k, s)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  8. docs/debugging/s3-check-md5/main.go

    	"io"
    	"log"
    	"net/url"
    	"os"
    	"path"
    	"strconv"
    	"strings"
    	"time"
    
    	"github.com/minio/minio-go/v7"
    	"github.com/minio/minio-go/v7/pkg/credentials"
    )
    
    var (
    	endpoint, accessKey, secretKey string
    	minModTimeStr                  string
    	bucket, prefix                 string
    	debug                          bool
    	versions                       bool
    	insecure                       bool
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  9. cmd/admin-handlers-users-race_test.go

    	if err != nil {
    		c.Fatalf("policy add error: %v", err)
    	}
    
    	userCount := 50
    	accessKeys := make([]string, userCount)
    	secretKeys := make([]string, userCount)
    	for i := 0; i < userCount; i++ {
    		accessKey, secretKey := mustGenerateCredentials(c)
    		err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    		if err != nil {
    			c.Fatalf("Unable to set user: %v", err)
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  10. cmd/batch-replicate.go

    	SecretKey    string `xml:"SecretAccessKey" json:"secretKey,omitempty" yaml:"secretKey"`
    	SessionToken string `xml:"SessionToken" json:"sessionToken,omitempty" yaml:"sessionToken"`
    }
    
    // Empty indicates if credentials are not set
    func (c BatchJobReplicateCredentials) Empty() bool {
    	return c.AccessKey == "" && c.SecretKey == "" && c.SessionToken == ""
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Nov 22 18:51:46 GMT 2023
    - 6.3K bytes
    - Viewed (0)
Back to top