Skip to content

Commit

Permalink
cmd/credentials: update test password (#96)
Browse files Browse the repository at this point in the history
* cmd/credentials: update test password

The required minimum length for passwords on the satellite will change
from 6 to 8. This change uses "password" (8 chars) instead of "123a123"
(7 chars).

* update password for api key
  • Loading branch information
mobyvb authored Feb 27, 2024
1 parent 07582ae commit fd6c701
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/credentials.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
encKeyVersionByte = byte(77) // magic number EncryptionKey encoding
secKeyVersionByte = byte(78) // magic number SecretKey encoding

password = "123a123"
password = "password"
secret = "Welcome1"
filename = ".creds"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/apikey.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func GetTestAPIKey(satelliteID string) (string, error) {
idHash := sha256.Sum256([]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1})
base64Salt := base64.StdEncoding.EncodeToString(idHash[:])

accessGrant, err := consolewasm.GenAccessGrant(satelliteID, key.Serialize(), "123a123", base64Salt)
accessGrant, err := consolewasm.GenAccessGrant(satelliteID, key.Serialize(), "password", base64Salt)
if err != nil {
return "", errs.Wrap(err)
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/console.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (ce *ConsoleEndpoint) tryLogin(ctx context.Context, email string) (string,
Password string `json:"password"`
}

authToken.Password = "123a123"
authToken.Password = "password"
authToken.Email = email

res, err := json.Marshal(authToken)
Expand Down Expand Up @@ -172,7 +172,7 @@ func (ce *ConsoleEndpoint) createUser(ctx context.Context, regToken string, emai

registerData.FullName = "Alice"
registerData.Email = email
registerData.Password = "123a123"
registerData.Password = "password"
registerData.ShortName = "al"
registerData.Secret = regToken

Expand Down

0 comments on commit fd6c701

Please sign in to comment.