Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for IsAccessKeyValid (0.21 sec)

  1. internal/auth/credentials.go

    // ContainsReservedChars - returns whether the input string contains reserved characters.
    func ContainsReservedChars(s string) bool {
    	return strings.ContainsAny(s, reservedChars)
    }
    
    // IsAccessKeyValid - validate access key for right length.
    func IsAccessKeyValid(accessKey string) bool {
    	return len(accessKey) >= accessKeyMinLen
    }
    
    // IsSecretKeyValid - validate secret key for right length.
    func IsSecretKeyValid(secretKey string) bool {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue May 28 17:14:16 UTC 2024
    - 12K bytes
    - Viewed (0)
  2. cmd/batch-replicate.go

    	return c.AccessKey == "" && c.SecretKey == "" && c.SessionToken == ""
    }
    
    // Validate validates if credentials are valid
    func (c BatchJobReplicateCredentials) Validate() error {
    	if !auth.IsAccessKeyValid(c.AccessKey) || !auth.IsSecretKeyValid(c.SecretKey) {
    		return errInvalidArgument
    	}
    	return nil
    }
    
    // BatchJobReplicateTarget describes target element of the replication job that receives
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 01 12:53:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. cmd/iam.go

    	if !sys.Initialized() {
    		return updatedAt, errServerNotInitialized
    	}
    
    	if !auth.IsAccessKeyValid(accessKey) {
    		return updatedAt, auth.ErrInvalidAccessKeyLength
    	}
    
    	if auth.ContainsReservedChars(accessKey) {
    		return updatedAt, auth.ErrContainsReservedChars
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
Back to top