Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 210 for secretKey (0.1 sec)

  1. cmd/jwt.go

    )
    
    func authenticateNode(accessKey, secretKey string) (string, error) {
    	claims := xjwt.NewStandardClaims()
    	claims.SetExpiry(UTCNow().Add(defaultInterNodeJWTExpiry))
    	claims.SetAccessKey(accessKey)
    
    	jwt := jwtgo.NewWithClaims(jwtgo.SigningMethodHS512, claims)
    	return jwt.SignedString([]byte(secretKey))
    }
    
    // Check if the request is authenticated.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. cmd/sts-handlers.go

    func getTokenSigningKey() (string, error) {
    	secret := globalActiveCred.SecretKey
    	if globalSiteReplicationSys.isEnabled() {
    		secretKey, err := globalSiteReplicatorCred.Get(GlobalContext)
    		if err != nil {
    			return "", err
    		}
    		return secretKey, nil
    	}
    	return secret, nil
    }
    
    // AssumeRole - implementation of AWS STS API AssumeRole to get temporary
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  3. cmd/admin-handlers-idp-ldap.go

    		Credentials: madmin.Credentials{
    			AccessKey:  newCred.AccessKey,
    			SecretKey:  newCred.SecretKey,
    			Expiration: newCred.Expiration,
    		},
    	}
    
    	data, err := json.Marshal(createResp)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	encryptedData, err := madmin.EncryptData(cred.SecretKey, data)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  4. cmd/batch-replicate_test.go

    #    # path: "on|off|auto" # "on" enables path-style bucket lookup. "off" enables virtual host (DNS)-style bucket lookup. Defaults to "auto"
    #    credentials:
    #      accessKey: minioadmin # Required
    #      secretKey: minioadmin # Required
    #    # sessionToken: SESSION-TOKEN # Optional only available when rotating credentials are used
        snowball: # automatically activated if the source is local
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. 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) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 22 07:04:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. cmd/batch-replicate_gen.go

    		case "AccessKey":
    			z.AccessKey, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "AccessKey")
    				return
    			}
    		case "SecretKey":
    			z.SecretKey, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "SecretKey")
    				return
    			}
    		case "SessionToken":
    			z.SessionToken, err = dc.ReadString()
    			if err != nil {
    				err = msgp.WrapError(err, "SessionToken")
    				return
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  7. 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 == ""
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. cmd/config-encrypted_test.go

    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/auth"
    )
    
    func TestDecryptData(t *testing.T) {
    	cred1 := auth.Credentials{
    		AccessKey: "minio",
    		SecretKey: "minio123",
    	}
    
    	cred2 := auth.Credentials{
    		AccessKey: "minio",
    		SecretKey: "minio1234",
    	}
    
    	data := []byte(`config data`)
    	edata1, err := madmin.EncryptData(cred1.String(), data)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 20 00:53:08 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  9. cmd/sftp-server.go

    		STSCredential: &madmin.SRSTSCredential{
    			AccessKey:    cred.AccessKey,
    			SecretKey:    cred.SecretKey,
    			SessionToken: cred.SessionToken,
    			ParentUser:   cred.ParentUser,
    		},
    		UpdatedAt: updatedAt,
    	}))
    
    	return &ssh.Permissions{
    		CriticalOptions: map[string]string{
    			"AccessKey":    cred.AccessKey,
    			"SecretKey":    cred.SecretKey,
    			"SessionToken": cred.SessionToken,
    		},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 20 20:00:29 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. 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)
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 28 09:06:25 UTC 2024
    - 4K bytes
    - Viewed (0)
Back to top