Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for accessKey (0.26 sec)

  1. helm/minio/templates/_helper_create_svcacct.txt

    {{- range $idx, $svc := .Values.svcaccts }}
    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. cmd/signature-v2_test.go

    	policy := "policy"
    	testCases := []struct {
    		accessKey string
    		policy    string
    		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},
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Oct 14 10:08:40 GMT 2022
    - 8K bytes
    - Viewed (0)
  3. internal/auth/credentials_test.go

    		// Two different credentialss
    		{cred, cred2, false},
    		// Access key is different in credentials to compare.
    		{cred, Credentials{AccessKey: "myuser", SecretKey: cred.SecretKey}, false},
    		// Secret key is different in credentials to compare.
    		{cred, Credentials{AccessKey: cred.AccessKey, SecretKey: "mypassword"}, false},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.cred.Equal(testCase.ccred)
    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

    	"os"
    	"testing"
    
    	jwtgo "github.com/golang-jwt/jwt/v4"
    	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))
    }
    
    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-v4-utils.go

    	}
    
    	claims, s3Err := checkClaimsFromToken(r, cred)
    	if s3Err != ErrNone {
    		return cred, false, s3Err
    	}
    	cred.Claims = claims
    
    	owner := cred.AccessKey == globalActiveCred.AccessKey || (cred.ParentUser == globalActiveCred.AccessKey && cred.AccessKey != siteReplicatorSvcAcc)
    	if owner && !globalAPIConfig.permitRootAccess() {
    		// We disable root access and its service accounts if asked for.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. cmd/signature-v4-parser.go

    	if len(credElements) < 5 {
    		return ch, ErrCredMalformed
    	}
    	accessKey := strings.Join(credElements[:len(credElements)-4], SlashSeparator) // The access key may contain one or more `/`
    	if !auth.IsAccessKeyValid(accessKey) {
    		return ch, ErrInvalidAccessKeyID
    	}
    	// Save access key id.
    	cred := credentialHeader{
    		accessKey: accessKey,
    	}
    	credElements = credElements[len(credElements)-4:]
    	var e error
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  7. helm/minio/templates/_helper_create_user.txt

    {{- range .Values.users }}
    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 }}
    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)
  8. 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)
  9. docs/debugging/s3-check-md5/main.go

    	"fmt"
    	"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)
  10. cmd/admin-handlers-users-race_test.go

    	}
    
    	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)
    		}
    
    		err = s.adm.SetPolicy(ctx, policy, accessKey, false)
    		if err != nil {
    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)
Back to top