Skip to content

Error: invalid AWS access key ID; reason: size should be between 16 and 128 characters, got 1532 #128

Description

@Altiire

Hello !

I'm trying to setup an AWSConfig to implement tests for my s3 backend.

The access key provided by my IAM component works with the aws cli but does not work k6-jslib-aws with the following error message:

ERRO[0000] Uncaught (in promise) Error: invalid AWS access key ID; reason: size should be between 16 and 128 characters, got 1532
        at apply (native)
        at webpack://k6-jslib-aws/./src/internal/endpoint.ts:4:21(12)
        at r (webpack://k6-jslib-aws/./src/internal/endpoint.ts:4:21(12))
        at construct (native)
        at l (webpack://k6-jslib-aws/./src/internal/endpoint.ts:4:21(24))
        at t (webpack://k6-jslib-aws/./src/internal/config.ts:177:33(14))
        at e (webpack://k6-jslib-aws/./src/internal/config.ts:94:18(97))

cf https://github.com/grafana/k6-jslib-aws/blob/main/src/internal/config.ts#L93

I tried to find a source for the 128 char restriction but I was only able to find a source for the min length of 16.
Do you have a source for more information on why a 128 char restriction is setup here ? If this limitation is was arbitrary setup, are you open to remove it ?

I can provide the following PR.

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions